- 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.
| 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 |
EMPTY_ARRAY
public static final VariableT[] EMPTY_ARRAY
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.