KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > code > CtConditional


1 package spoon.reflect.code;
2
3 /**
4  * This code element defines conditional expressions using the ?.
5  */

6 public interface CtConditional<T> extends CtExpression<T> {
7
8     /**
9      * Gets the "false" expression.
10      */

11     CtExpression<T> getElseExpression();
12
13     /**
14      * Gets the "true" expression.
15      */

16     CtExpression<T> getThenExpression();
17
18     /**
19      * Gets the condition expression.
20      */

21     CtExpression<Boolean JavaDoc> getCondition();
22
23     /**
24      * Sets the "false" expression.
25      */

26     void setElseExpression(CtExpression<T> elseExpression);
27
28     /**
29      * Sets the "true" expression.
30      */

31     void setThenExpression(CtExpression<T> thenExpression);
32
33     /**
34      * Sets the condition expression.
35      */

36     void setCondition(CtExpression<Boolean JavaDoc> condition);
37
38 }
39
Popular Tags