Web Site

org.codehaus.janino
Class Java.Initializer

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.AbstractTypeBodyDeclaration
          extended byorg.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
 Java.Block block
           
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
 
Constructor Summary
Java.Initializer(Location location, boolean statiC, Java.Block block)
           
 
Method Summary
 void accept(Visitor.BlockStatementVisitor visitor)
           
 void accept(Visitor.TypeBodyDeclarationVisitor visitor)
           
 
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, getEnclosingScope, isStatic, setDeclaringType, setEnclosingScope
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwParseException
 
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
getEnclosingScope, setEnclosingScope
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 

Field Detail

block

public final Java.Block block
Constructor Detail

Java.Initializer

public Java.Initializer(Location location,
                        boolean statiC,
                        Java.Block block)
Method Detail

accept

public final void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Specified by:
accept in interface Java.TypeBodyDeclaration

accept

public final void accept(Visitor.BlockStatementVisitor visitor)
Specified by:
accept in interface Java.BlockStatement

Web Site