KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > declaration > CtAnonymousExecutable


1 package spoon.reflect.declaration;
2
3 import spoon.reflect.code.CtBlock;
4
5 /**
6  * This element defines an anonymous executable block declaration in a class.
7  *
8  * @see spoon.reflect.declaration.CtClass
9  */

10 public interface CtAnonymousExecutable extends CtElement, CtModifiable {
11
12     /**
13      * Gets the executable block.
14      *
15      * @return the representation of this executable
16      */

17     CtBlock getBody();
18
19     /**
20      * Gets the class that defines this element.
21      *
22      * @return owner class
23      */

24     CtClass getOwnerClass();
25
26     /**
27      * Sets the executable block.
28      *
29      * @param block the representation of this executable
30      */

31     void setBody(CtBlock block);
32
33 }
34
Popular Tags