Interface Java.ClassDeclaration
- All Superinterfaces:
Java.Annotatable, Java.Locatable, Java.Scope, Java.TypeDeclaration
- All Known Subinterfaces:
Java.EnumDeclaration, Java.InnerClassDeclaration
- All Known Implementing Classes:
Java.AbstractClassDeclaration, Java.AnonymousClassDeclaration, Java.EnumConstant, Java.LocalClassDeclaration, Java.MemberClassDeclaration, Java.MemberEnumDeclaration, Java.NamedClassDeclaration, Java.PackageMemberClassDeclaration, Java.PackageMemberEnumDeclaration
- Enclosing class:
Java
Base for the various class declarations (top-level class, local class, anonymous class, nested class, top-level
enum, nested enum).
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Methods inherited from interface Java.Annotatable
getAnnotationsMethods inherited from interface Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface Java.Scope
getEnclosingScopeMethods inherited from interface Java.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations
-
Method Details
-
getVariableDeclaratorsAndInitializers
List<Java.FieldDeclarationOrInitializer> 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. -
getSyntheticFields
SortedMap<String, IClass.IField> getSyntheticFields()- Returns:
- The synthetic fields that were created while this type declaration was compiled
-