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.
|
localVariablesNOWHERE| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.BlockStatementVisitor<R,EX> 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<? extends Java.BlockStatement> statements)
Adds a list of statements to the end of the block.
|
Java.BlockStatement[] |
getStatements() |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScopegetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptionpublic final List<Java.BlockStatement> statements
public Block(Location location)
public void addStatement(Java.BlockStatement statement)
public void addStatements(List<? extends Java.BlockStatement> statements)
public Java.BlockStatement[] getStatements()
@Nullable public <R,EX extends Throwable> R accept(Visitor.BlockStatementVisitor<R,EX> visitor) throws EX extends Throwable
Java.BlockStatementvisit...()" method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.EX extends ThrowableCopyright © 2019. All rights reserved.