public abstract static class Java.AbstractClassDeclaration extends Java.AbstractTypeDeclaration implements Java.ClassDeclaration
| 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 |
|---|
AbstractClassDeclaration(Location location,
Java.Modifiers modifiers,
Java.TypeParameter[] optionalTypeParameters) |
| 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) |
SortedMap<String,IClass.IField> |
getSyntheticFields() |
List<Java.BlockStatement> |
getVariableDeclaratorsAndInitializers()
Returns the initializers for class variables (JLS7 8.3.2.1) and instance variables (JLS7 8.3.2.2), and
the instance initializers (JLS7 8.6) and static initializers (JLS7 8.7) in the order as they appear in
the type declaration.
|
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileException, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlagsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopepublic 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 AbstractClassDeclaration(Location location, Java.Modifiers modifiers, @Nullable Java.TypeParameter[] optionalTypeParameters)
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)public List<Java.BlockStatement> getVariableDeclaratorsAndInitializers()
Java.ClassDeclarationgetVariableDeclaratorsAndInitializers in interface Java.ClassDeclarationpublic SortedMap<String,IClass.IField> getSyntheticFields()
getSyntheticFields in interface Java.ClassDeclarationCopyright © 2019. All rights reserved.