KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > code > CtForImpl


1 package spoon.support.reflect.code;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
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 JavaDoc> expression;
14
15     List JavaDoc<CtStatement> forInit = new ArrayList JavaDoc<CtStatement>();
16
17     List JavaDoc<CtStatement> forUpdate = new ArrayList JavaDoc<CtStatement>();
18
19     public void accept(CtVisitor visitor) {
20         visitor.visitCtFor(this);
21     }
22
23     public CtExpression<Boolean JavaDoc> getExpression() {
24         return expression;
25     }
26
27     public List JavaDoc<CtStatement> getForInit() {
28         return forInit;
29     }
30
31     public List JavaDoc<CtStatement> getForUpdate() {
32         return forUpdate;
33     }
34
35     public void setExpression(CtExpression<Boolean JavaDoc> expression) {
36         this.expression = expression;
37     }
38
39     public void setForInit(List JavaDoc<CtStatement> forInit) {
40         this.forInit = forInit;
41     }
42
43     public void setForUpdate(List JavaDoc<CtStatement> forUpdate) {
44         this.forUpdate = forUpdate;
45
46     }
47
48 }
49
Popular Tags