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 |
---|---|
List<Java.BlockStatement> |
statements
The list of statements that comprise the body of the block.
|
localVariables
NOWHERE
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the '
visit...() ' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
void |
addStatement(Java.BlockStatement statement)
Adds one statement to the end of the block.
|
void |
addStatements(List<Java.BlockStatement> statements)
Adds a list of statements to the end of the block.
|
Java.BlockStatement[] |
getStatements() |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public final List<Java.BlockStatement> statements
public Block(Location location)
public void addStatement(Java.BlockStatement statement)
public void addStatements(List<Java.BlockStatement> statements)
public Java.BlockStatement[] getStatements()
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatement
visit...()
' method of Visitor.BlockStatementVisitor
for the concrete
Java.BlockStatement
type.Copyright © 2001–2016. All rights reserved.