public abstract static class Java.ClassDeclaration extends Java.AbstractTypeDeclaration
Modifier and Type | Field and Description |
---|---|
List<Java.ConstructorDeclarator> |
constructors
List of
Java.ConstructorDeclarator s of this class. |
List<Java.BlockStatement> |
variableDeclaratorsAndInitializers
List of
Java.TypeBodyDeclaration s of this class: Field declarations (both static and non-static),
(static and non-static) initializers (a.k.a. |
anonymousClassCount, localClassCount
Constructor and Description |
---|
ClassDeclaration(Location location,
Java.Modifiers modifiers) |
Modifier and Type | Method and Description |
---|---|
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) |
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileException, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, getClassName
public final List<Java.ConstructorDeclarator> constructors
Java.ConstructorDeclarator
s of this class.public final List<Java.BlockStatement> variableDeclaratorsAndInitializers
Java.TypeBodyDeclaration
s of this class: Field declarations (both static and non-static),
(static and non-static) initializers (a.k.a. "class initializers" and "instance initializers").public ClassDeclaration(Location location, Java.Modifiers modifiers)
public void addConstructor(Java.ConstructorDeclarator cd)
Java.ConstructorDeclarator
to this class.public void addFieldDeclaration(Java.FieldDeclaration fd)
public void addInitializer(Java.Initializer i)
public void defineSyntheticField(IClass.IField iField) throws CompileException
CompileException
Java.InnerClassDeclaration.defineSyntheticField(IClass.IField)
Copyright © 2001–2016. All rights reserved.