Example usage for Java org.eclipse.jdt.core.dom VariableDeclarationFragment 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 ). |
SimplePropertyDescriptor | EXTRA_DIMENSIONS_PROPERTY The "extraDimensions" structural property of this node type (type: Integer ) (below JLS8 only). |
ChildPropertyDescriptor | INITIALIZER_PROPERTY The "initializer" structural property of this node type (child type: Expression ). |
VariableDeclarationFragment(AST ast) Creates a new AST node for a variable declaration fragment owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
void | delete() Removes this node from its parent. |
List | extraDimensions() Returns the live ordered list of extra dimensions with optional annotations (added in JLS8 API). |
AST | getAST() Returns this node's AST. |
int | getExtraDimensions() Returns the number of extra array dimensions over and above the explicitly-specified type. |
int | getFlags() Returns the flags associated with this node. |
Expression | getInitializer() Returns the initializer of this variable declaration, or null if there is none. |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
SimpleName | getName() Returns the name of the variable declared in this variable declaration. |
int | getNodeType() Returns an integer value identifying the type of this concrete AST node. |
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. |
ASTNode | getRoot() Returns the root node at or above this node; returns this node if it is a root. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
IVariableBinding | resolveBinding() Resolves and returns the binding for the variable declared in this variable declaration. |
void | setExtraDimensions(int dimensions) Sets the number of extra array dimensions over and above the explicitly-specified type. |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
void | setInitializer(Expression initializer) Sets or clears the initializer of this variable declaration. |
void | setName(SimpleName variableName) Sets the name of the variable declared in this variable 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. |