public interface VariableT extends Tree, HasModifiersT, HasNameT
| Modifier and Type | Field and Description | 
|---|---|
static VariableT[] | 
EMPTY_ARRAY  | 
| Modifier and Type | Method and Description | 
|---|---|
ExpressionT | 
getInitializer()
Gets the initializer, null if none. 
 | 
VariableDeclT | 
getOwningDeclaration()
Gets the owning variable declaration, null if this is a formal
 parameter. 
 | 
TypeReferenceT | 
getType()
Gets the type reference for this element. 
 | 
void | 
setInitializer(ExpressionT expr)
Unlinks the current initializer, if any, and links the input
 element. 
 | 
void | 
setType(TypeReferenceT type)
Unlinks the current source type and links the input element. 
 | 
addModifiers, getAnnotations, getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictfp, removeModifiers, setModifiersgetName, getNameElement, setName, setNameElementaccept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setPropertystatic final VariableT[] EMPTY_ARRAY
ExpressionT getInitializer()
void setInitializer(ExpressionT expr)
java.lang.IllegalStateException - if the input element is already linked.VariableDeclT getOwningDeclaration()
Field variables (SRC_FIELD_VARIABLE) return SrcFieldDeclaration's. Formal parameters (SRC_FORMAL_PARAMETER) return null. Local variables (SRC_LOCAL_VARIABLE) return SrcLocalsDeclaration's.
TypeReferenceT getType()
void setType(TypeReferenceT type)
type - The new type reference.java.lang.IllegalStateException - if the input type is already linked.