Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

javax.ide.model.java.source.tree
Interface VariableDeclT

All Superinterfaces:
HasModifiersT, Tree
All Known Subinterfaces:
FieldDeclT, LocalVariableDeclT

public interface VariableDeclT
extends Tree, HasModifiersT

Common supertype for field declarations and local variable declarations.


Field Summary
 
Fields inherited from interface javax.ide.model.java.source.tree.Tree
EMPTY_ARRAY
 
Method Summary
 TypeReferenceT getType()
          Gets the type reference for this element.
 java.util.List getVariables()
          Gets the list of declared variables.
 void setType(TypeReferenceT type)
          Unlinks the current source type and links the input element.
 
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.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getVariables

java.util.List getVariables()
Gets the list of declared variables. If this is an enum constant, there can never be more than one variable.

Returns:
Array of variables declared in this field.

List of VariableTs.


getType

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

Returns:
This element's type reference.

setType

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

Parameters:
type - The new type reference.
Throws:
java.lang.IllegalStateException - if the input type is already linked.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.