KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > code > CtNewArrayImpl


1 package spoon.support.reflect.code;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import spoon.reflect.code.CtExpression;
7 import spoon.reflect.code.CtNewArray;
8 import spoon.reflect.visitor.CtVisitor;
9
10 public class CtNewArrayImpl<T> extends CtExpressionImpl<T> implements
11         CtNewArray<T> {
12     private static final long serialVersionUID = 1L;
13
14     List JavaDoc<CtExpression<Integer JavaDoc>> dimensionExpressions = new ArrayList JavaDoc<CtExpression<Integer JavaDoc>>();
15
16     List JavaDoc<CtExpression<?>> expression = new ArrayList JavaDoc<CtExpression<?>>();
17
18     public void accept(CtVisitor visitor) {
19         visitor.visitCtNewArray(this);
20     }
21
22     public List JavaDoc<CtExpression<Integer JavaDoc>> getDimensionExpressions() {
23         return dimensionExpressions;
24     }
25
26     public List JavaDoc<CtExpression<?>> getElements() {
27         return expression;
28     }
29
30     public void setDimensionExpressions(
31             List JavaDoc<CtExpression<Integer JavaDoc>> dimensionExpressions) {
32         this.dimensionExpressions = dimensionExpressions;
33     }
34
35     public void setElements(List JavaDoc<CtExpression<?>> expression) {
36         this.expression = expression;
37     }
38 }
39
Popular Tags