public static final class Java.Block extends Java.Statement
The statements that the block defines are executed in sequence.
Modifier and Type | Field and Description |
---|---|
java.util.List |
statements |
localVariables
NOWHERE
Constructor and Description |
---|
Java.Block(Location location) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
void |
addStatement(Java.BlockStatement statement) |
void |
addStatements(java.util.List statements) |
Java.BlockStatement[] |
getStatements() |
java.lang.String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public Java.Block(Location location)
public void addStatement(Java.BlockStatement statement)
public void addStatements(java.util.List statements)
public Java.BlockStatement[] getStatements()
public void accept(Visitor.BlockStatementVisitor visitor)
public java.lang.String toString()
toString
in class java.lang.Object