Package org.codehaus.janino
Class Java.ClassDeclaration
- java.lang.Object
-
- org.codehaus.janino.Java.AbstractTypeDeclaration
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List
constructors
java.util.List
variableDeclaratorsAndInitializers
-
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, localClassCount
-
-
Constructor Summary
Constructors Constructor Description ClassDeclaration(Location location, Java.ModifiersAndAnnotations modifiersAndAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstructor(Java.ConstructorDeclarator cd)
void
addVariableDeclaratorOrInitializer(Java.TypeBodyDeclaration tbd)
void
defineSyntheticField(IClass.IField iField)
-
Methods inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiersAndAnnotations, invalidateMethodCaches, setEnclosingScope, throwCompileException, toString
-
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.TypeDeclaration
accept, getClassName
-
-
-
-
Constructor Detail
-
ClassDeclaration
public ClassDeclaration(Location location, Java.ModifiersAndAnnotations modifiersAndAnnotations)
-
-
Method Detail
-
addConstructor
public void addConstructor(Java.ConstructorDeclarator cd)
-
addVariableDeclaratorOrInitializer
public void addVariableDeclaratorOrInitializer(Java.TypeBodyDeclaration tbd)
-
defineSyntheticField
public void defineSyntheticField(IClass.IField iField) throws CompileException
- Throws:
CompileException
-
-