Interface Java.EnumDeclaration
- All Superinterfaces:
Java.Annotatable, Java.ClassDeclaration, Java.DocCommentable, Java.Locatable, Java.NamedTypeDeclaration, Java.Scope, Java.TypeDeclaration
- All Known Implementing Classes:
Java.MemberEnumDeclaration, Java.PackageMemberEnumDeclaration
- Enclosing class:
Java
public static interface Java.EnumDeclaration
extends Java.ClassDeclaration, Java.NamedTypeDeclaration, Java.DocCommentable
Base for package member (a.k.a. "top-level") enum declarations and nested enum declarations.
-
Method Summary
Methods inherited from interface Java.Annotatable
getAnnotationsMethods inherited from interface Java.ClassDeclaration
getSyntheticFields, getVariableDeclaratorsAndInitializersMethods inherited from interface Java.DocCommentable
getDocComment, hasDeprecatedDocTagMethods inherited from interface Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface Java.NamedTypeDeclaration
getOptionalTypeParametersMethods inherited from interface Java.Scope
getEnclosingScopeMethods inherited from interface Java.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations
-
Method Details
-
getModifiers
Java.Modifier[] getModifiers()- Returns:
- The
Java.Modifiers declared for this enum
-
getName
String getName()- Specified by:
getNamein interfaceJava.NamedTypeDeclaration- Returns:
- The declared (not the fully qualified) name of the class or interface
-
getImplementedTypes
Java.Type[] getImplementedTypes()- Returns:
- The interfaces that this enum implements
-
getConstants
List<Java.EnumConstant> getConstants()- Returns:
- The constants that this enum declares
-
addConstant
Adds another constant to this enum declaration.
-