Package org.codehaus.janino
Class Java.Initializer
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.AbstractTypeBodyDeclaration
org.codehaus.janino.Java.Initializer
- All Implemented Interfaces:
Java.BlockStatement
,Java.Locatable
,Java.Scope
,Java.TypeBodyDeclaration
- Enclosing class:
- Java
public static final class Java.Initializer
extends Java.AbstractTypeBodyDeclaration
implements Java.BlockStatement
Representation of an instance (JLS2 8.6) or static initializer (JLS2 8.7).
-
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor.BlockStatementVisitor visitor) void
accept
(Visitor.TypeBodyDeclarationVisitor visitor) findLocalVariable
(String name) toString()
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, getEnclosingScope, isStatic, setDeclaringType, setEnclosingScope
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, wait, wait, wait
Methods inherited from interface org.codehaus.janino.Java.BlockStatement
getEnclosingScope, setEnclosingScope
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Field Details
-
block
-
-
Constructor Details
-
Initializer
-
-
Method Details
-
toString
-
accept
- Specified by:
accept
in interfaceJava.TypeBodyDeclaration
-
accept
- Specified by:
accept
in interfaceJava.BlockStatement
-
findLocalVariable
- Specified by:
findLocalVariable
in interfaceJava.BlockStatement
-