Class EnumDeclaration
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.declaration.TypeDeclaration
-
- org.jd.core.v1.model.javasyntax.declaration.EnumDeclaration
-
- All Implemented Interfaces:
java.lang.Iterable<MemberDeclaration>
,BaseMemberDeclaration
,BaseTypeDeclaration
,Declaration
,MemberDeclaration
,Base<MemberDeclaration>
- Direct Known Subclasses:
ClassFileEnumDeclaration
public class EnumDeclaration extends TypeDeclaration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnumDeclaration.Constant
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<EnumDeclaration.Constant>
constants
protected BaseType
interfaces
-
Fields inherited from class org.jd.core.v1.model.javasyntax.declaration.TypeDeclaration
annotationReferences, bodyDeclaration, flags, internalTypeName, name
-
Fields inherited from interface org.jd.core.v1.model.javasyntax.declaration.Declaration
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_BRIDGE, FLAG_DEFAULT, FLAG_ENUM, FLAG_FINAL, FLAG_INTERFACE, FLAG_MANDATED, FLAG_MODULE, FLAG_NATIVE, FLAG_OPEN, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STATIC_PHASE, FLAG_STRICT, FLAG_SUPER, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_TRANSITIVE, FLAG_VARARGS, FLAG_VOLATILE
-
-
Constructor Summary
Constructors Constructor Description EnumDeclaration(int flags, java.lang.String internalName, java.lang.String name, java.util.List<EnumDeclaration.Constant> constants, BodyDeclaration bodyDeclaration)
EnumDeclaration(BaseAnnotationReference annotationReferences, int flags, java.lang.String internalName, java.lang.String name, BaseType interfaces, java.util.List<EnumDeclaration.Constant> constants, BodyDeclaration bodyDeclaration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(DeclarationVisitor visitor)
java.util.List<EnumDeclaration.Constant>
getConstants()
BaseType
getInterfaces()
java.lang.String
toString()
-
Methods inherited from class org.jd.core.v1.model.javasyntax.declaration.TypeDeclaration
getAnnotationReferences, getBodyDeclaration, getFlags, getInternalTypeName, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
interfaces
protected BaseType interfaces
-
constants
protected java.util.List<EnumDeclaration.Constant> constants
-
-
Constructor Detail
-
EnumDeclaration
public EnumDeclaration(int flags, java.lang.String internalName, java.lang.String name, java.util.List<EnumDeclaration.Constant> constants, BodyDeclaration bodyDeclaration)
-
EnumDeclaration
public EnumDeclaration(BaseAnnotationReference annotationReferences, int flags, java.lang.String internalName, java.lang.String name, BaseType interfaces, java.util.List<EnumDeclaration.Constant> constants, BodyDeclaration bodyDeclaration)
-
-
Method Detail
-
getInterfaces
public BaseType getInterfaces()
-
getConstants
public java.util.List<EnumDeclaration.Constant> getConstants()
-
accept
public void accept(DeclarationVisitor visitor)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-