Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/model/java/source/tree/ClassBodyT.java


1   /*
2    * @(#)ClassBodyT.java
3    */
4   
5   package javax.ide.model.java.source.tree;
6   
7   import java.util.Collection;
8   import java.util.List;
9   
10  /**
11   * A class body, sometimes called a class block. <p/>
12   * 
13   * NOTE: Should this include Tree elements for empty class members? <p/>
14   *
15   * @author Andy Yu
16   * */
17  public interface ClassBodyT
18    extends Tree
19  {
20    // ----------------------------------------------------------------------
21  
22    /**
23     * Gets the list of declared member declarations.
24     *
25     * @return All source-model declared members of this class,
26     * including synthetic members. This will include every member:
27     * methods, constructors, field declarations, enum constant
28     * declarations, inner classes, and initializers. <p/>
29     *
30     * List of MemberTs.
31     */
32    public List getMembers();
33  
34    /**
35     * Gets the list of declared field declarations, including enum constant
36     * declarations.
37     *
38     * @return All source-model declared field declarations and enum
39     * constant declarations of this class. Should enum constants be
40     * returned separately from fields?  Does not include the synthetic
41     * "this$0" field. <p/>
42     *
43     * List of FieldDeclTs.
44     */
45    public List getFieldDeclarations();
46  
47    /**
48     * Gets the collection of declared field variables, including enum constant
49     * variables.
50     *
51     * @return All source-model declared field variables and enum
52     * constant variables of this class. Should enum constants be
53     * returned separately from fields?  Does not include the synthetic
54     * "this$0" field. <p/>
55     *
56     * List of FieldVariableTs.
57     */
58    public Collection getFieldVariables();
59  
60    /**
61     * Gets the list of declared method (but not constructor) declarations.
62     *
63     * @return All source-model declared methods of this class, not
64     * including constructors. Does not include the synthetic default
65     * constructor or the synthetic <clinit> method. <p/>
66     *
67     * List of MethodTs.
68     */
69    public List getMethods();
70  
71    /**
72     * Gets the list of declared constructor declarations.
73     *
74     * @return All source-model declared constructors of this
75     * class. Does not include the synthetic default constructor nor the
76     * synthetic <clinit> method. <p/>
77     *
78     * List of MethodTs.
79     */
80    public List getConstructors();
81  
82    /**
83     * Gets the list of declared member class declarations.
84     *
85     * @return All source-model directly declared inner classes of this
86     * class.  <p/>
87     *
88     * List of ClassTs.
89     */
90    public List getClasses();
91  
92    /**
93     * Gets the list of declared class initializers.
94     *
95     * @return All source-model initializers declared in this
96     * class.  <p/>
97     *
98     * List of ClassInitializerTs.
99     */
100   public List getInitializers();
101 
102 
103   // ----------------------------------------------------------------------
104 }