KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > code > CtArrayAccess


1 package spoon.reflect.code;
2
3 /**
4  * This code element defines a one-dimensional array access. When
5  * multi-dimensionnal, array accesses are applied to other one-dimensional array
6  * accesses. The target of {@link spoon.reflect.code.CtTargetedExpression}
7  * defines the expression that represents the accessed array.
8  *
9  * @param <T> "Return" type of this access (not a array type)
10  * @param <E> Type of the target expression
11  */

12 public interface CtArrayAccess<T, E extends CtExpression<?>> extends
13         CtTargetedExpression<T, E> {
14     /**
15      * Sets the expression that defines the index.
16      */

17     void setIndexExpression(CtExpression<Integer JavaDoc> expression);
18
19     /**
20      * Returns the expression that defines the index.
21      */

22     CtExpression<Integer JavaDoc> getIndexExpression();
23 }
24
Popular Tags