public final class EnumConstantDeclaration extends BodyDeclaration
Constructor and Description |
---|
EnumConstantDeclaration() |
EnumConstantDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
List<AnnotationExpr> annotations,
String name,
List<Expression> args,
List<BodyDeclaration> classBody) |
EnumConstantDeclaration(JavadocComment javaDoc,
List<AnnotationExpr> annotations,
String name,
List<Expression> args,
List<BodyDeclaration> classBody) |
EnumConstantDeclaration(String name) |
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<Expression> |
getArgs() |
List<BodyDeclaration> |
getClassBody() |
String |
getName() |
void |
setArgs(List<Expression> args) |
void |
setClassBody(List<BodyDeclaration> classBody) |
void |
setName(String name) |
getAnnotations, getJavaDoc, setAnnotations, setJavaDoc
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
public EnumConstantDeclaration()
public EnumConstantDeclaration(String name)
public EnumConstantDeclaration(JavadocComment javaDoc, List<AnnotationExpr> annotations, String name, List<Expression> args, List<BodyDeclaration> classBody)
public EnumConstantDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, JavadocComment javaDoc, List<AnnotationExpr> annotations, String name, List<Expression> args, List<BodyDeclaration> classBody)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public List<Expression> getArgs()
public List<BodyDeclaration> getClassBody()
public String getName()
public void setArgs(List<Expression> args)
public void setClassBody(List<BodyDeclaration> classBody)
public void setName(String name)