1 package spoon.support.reflect.code; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 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 <CtExpression<Integer >> dimensionExpressions = new ArrayList <CtExpression<Integer >>(); 15 16 List <CtExpression<?>> expression = new ArrayList <CtExpression<?>>(); 17 18 public void accept(CtVisitor visitor) { 19 visitor.visitCtNewArray(this); 20 } 21 22 public List <CtExpression<Integer >> getDimensionExpressions() { 23 return dimensionExpressions; 24 } 25 26 public List <CtExpression<?>> getElements() { 27 return expression; 28 } 29 30 public void setDimensionExpressions( 31 List <CtExpression<Integer >> dimensionExpressions) { 32 this.dimensionExpressions = dimensionExpressions; 33 } 34 35 public void setElements(List <CtExpression<?>> expression) { 36 this.expression = expression; 37 } 38 } 39 | Popular Tags |