public abstract static class Java.ClassDeclaration extends Java.AbstractTypeDeclaration
| Modifier and Type | Field and Description |
|---|---|
List<Java.ConstructorDeclarator> |
constructors
List of
Java.ConstructorDeclarators of this class. |
List<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. |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, getClassNamepublic final List<Java.ConstructorDeclarator> constructors
Java.ConstructorDeclarators of this class.public final List<Java.BlockStatement> variableDeclaratorsAndInitializers
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").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
CompileExceptionJava.InnerClassDeclaration.defineSyntheticField(IClass.IField)Copyright © 2001–2025. All rights reserved.