KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.reflect.code;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * This code element defines a <code>for</code> loop.
7  */

8 public interface CtFor extends CtLoop{
9
10     /**
11      * Gets the end-loop test expression.
12      */

13     CtExpression<Boolean JavaDoc> getExpression();
14
15     /**
16      * Gets the <i>init</i> statements.
17      */

18     List JavaDoc<CtStatement> getForInit();
19
20     /**
21      * Gets the <i>update</i> statements.
22      */

23     List JavaDoc<CtStatement> getForUpdate();
24
25     /**
26      * Sets the end-loop test expression.
27      */

28     void setExpression(CtExpression<Boolean JavaDoc> expression);
29
30     /**
31      * Sets the <i>init</i> statements.
32      */

33     void setForInit(List JavaDoc<CtStatement> forInit);
34
35     /**
36      * Sets the <i>update</i> statements.
37      */

38     void setForUpdate(List JavaDoc<CtStatement> forUpdate);
39 }
40
Popular Tags