|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.core.dom.ASTNode | +--org.eclipse.jdt.core.dom.VariableDeclaration
Abstract base class of all AST node types that declare a single local variable.
VariableDeclaration: SingleVariableDeclaration VariableDeclarationFragment
SingleVariableDeclaration
,
VariableDeclarationFragment
Field Summary |
Method Summary | |
abstract Expression |
getInitializer()
Returns the initializer of this variable declaration, or null if there is none. |
abstract SimpleName |
getName()
Returns the name of the variable declared in this variable declaration. |
IVariableBinding |
resolveBinding()
Resolves and returns the binding for the variable declared in this variable declaration. |
abstract void |
setInitializer(Expression initializer)
Sets or clears the initializer of this variable declaration. |
abstract void |
setName(SimpleName variableName)
Sets the name of the variable declared in this variable declaration to the given name. |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
accept, copySubtree, copySubtrees, equals, getAST, getFlags, getLength, getNodeType, getParent, getProperty, getRoot, getStartPosition, properties, setFlags, setProperty, setSourceRange, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public abstract SimpleName getName()
public abstract void setName(SimpleName variableName)
variableName
- the new variable name
IllegalArgumentException
- if:
public abstract Expression getInitializer()
null
if there is none.
null
if
there is nonepublic abstract void setInitializer(Expression initializer)
initializer
- the initializer expression node, or null
if there is none
IllegalArgumentException
- if:
public IVariableBinding resolveBinding()
Note that bindings are generally unavailable unless requested when the AST is being built.
null
if the binding cannot be
resolved
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |