KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.reflect.code;
2
3 /**
4  * This abstract code element represents all the statements, which can be part
5  * of a block.
6  *
7  * @see spoon.reflect.code.CtBlock
8  */

9 public interface CtStatement extends CtCodeElement {
10
11     /**
12      * Inserts a statement after the current statement.
13      */

14     void insertAfter(CtStatement statement);
15
16     /**
17      * Inserts a statement list before the current statement.
18      */

19     void insertAfter(CtStatementList statements);
20
21     /**
22      * Inserts a statement before the current statement.
23      */

24     void insertBefore(CtStatement statement);
25
26     /**
27      * Inserts a statement list before the current statement.
28      */

29     void insertBefore(CtStatementList statements);
30
31     /**
32      * Gets the label of this statement if defined.
33      *
34      * @return the label's name (null if undefined)
35      */

36     String JavaDoc getLabel();
37
38     /**
39      * Sets the label of this statement.
40      */

41     void setLabel(String JavaDoc label);
42
43 }
44
Popular Tags