Package org.codehaus.janino
Class Java.Statement
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Statement
- All Implemented Interfaces:
Java.BlockStatement
,Java.Locatable
,Java.Scope
- Direct Known Subclasses:
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
- Enclosing class:
- Java
Everything that can occur in the body of a method or in a block. E.g. explicit constructor invocations and
initializers cannot occur there.
This class is mis-named; according to the JLS, its name should be 'BlockStatement'.
-
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLocalVariable
(String name) void
setEnclosingScope
(Java.Scope enclosingScope) Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.janino.Java.BlockStatement
accept
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Field Details
-
localVariables
-
-
Constructor Details
-
Statement
-
-
Method Details
-
setEnclosingScope
- Specified by:
setEnclosingScope
in interfaceJava.BlockStatement
-
getEnclosingScope
- Specified by:
getEnclosingScope
in interfaceJava.BlockStatement
- Specified by:
getEnclosingScope
in interfaceJava.Scope
-
findLocalVariable
- Specified by:
findLocalVariable
in interfaceJava.BlockStatement
-