public final class EnumConstantDeclaration extends BodyDeclaration<EnumConstantDeclaration> implements NodeWithJavaDoc<EnumConstantDeclaration>, NodeWithName<EnumConstantDeclaration>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
EnumConstantDeclaration() |
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.
|
EnumConstantDeclaration |
addArgument(String valueExpr) |
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) |
EnumConstantDeclaration |
setName(String name) |
getAnnotations, setAnnotations
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setJavaDocComment
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent
public EnumConstantDeclaration()
public EnumConstantDeclaration(String name)
public EnumConstantDeclaration(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 String getName()
getName
in interface NodeWithName<EnumConstantDeclaration>
public void setArgs(List<Expression> args)
public void setClassBody(List<BodyDeclaration<?>> classBody)
public EnumConstantDeclaration setName(String name)
setName
in interface NodeWithName<EnumConstantDeclaration>
public JavadocComment getJavaDoc()
NodeWithJavaDoc
getJavaDoc
in interface NodeWithJavaDoc<EnumConstantDeclaration>
public EnumConstantDeclaration addArgument(String valueExpr)
Copyright © 2007–2016. All rights reserved.