public final class EnumConstantDeclaration extends BodyDeclaration implements DocumentableNode, NamedNode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
EnumConstantDeclaration() |
EnumConstantDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<AnnotationExpr> annotations,
String name,
List<Expression> args,
List<BodyDeclaration> classBody)
Deprecated.
prefer using Range objects.
|
EnumConstantDeclaration(List<AnnotationExpr> annotations,
String name,
List<Expression> args,
List<BodyDeclaration> classBody) |
EnumConstantDeclaration(Range range,
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() |
JavadocComment |
getJavaDoc()
Gets the JavaDoc for this node.
|
String |
getName() |
void |
setArgs(List<Expression> args) |
void |
setClassBody(List<BodyDeclaration> classBody) |
void |
setName(String name) |
getAnnotations, setAnnotations
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEnd, getEndColumn, getEndLine, getOrphanComments, getParentNode, getRange, hasComment, hashCode, isPositionedAfter, isPositionedAfter, isPositionedBefore, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBeginColumn, setBeginLine, setComment, setData, setEnd, setEndColumn, setEndLine, setParentNode, setRange, toString, toStringWithoutComments
public EnumConstantDeclaration()
public EnumConstantDeclaration(String name)
public EnumConstantDeclaration(List<AnnotationExpr> annotations, String name, List<Expression> args, List<BodyDeclaration> classBody)
@Deprecated public EnumConstantDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, List<AnnotationExpr> annotations, String name, List<Expression> args, List<BodyDeclaration> classBody)
public EnumConstantDeclaration(Range range, 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 void setArgs(List<Expression> args)
public void setClassBody(List<BodyDeclaration> classBody)
public void setName(String name)
public JavadocComment getJavaDoc()
DocumentableNode
getJavaDoc
in interface DocumentableNode
Copyright © 2007–2016. All rights reserved.