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() |
EnumConstantDeclaration |
setArgs(List<Expression> args) |
EnumConstantDeclaration |
setClassBody(List<BodyDeclaration<?>> classBody) |
EnumConstantDeclaration |
setName(String name) |
getAnnotations, setAnnotationsaddOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitsetJavaDocCommentaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentpublic 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)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic List<Expression> getArgs()
public List<BodyDeclaration<?>> getClassBody()
public String getName()
getName in interface NodeWithName<EnumConstantDeclaration>public EnumConstantDeclaration setArgs(List<Expression> args)
public EnumConstantDeclaration setClassBody(List<BodyDeclaration<?>> classBody)
public EnumConstantDeclaration setName(String name)
setName in interface NodeWithName<EnumConstantDeclaration>public JavadocComment getJavaDoc()
NodeWithJavaDocgetJavaDoc in interface NodeWithJavaDoc<EnumConstantDeclaration>public EnumConstantDeclaration addArgument(String valueExpr)
Copyright © 2007–2016. All rights reserved.