KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > reference > CtVariableReference


1 package spoon.reflect.reference;
2
3 import spoon.reflect.declaration.CtVariable;
4
5 /**
6  * This interface defines a reference to a {@link spoon.reflect.declaration.CtVariable} or sub-type.
7  */

8 public interface CtVariableReference<T> extends CtReference, CtModifiableReference {
9
10     /**
11      * Gets the type of the variable.
12      */

13     CtTypeReference<T> getType();
14
15     /**
16      * Sets the type of the variable.
17      */

18     void setType(CtTypeReference<T> type);
19
20     CtVariable<T> getDeclaration();
21 }
22
Popular Tags