public static final class Java.PackageMemberEnumDeclaration extends Java.PackageMemberClassDeclaration implements Java.EnumDeclaration
extendedType, implementedTypes, nameconstructors, fieldDeclarationsAndInitializersanonymousClassCount, localClassCount| Constructor and Description |
|---|
PackageMemberEnumDeclaration(Location location,
String docComment,
Java.Modifier[] modifiers,
String name,
Java.Type[] implementedTypes) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type. |
void |
addConstant(Java.EnumConstant ec)
Adds another constant to this enum declaration.
|
List<Java.EnumConstant> |
getConstants() |
Java.Type[] |
getImplementedTypes() |
getAccess, getClassName, getDeclaringCompilationUnit, isStatic, setDeclaringCompilationUnitgetDocComment, getName, hasDeprecatedDocTag, isAbstract, isFinal, isStrictfp, toStringaddConstructor, addFieldDeclaration, addFieldDeclarationOrInitializer, addInitializer, defineSyntheticField, getSyntheticFields, getVariableDeclaratorsAndInitializersaddDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiers, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModifiers, getNamegetSyntheticFields, getVariableDeclaratorsAndInitializersgetOptionalTypeParameterscreateAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarationsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopegetDocComment, hasDeprecatedDocTagpublic Java.Type[] getImplementedTypes()
getImplementedTypes in interface Java.EnumDeclarationpublic List<Java.EnumConstant> getConstants()
getConstants in interface Java.EnumDeclarationpublic void addConstant(Java.EnumConstant ec)
Java.EnumDeclarationaddConstant in interface Java.EnumDeclaration@Nullable public <R,EX extends Throwable> R accept(Visitor.TypeDeclarationVisitor<R,EX> visitor) throws EX extends Throwable
Java.TypeDeclarationvisit...()" method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type.accept in interface Java.TypeDeclarationaccept in class Java.PackageMemberClassDeclarationEX extends ThrowableCopyright © 2022. All rights reserved.