1 package spoon.support.reflect.code;2 3 import java.util.ArrayList ;4 import java.util.List ;5 6 import spoon.reflect.code.CtStatement;7 import spoon.reflect.code.CtStatementList;8 import spoon.reflect.declaration.CtSimpleType;9 import spoon.reflect.visitor.CtVisitor;10 11 public class CtStatementListImpl<R> extends CtCodeElementImpl implements12 CtStatementList<R> {13 private static final long serialVersionUID = 1L;14 List <CtStatement> statements = new ArrayList <CtStatement>();15 16 public void accept(CtVisitor visitor) {17 visitor.visitCtStatementList(this);18 }19 20 public List <CtStatement> getStatements() {21 return statements;22 }23 24 public void setStatements(List <CtStatement> statements) {25 this.statements = statements;26 }27 28 public R S() {29 return null;30 }31 32 public CtStatementList getSubstitution(CtSimpleType targetType) {33 return getFactory().Core().clone(this);34 }35 36 }37