KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.support.reflect.code;
2
3 import spoon.reflect.code.CtConditional;
4 import spoon.reflect.code.CtExpression;
5 import spoon.reflect.visitor.CtVisitor;
6
7 public class CtConditionalImpl<T> extends CtExpressionImpl<T> implements
8         CtConditional<T> {
9
10     private static final long serialVersionUID = 1L;
11
12     CtExpression<T> elseExpression;
13
14     CtExpression<Boolean JavaDoc> condition;
15
16     CtExpression<T> thenExpression;
17
18     public void accept(CtVisitor visitor) {
19         visitor.visitCtConditional(this);
20     }
21
22     public CtExpression<T> getElseExpression() {
23         return elseExpression;
24     }
25
26     public CtExpression<Boolean JavaDoc> getCondition() {
27         return condition;
28     }
29
30     public CtExpression<T> getThenExpression() {
31         return thenExpression;
32     }
33
34     public void setElseExpression(CtExpression<T> elseExpression) {
35         this.elseExpression = elseExpression;
36     }
37
38     public void setCondition(CtExpression<Boolean JavaDoc> condition) {
39         this.condition = condition;
40     }
41
42     public void setThenExpression(CtExpression<T> thenExpression) {
43         this.thenExpression = thenExpression;
44     }
45
46 }
47
Popular Tags