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.
|
EnumDeclaration |
clone() |
List<Node> |
getChildren() |
List<EnumConstantDeclaration> |
getEntries() |
List<ClassOrInterfaceType> |
getImplements() |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setEntries(List<EnumConstantDeclaration> entries) |
void |
setImplements(List<ClassOrInterfaceType> implementsList) |
addBodyReference, addUsage, getBodyReferences, getIdentityComparator, getMembers, getMethodDefinitions, getModifiers, getName, getScopeLevel, getSymbolData, getSymbolName, getTypeDefinitions, getUsages, getVariableDefinitions, merge, setBodyReferences, setMembers, setModifiers, setName, setScopeLevel, setSymbolData, setUsagesgetAnnotations, getJavaDoc, merge, setAnnotations, setJavaDoccheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic 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 boolean removeChild(Node child)
removeChild in class TypeDeclarationpublic List<Node> getChildren()
getChildren in class TypeDeclarationpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic List<EnumConstantDeclaration> getEntries()
public List<ClassOrInterfaceType> getImplements()
public void setEntries(List<EnumConstantDeclaration> entries)
public void setImplements(List<ClassOrInterfaceType> implementsList)
public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class TypeDeclarationpublic EnumDeclaration clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionCopyright © 2018. All rights reserved.