Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.model.java.source.tree
Interface VariableT  view VariableT download VariableT.java

All Superinterfaces:
HasModifiersT, HasNameT, Tree
All Known Subinterfaces:
FieldVariableT, FormalParameterT, LocalVariableT

public interface VariableT
extends Tree, HasModifiersT, HasNameT

Common supertype for field variables (and enum constant variables), local variables, and parameters.


Field Summary
static VariableT[] EMPTY_ARRAY
           
 
Method Summary
 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.
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 
Methods inherited from interface javax.ide.model.java.source.tree.HasModifiersT
addModifiers, getAnnotations, getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictfp, removeModifiers, setModifiers
 
Methods inherited from interface javax.ide.model.java.source.tree.HasNameT
getName, getNameElement, setName, setNameElement
 

Field Detail

EMPTY_ARRAY

public static final VariableT[] EMPTY_ARRAY
Method Detail

getInitializer

public ExpressionT getInitializer()
Gets the initializer, null if none.


setInitializer

public void setInitializer(ExpressionT expr)
Unlinks the current initializer, if any, and links the input element.


getOwningDeclaration

public VariableDeclT getOwningDeclaration()
Gets the owning variable declaration, null if this is a formal parameter.


getType

public TypeReferenceT getType()
Gets the type reference for this element.


setType

public void setType(TypeReferenceT type)
Unlinks the current source type and links the input element.