Source code: javax/ide/model/java/source/tree/MemberT.java
1 /*
2 * @(#)MemberT.java
3 */
4
5 package javax.ide.model.java.source.tree;
6
7 /**
8 * Common supertype for elements that may be a member of a type
9 * declaration. <p/>
10 *
11 * @author Andy Yu
12 * */
13 public interface MemberT
14 extends Tree, HasModifiersT
15 {
16 // ----------------------------------------------------------------------
17
18 static final MemberT[] EMPTY_ARRAY = new MemberT[ 0 ];
19
20
21 // ----------------------------------------------------------------------
22
23 /**
24 * Gets the enclosing class.
25 *
26 * @return the class enclosing this member.
27 */
28 public ClassT getDeclaringClass();
29
30
31 // ----------------------------------------------------------------------
32
33 /**
34 * Gets the javadoc comment symbol.
35 *
36 * @return The DocCommentT associated with this symbol.
37 */
38 public DocCommentT getDocComment();
39
40 /**
41 * Attempts to set the javadoc comment symbol.
42 *
43 * @param comment The new comment element.
44 */
45 public void setDocComment( DocCommentT comment );
46
47
48 // ----------------------------------------------------------------------
49
50 /**
51 * Gets the declared code block, null if none.
52 *
53 * @return The code block associated with this element. Null if none.
54 */
55 public BlockT getBlock();
56
57
58 /**
59 * Attempts to set the code block associated with this element.
60 */
61 public void setBlock( BlockT block );
62
63 }