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.CtFor; 8 import spoon.reflect.code.CtStatement; 9 import spoon.reflect.visitor.CtVisitor; 10 11 public class CtForImpl extends CtLoopImpl implements CtFor { 12 private static final long serialVersionUID = 1L; 13 CtExpression<Boolean > expression; 14 15 List <CtStatement> forInit = new ArrayList <CtStatement>(); 16 17 List <CtStatement> forUpdate = new ArrayList <CtStatement>(); 18 19 public void accept(CtVisitor visitor) { 20 visitor.visitCtFor(this); 21 } 22 23 public CtExpression<Boolean > getExpression() { 24 return expression; 25 } 26 27 public List <CtStatement> getForInit() { 28 return forInit; 29 } 30 31 public List <CtStatement> getForUpdate() { 32 return forUpdate; 33 } 34 35 public void setExpression(CtExpression<Boolean > expression) { 36 this.expression = expression; 37 } 38 39 public void setForInit(List <CtStatement> forInit) { 40 this.forInit = forInit; 41 } 42 43 public void setForUpdate(List <CtStatement> forUpdate) { 44 this.forUpdate = forUpdate; 45 46 } 47 48 } 49 | Popular Tags |