public final class EnumDeclaration extends TypeDeclaration
Constructor and Description |
---|
EnumDeclaration() |
EnumDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
String name,
List<ClassOrInterfaceType> implementsList,
List<EnumConstantDeclaration> entries,
List<BodyDeclaration> members) |
EnumDeclaration(int modifiers,
String name) |
EnumDeclaration(JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
String name,
List<ClassOrInterfaceType> implementsList,
List<EnumConstantDeclaration> entries,
List<BodyDeclaration> members) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
List<EnumConstantDeclaration> |
getEntries() |
List<ClassOrInterfaceType> |
getImplements() |
void |
setEntries(List<EnumConstantDeclaration> entries) |
void |
setImplements(List<ClassOrInterfaceType> implementsList) |
getMembers, getModifiers, getName, setMembers, setModifiers, setName
getAnnotations, getJavaDoc, setAnnotations, setJavaDoc
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
public EnumDeclaration()
public EnumDeclaration(int modifiers, String name)
public EnumDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, String name, List<ClassOrInterfaceType> implementsList, List<EnumConstantDeclaration> entries, List<BodyDeclaration> members)
public EnumDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, String name, List<ClassOrInterfaceType> implementsList, List<EnumConstantDeclaration> entries, List<BodyDeclaration> members)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public List<EnumConstantDeclaration> getEntries()
public List<ClassOrInterfaceType> getImplements()
public void setEntries(List<EnumConstantDeclaration> entries)
public void setImplements(List<ClassOrInterfaceType> implementsList)