public abstract static class Java.Statement extends Java.Located implements Java.BlockStatement
This class is misnamed; according to JLS7 8.8.7 and 14.2, its name should be "BlockStatement".
| Modifier and Type | Field and Description |
|---|---|
Map<String,Java.LocalVariable> |
localVariables
The map of currently visible local variables.
|
NOWHERE| Modifier | Constructor and Description |
|---|---|
protected |
Statement(Location location) |
| Modifier and Type | Method and Description |
|---|---|
Java.LocalVariable |
findLocalVariable(String name) |
Java.Scope |
getEnclosingScope() |
void |
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope of this
Java.BlockStatement. |
getLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptgetLocation, throwCompileException@Nullable public 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.Scopenull@Nullable public Java.LocalVariable findLocalVariable(String name)
findLocalVariable in interface Java.BlockStatementCopyright © 2019. All rights reserved.