Java.BlockStatement
, Java.Locatable
, Java.Scope
Java.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.TryStatement
public 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 . |
accept
getLocation, throwCompileException
getLocation, throwCompileException
public Map<String,Java.LocalVariable> localVariables
protected Statement(Location location)
public void setEnclosingScope(Java.Scope enclosingScope)
Java.BlockStatement
Java.BlockStatement
.setEnclosingScope
in interface Java.BlockStatement
public Java.Scope getEnclosingScope()
getEnclosingScope
in interface Java.BlockStatement
getEnclosingScope
in interface Java.Scope
null
public Java.LocalVariable findLocalVariable(String name)
findLocalVariable
in interface Java.BlockStatement
name
Copyright © 2001–2019. All rights reserved.