KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.reflect.code;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * This code element defines the creation of a new array.
7  *
8  * @param <T>
9  * type of this array (should be a array...)
10  */

11 public interface CtNewArray<T> extends CtExpression<T> {
12
13     /**
14      * Gets the expressions that define the array's dimensions.
15      */

16     List JavaDoc<CtExpression<Integer JavaDoc>> getDimensionExpressions();
17
18     /**
19      * Sets the expressions that define the array's dimensions.
20      */

21     void setDimensionExpressions(List JavaDoc<CtExpression<Integer JavaDoc>> dimensions);
22
23     /**
24      * Gets the initialization expressions.
25      */

26     List JavaDoc<CtExpression<?>> getElements();
27
28     /**
29      * Sets the initialization expressions.
30      */

31     void setElements(List JavaDoc<CtExpression<?>> expression);
32
33 }
34
Popular Tags