Java.BlockStatement, Java.Locatable, Java.ScopeJava.AssertStatement, Java.Block, Java.BreakableStatement, Java.BreakStatement, Java.ContinueStatement, Java.EmptyStatement, Java.ExpressionStatement, Java.FieldDeclaration, Java.IfStatement, Java.LocalClassDeclarationStatement, Java.LocalVariableDeclarationStatement, Java.ReturnStatement, Java.SynchronizedStatement, Java.ThrowStatement, Java.TryStatementpublic abstract static class Java.Statement extends Java.Located implements Java.BlockStatement
This class is mis-named; according to JLS7 8.8.7 and 14.2, its name should be 'BlockStatement'.
| Modifier and Type | Field | Description |
|---|---|---|
Map<String,Java.LocalVariable> |
localVariables |
The map of currently visible local variables.
|
NOWHERE| Modifier | Constructor | Description |
|---|---|---|
protected |
Statement(Location location) |
| Modifier and Type | Method | Description |
|---|---|---|
Java.LocalVariable |
findLocalVariable(String name) |
|
Java.Scope |
getEnclosingScope() |
|
void |
setEnclosingScope(Java.Scope enclosingScope) |
Sets the enclosing scope of this
Java.BlockStatement. |
acceptgetLocation, throwCompileExceptiongetLocation, throwCompileExceptionpublic Map<String,Java.LocalVariable> localVariables
protected Statement(Location location)
public void setEnclosingScope(Java.Scope enclosingScope)
Java.BlockStatementJava.BlockStatement.setEnclosingScope in interface Java.BlockStatementpublic Java.Scope getEnclosingScope()
getEnclosingScope in interface Java.BlockStatementgetEnclosingScope in interface Java.Scopenullpublic Java.LocalVariable findLocalVariable(String name)
findLocalVariable in interface Java.BlockStatementnameCopyright © 2001–2019. All rights reserved.