Java.BlockStatement
, Java.Locatable
, Java.Scope
public static final class Java.Block extends Java.Statement
The statements that the block defines are executed in sequence.
Modifier and Type | Field | Description |
---|---|---|
List<Java.BlockStatement> |
statements |
The list of statements that comprise the body of the block.
|
NOWHERE
localVariables
Modifier and Type | Method | 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() |
getLocation, throwCompileException
getLocation, throwCompileException
findLocalVariable, getEnclosingScope, setEnclosingScope
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–2019. All rights reserved.