KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > declaration > CtVariable


1 package spoon.reflect.declaration;
2
3 import spoon.reflect.code.CtExpression;
4 import spoon.reflect.reference.CtVariableReference;
5
6 /**
7  * This abstract element defines a variable declaration.
8  */

9 public interface CtVariable<T> extends CtNamedElement, CtTypedElement<T> {
10
11     /**
12      * Gets the expression assigned to the variable, when declared.
13      */

14     CtExpression<T> getDefaultExpression();
15
16     /*
17      * (non-Javadoc)
18      *
19      * @see spoon.reflect.declaration.CtNamedElement#getReference()
20      */

21     CtVariableReference<T> getReference();
22
23     /**
24      * Sets the expression assigned to the variable, when declared.
25      */

26     void setDefaultExpression(CtExpression<T> assignedExpression);
27 }
28
Popular Tags