KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > ClassDecl


1 package polyglot.ast;
2
3 import java.util.List JavaDoc;
4 import polyglot.types.Flags;
5 import polyglot.types.ParsedClassType;
6
7 /**
8  * A <code>ClassDecl</code> represents a top-level, member, or local class
9  * declaration.
10  */

11 public interface ClassDecl extends Term, TopLevelDecl, ClassMember
12 {
13     /**
14      * The type of the class declaration.
15      */

16     ParsedClassType type();
17
18     /**
19      * Set the type of the class declaration.
20      */

21     ClassDecl type(ParsedClassType type);
22
23     /**
24      * The class declaration's flags.
25      */

26     Flags flags();
27
28     /**
29      * Set the class declaration's flags.
30      */

31     ClassDecl flags(Flags flags);
32
33     /**
34      * The class declaration's name.
35      */

36     String JavaDoc name();
37
38     /**
39      * Set the class declaration's name.
40      */

41     ClassDecl name(String JavaDoc name);
42
43     /**
44      * The class's super class.
45      */

46     TypeNode superClass();
47
48     /**
49      * Set the class's super class.
50      */

51     ClassDecl superClass(TypeNode superClass);
52
53     /**
54      * The class's interface list.
55      * @return A list of {@link polyglot.ast.TypeNode TypeNode}.
56      */

57     List JavaDoc interfaces();
58
59     /**
60      * Set the class's interface list.
61      * @param interfaces A list of {@link polyglot.ast.TypeNode TypeNode}.
62      */

63     ClassDecl interfaces(List JavaDoc interfaces);
64
65     /**
66      * The class's body.
67      */

68     ClassBody body();
69
70     /**
71      * Set the class's body.
72      */

73     ClassDecl body(ClassBody body);
74 }
75
Popular Tags