Java org.eclipse.jdt.core.dom EnumConstantDeclaration fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom EnumConstantDeclaration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom EnumConstantDeclaration.

The text is from its open source code.

Field

ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: SimpleName ).
ChildListPropertyDescriptorARGUMENTS_PROPERTY
The "arguments" structural property of this node type (element type: Expression ).
ChildPropertyDescriptorANONYMOUS_CLASS_DECLARATION_PROPERTY
The "anonymousClassDeclaration" structural property of this node type (child type: AnonymousClassDeclaration ).
ASTNode.NodeListarguments
The list of argument expressions (element type: Expression ).

Constructor

EnumConstantDeclaration(AST ast)
Creates a new AST node for an enumeration constants declaration owned by the given AST.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
AnonymousClassDeclarationgetAnonymousClassDeclaration()
Returns the anonymous class declaration introduced by this enum constant declaration, if it has one.
ASTgetAST()
Returns this node's AST.
intgetFlags()
Returns the flags associated with this node.
JavadocgetJavadoc()
Returns the doc comment node.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
intgetModifiers()
Returns the modifiers explicitly specified on this declaration.
SimpleNamegetName()
Returns the name of the constant declared in this enum declaration.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
ObjectgetProperty(String propertyName)
Returns the value of the named property of this node, or null if none.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
voidinternalSetModifiers(int pmodifiers)
Internal synonym for deprecated method.
Listmodifiers()
Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API).
IMethodBindingresolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this enum constant.
IVariableBindingresolveVariable()
Resolves and returns the field binding for this enum constant.
voidsetAnonymousClassDeclaration(AnonymousClassDeclaration decl)
Sets whether this enum constant declaration declares an anonymous class (that is, has class body declarations).
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetJavadoc(Javadoc docComment)
Sets or clears the doc comment node.
voidsetModifiers(int modifiers)
Sets the modifiers explicitly specified on this declaration (JLS2 API only).
voidsetName(SimpleName constantName)
Sets the name of the constant declared in this enum declaration to the given name.
voidsetProperty(String propertyName, Object data)
Sets the named property of this node to the given value, or to null to clear it.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.