Example usage for Java org.eclipse.jdt.core.dom VariableDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
AST | getAST() Returns this node's AST. |
int | getExtraDimensions() Returns the number of extra array dimensions over and above the explicitly-specified type. |
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. |
StructuralPropertyDescriptor | getLocationInParent() Returns the location of this node within its parent, or null if this is a root node. |
SimpleName | getName() Returns the name of the variable declared in this variable declaration. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
Object | getStructuralProperty(StructuralPropertyDescriptor property) Returns the value of the given structural property for this node. |
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 | 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. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |