Package org.codehaus.janino
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 org.codehaus.janino.Java.Annotatable
getAnnotationsMethods inherited from interface org.codehaus.janino.Java.ClassDeclaration
getSyntheticFields, getVariableDeclaratorsAndInitializersMethods inherited from interface org.codehaus.janino.Java.DocCommentable
getDocComment, hasDeprecatedDocTagMethods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface org.codehaus.janino.Java.NamedTypeDeclaration
getOptionalTypeParametersMethods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScopeMethods inherited from interface org.codehaus.janino.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.
-