public class ASTJEnumConstant extends ASTJMember<EnumConstantDeclaration> implements JEnumConstant
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
arguments
Cached array of arguments
|
protected java.lang.String |
body
Cached body of the enum constant.
|
commentisCommentedOut, name, rewriter, UNITIALIZED_STRINGEMPTY_STRING_ARRAY, qualifiedName| Constructor and Description |
|---|
ASTJEnumConstant(EnumConstantDeclaration enumConstantDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.lang.String[] |
getArguments()
Returns an ordered list of arguments as declared in source.
|
java.lang.String |
getBody()
Returns body of the enum constant.
|
java.lang.String |
getName()
Returns the name of this node.
|
void |
setArguments(java.lang.String[] arguments) |
void |
setBody(java.lang.String body) |
void |
setName(java.lang.String name)
Sets the name of this node.
|
addChild, getAnnotationList, getChildren, getComment, getFlags, insertLastAnnotation, insertSibling, remove, setComment, setFlagsaddValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, enableTrackAndReplace, getASTNode, getContents, getFacadeHelper, getParent, getRemovedASTNode, getRewriter, getWrappedObject, insert, insertFirst, insertLast, isDisposed, nodeToBeMoved, nodeToBeRemoved, remove, removeNodeFromListProperty, removeTrackAndReplace, setASTNode, setFacadeHelper, setListNodeProperty, setNodeProperty, setNodeProperty, setParent, setRemovedASTNode, setRewriter, setTrackedNodeProperty, setWrappedObject, trackAndReplacecomputeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComment, setCommentgetChildren, getContents, getFlags, getParent, getQualifiedName, setFlagsprotected java.lang.String[] arguments
getArguments(),
setArguments(String[])protected java.lang.String body
getBody(),
setBody(String)public ASTJEnumConstant(EnumConstantDeclaration enumConstantDeclaration)
enumConstantDeclaration - public void dispose()
dispose in class ASTJMember<EnumConstantDeclaration>public java.lang.String[] getArguments()
JEnumConstantgetArguments in interface JEnumConstantpublic void setArguments(java.lang.String[] arguments)
setArguments in interface JEnumConstantpublic java.lang.String getBody()
JEnumConstantgetBody in interface JEnumConstantpublic void setBody(java.lang.String body)
setBody in interface JEnumConstantpublic java.lang.String getName()
JNodepublic void setName(java.lang.String name)
JNodesetName in interface JNodeJNode.getQualifiedName()Copyright © 2019. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature