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

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

Introduction

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

The text is from its open source code.

Field

ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: SimpleName ).
SimplePropertyDescriptorEXTRA_DIMENSIONS_PROPERTY
The "extraDimensions" structural property of this node type (type: Integer ) (below JLS8 only).
ChildPropertyDescriptorINITIALIZER_PROPERTY
The "initializer" structural property of this node type (child type: Expression ).

Constructor

VariableDeclarationFragment(AST ast)
Creates a new AST node for a variable declaration fragment owned by the given AST.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
voiddelete()
Removes this node from its parent.
ListextraDimensions()
Returns the live ordered list of extra dimensions with optional annotations (added in JLS8 API).
ASTgetAST()
Returns this node's AST.
intgetExtraDimensions()
Returns the number of extra array dimensions over and above the explicitly-specified type.
intgetFlags()
Returns the flags associated with this node.
ExpressiongetInitializer()
Returns the initializer of this variable declaration, or null if there is none.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
SimpleNamegetName()
Returns the name of the variable declared in this variable declaration.
intgetNodeType()
Returns an integer value identifying the type of this concrete AST node.
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.
ASTNodegetRoot()
Returns the root node at or above this node; returns this node if it is a root.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
IVariableBindingresolveBinding()
Resolves and returns the binding for the variable declared in this variable declaration.
voidsetExtraDimensions(int dimensions)
Sets the number of extra array dimensions over and above the explicitly-specified type.
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetInitializer(Expression initializer)
Sets or clears the initializer of this variable declaration.
voidsetName(SimpleName variableName)
Sets the name of the variable declared in this variable 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.