Example usage for Java org.eclipse.jdt.core.dom EnumConstantDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildPropertyDescriptor | NAME_PROPERTY The "name" structural property of this node type (child type: SimpleName ). |
ChildListPropertyDescriptor | ARGUMENTS_PROPERTY The "arguments" structural property of this node type (element type: Expression ). |
ChildPropertyDescriptor | ANONYMOUS_CLASS_DECLARATION_PROPERTY The "anonymousClassDeclaration" structural property of this node type (child type: AnonymousClassDeclaration ). |
ASTNode.NodeList | arguments The list of argument expressions (element type: Expression ). |
EnumConstantDeclaration(AST ast) Creates a new AST node for an enumeration constants declaration owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
AnonymousClassDeclaration | getAnonymousClassDeclaration() Returns the anonymous class declaration introduced by this enum constant declaration, if it has one. |
AST | getAST() Returns this node's AST. |
int | getFlags() Returns the flags associated with this node. |
Javadoc | getJavadoc() Returns the doc comment node. |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
int | getModifiers() Returns the modifiers explicitly specified on this declaration. |
SimpleName | getName() Returns the name of the constant declared in this enum declaration. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
Object | getProperty(String propertyName) Returns the value of the named property of this node, or null if none. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
void | internalSetModifiers(int pmodifiers) Internal synonym for deprecated method. |
List | modifiers() Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API). |
IMethodBinding | resolveConstructorBinding() Resolves and returns the binding for the constructor invoked by this enum constant. |
IVariableBinding | resolveVariable() Resolves and returns the field binding for this enum constant. |
void | setAnonymousClassDeclaration(AnonymousClassDeclaration decl) Sets whether this enum constant declaration declares an anonymous class (that is, has class body declarations). |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
void | setJavadoc(Javadoc docComment) Sets or clears the doc comment node. |
void | setModifiers(int modifiers) Sets the modifiers explicitly specified on this declaration (JLS2 API only). |
void | setName(SimpleName constantName) Sets the name of the constant declared in this enum declaration to the given name. |
void | setProperty(String propertyName, Object data) Sets the named property of this node to the given value, or to null to clear it. |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |