janino.net

org.codehaus.janino
Class Java.ClassDeclaration

  extended by org.codehaus.janino.Java.AbstractTypeDeclaration
      extended by org.codehaus.janino.Java.ClassDeclaration
All Implemented Interfaces:
Java.Locatable, Java.Scope, Java.TypeDeclaration
Direct Known Subclasses:
Java.AnonymousClassDeclaration, Java.NamedClassDeclaration
Enclosing class:
Java

public abstract static class Java.ClassDeclaration
extends Java.AbstractTypeDeclaration

Base for the various class declaration kinds.


Field Summary
 <Java.ConstructorDeclarator> constructors
          List of Java.ConstructorDeclarators of this class.
 <Java.BlockStatement> variableDeclaratorsAndInitializers
          List of Java.TypeBodyDeclarations of this class: Field declarations (both static and non-static), (static and non-static) initializers (a.k.a.
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, localClassCount
 
Constructor Summary
Java.ClassDeclaration(Location location, Java.Modifiers modifiers)
           
 
Method Summary
 void addConstructor(Java.ConstructorDeclarator cd)
          Adds one Java.ConstructorDeclarator to this class.
 void addFieldDeclaration(Java.FieldDeclaration fd)
          Adds one field declaration to this class.
 void addInitializer(Java.Initializer i)
          Adds one initializer to this class.
 void defineSyntheticField(IClass.IField iField)
           
 
Methods inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileException, toString
 
Methods inherited from class java.lang.
, , , , , , , , ,
 
Methods inherited from interface org.codehaus.janino.Java.TypeDeclaration
accept, getClassName
 

Field Detail

constructors

public final <Java.ConstructorDeclarator> constructors
List of Java.ConstructorDeclarators of this class.


variableDeclaratorsAndInitializers

public final <Java.BlockStatement> variableDeclaratorsAndInitializers
List of Java.TypeBodyDeclarations of this class: Field declarations (both static and non-static), (static and non-static) initializers (a.k.a. "class initializers" and "instance initializers").

Constructor Detail

Java.ClassDeclaration

public Java.ClassDeclaration(Location location,
                             Java.Modifiers modifiers)
Method Detail

addConstructor

public void addConstructor(Java.ConstructorDeclarator cd)
Adds one Java.ConstructorDeclarator to this class.


addFieldDeclaration

public void addFieldDeclaration(Java.FieldDeclaration fd)
Adds one field declaration to this class.


addInitializer

public void addInitializer(Java.Initializer i)
Adds one initializer to this class.


defineSyntheticField

public void defineSyntheticField(IClass.IField iField)
                          throws CompileException
Throws:
CompileException
See Also:
Java.InnerClassDeclaration.defineSyntheticField(IClass.IField)

janino.net