public static final class Java.PackageMemberEnumDeclaration extends Java.AbstractPackageMemberClassDeclaration implements Java.EnumDeclaration
implementedTypes, name, optionalExtendedTypeconstructors, variableDeclaratorsAndInitializersanonymousClassCount, localClassCount| Constructor and Description |
|---|
PackageMemberEnumDeclaration(Location location,
String optionalDocComment,
Java.Modifiers 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() |
getClassName, getDeclaringCompilationUnit, setDeclaringCompilationUnitgetDocComment, getName, hasDeprecatedDocTag, toStringaddConstructor, addFieldDeclaration, addInitializer, defineSyntheticField, getSyntheticFields, getVariableDeclaratorsAndInitializersaddDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetSyntheticFields, getVariableDeclaratorsAndInitializersgetOptionalTypeParameterscreateAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlagsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopegetDocComment, hasDeprecatedDocTagpublic PackageMemberEnumDeclaration(Location location, @Nullable String optionalDocComment, Java.Modifiers modifiers, String name, Java.Type[] implementedTypes) throws CompileException
CompileExceptionpublic 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.AbstractPackageMemberClassDeclarationEX extends Throwable