1 package spoon.support.reflect.code; 2 3 import spoon.reflect.code.CtExpression; 4 import spoon.reflect.code.CtForEach; 5 import spoon.reflect.code.CtLocalVariable; 6 import spoon.reflect.visitor.CtVisitor; 7 8 public class CtForEachImpl extends CtLoopImpl implements CtForEach { 9 private static final long serialVersionUID = 1L; 10 CtExpression<?> expression; 11 12 CtLocalVariable variable; 13 14 public void accept(CtVisitor visitor) { 15 visitor.visitCtForEach(this); 16 } 17 18 public CtExpression<?> getExpression() { 19 return expression; 20 } 21 22 public CtLocalVariable<?> getVariable() { 23 return variable; 24 } 25 26 public void setExpression(CtExpression<?> expression) { 27 this.expression = expression; 28 } 29 30 public void setVariable(CtLocalVariable<?> variable) { 31 this.variable = variable; 32 } 33 34 } 35 | Popular Tags |