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

Quick Search    Search Deep

Source code: javax/ide/model/java/declaration/MemberD.java


1   /*
2    * @(#)MemberD.java
3    */
4   
5   package javax.ide.model.java.declaration;
6   
7   /**
8    * A member declaration, part of a type declaration.
9    *
10   * @author Andy Yu
11   */
12  public interface MemberD
13    extends Declaration
14  {
15    // ----------------------------------------------------------------------
16  
17    /**
18     * Gets the declaring class.
19     *
20     * @return The class declaration for the declaring class.
21     */
22    public ClassD getEnclosingClass();
23  
24    /**
25     * Gets the modifiers for this member. May be decoded with
26     * {@link java.lang.reflect.Modifier}.
27     *
28     * @return The modifier mask for this member.
29     */
30    public int getModifiers();
31  
32  
33    // ----------------------------------------------------------------------
34  
35    /**
36     * True if this is modified with "public".
37     *
38     * @return True if this is modified with "public".
39     */
40    public boolean isPublic();
41  
42    /**
43     * True if this is modified with "private".
44     *
45     * @return True if this is modified with "private".
46     */
47    public boolean isPrivate();
48  
49    /**
50     * True if this is modified with "protected".
51     *
52     * @return True if this is modified with "protected".
53     */
54    public boolean isProtected();
55  
56    /**
57     * True if this is modified with "static".
58     *
59     * @return True if this is modified with "static".
60     */
61    public boolean isStatic();
62  
63    /**
64     * True if this is modified with "final".
65     *
66     * @return True if this is modified with "final".
67     */
68    public boolean isFinal();
69  
70  }