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 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, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
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–2016. All rights reserved.