1 package spoon.support.reflect.code; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 import spoon.reflect.code.CtCase; 7 import spoon.reflect.code.CtExpression; 8 import spoon.reflect.code.CtStatement; 9 import spoon.reflect.visitor.CtVisitor; 10 11 public class CtCaseImpl<E> extends CtStatementImpl implements CtCase<E> { 12 private static final long serialVersionUID = 1L; 13 CtExpression<E> caseExpression; 14 15 List <CtStatement> statements= new ArrayList <CtStatement>(); 16 17 public void accept(CtVisitor visitor) { 18 visitor.visitCtCase(this); 19 } 20 21 public CtExpression<E> getCaseExpression() { 22 return caseExpression; 23 } 24 25 public List <CtStatement> getStatements() { 26 return statements; 27 } 28 29 public void setCaseExpression(CtExpression<E> caseExpression) { 30 this.caseExpression = caseExpression; 31 } 32 33 public void setStatements(List <CtStatement> statements) { 34 this.statements = statements; 35 } 36 37 } 38 | Popular Tags |