Lines 24-31
Link Here
|
24 |
|
24 |
|
25 |
private static final JavaDocTag[] TAGS_EMPTY = new JavaDocTag[] {}; |
25 |
private static final JavaDocTag[] TAGS_EMPTY = new JavaDocTag[] {}; |
26 |
private static final JavaDocTag.See[] SEE_TAGS_EMPTY = new JavaDocTag.See[] {}; |
26 |
private static final JavaDocTag.See[] SEE_TAGS_EMPTY = new JavaDocTag.See[] {}; |
27 |
private static final JavaDocTag.Param[] PARAM_TAGS_EMPTY = new JavaDocTag.Param[] {}; |
27 |
private static final JavaDocTag.Param[] PARAM_TAGS_EMPTY = new JavaDocTag.Param[] {}; |
28 |
private static final JavaDocTag.Throws[] THROWS_TAGS_EMPTY = new JavaDocTag.Throws[] {}; |
28 |
private static final JavaDocTag.Throws[] THROWS_TAGS_EMPTY = new JavaDocTag.Throws[] {}; |
29 |
private static final JavaDocTag.SerialField[] SERIALFIELD_TAGS_EMPTY = new JavaDocTag.SerialField[] {}; |
29 |
private static final JavaDocTag.SerialField[] SERIALFIELD_TAGS_EMPTY = new JavaDocTag.SerialField[] {}; |
30 |
|
30 |
|
31 |
/** Creates new ClassJavaDocImpl */ |
31 |
/** Creates new ClassJavaDocImpl */ |
32 |
-- |
|
|
Lines 33-115
Link Here
|
33 |
} |
33 |
} |
34 |
|
34 |
|
35 |
/** Get the entire text of the comment. |
35 |
/** Get the entire text of the comment. |
36 |
* @return the whole text |
36 |
* @return the whole text |
37 |
*/ |
37 |
*/ |
38 |
public String getRawText() { |
38 |
public String getRawText() { |
39 |
return ""; // NOI18N |
39 |
return ""; // NOI18N |
40 |
} |
40 |
} |
41 |
|
41 |
|
42 |
/** Set the raw text of the comment. |
42 |
/** Set the raw text of the comment. |
43 |
* @param s the whole text to set |
43 |
* @param s the whole text to set |
44 |
* @exception SourceException if the modification cannot be performed |
44 |
* @exception SourceException if the modification cannot be performed |
45 |
*/ |
45 |
*/ |
46 |
public void setRawText(String s) throws SourceException { |
46 |
public void setRawText(String s) throws SourceException { |
47 |
throw new SourceException(); |
47 |
throw new SourceException(); |
48 |
} |
48 |
} |
49 |
|
49 |
|
50 |
/** Get the actual text, cleared of all (non-inline) tags. |
50 |
/** Get the actual text, cleared of all (non-inline) tags. |
51 |
* @return the plain text |
51 |
* @return the plain text |
52 |
*/ |
52 |
*/ |
53 |
public String getText() { |
53 |
public String getText() { |
54 |
return ""; // NOI18N |
54 |
return ""; // NOI18N |
55 |
} |
55 |
} |
56 |
|
56 |
|
57 |
/** Set the actual text. |
57 |
/** Set the actual text. |
58 |
* @param s the actual text, without any (non-inline) tags |
58 |
* @param s the actual text, without any (non-inline) tags |
59 |
* @exception SourceException if the modification cannot be performed |
59 |
* @exception SourceException if the modification cannot be performed |
60 |
*/ |
60 |
*/ |
61 |
public void setText(String s) throws SourceException { |
61 |
public void setText(String s) throws SourceException { |
62 |
throw new SourceException(); |
62 |
throw new SourceException(); |
63 |
} |
63 |
} |
64 |
|
64 |
|
65 |
/** Clears the javadoc from the source. |
65 |
/** Clears the javadoc from the source. |
66 |
*/ |
66 |
*/ |
67 |
public void clearJavaDoc() throws SourceException { |
67 |
public void clearJavaDoc() throws SourceException { |
68 |
throw new SourceException(); |
68 |
throw new SourceException(); |
69 |
} |
69 |
} |
70 |
|
70 |
|
71 |
/** Test if this javadoc is empty. |
71 |
/** Test if this javadoc is empty. |
72 |
* @return true if it is not generated to the source. |
72 |
* @return true if it is not generated to the source. |
73 |
*/ |
73 |
*/ |
74 |
public boolean isEmpty() { |
74 |
public boolean isEmpty() { |
75 |
return true; |
75 |
return true; |
76 |
} |
76 |
} |
77 |
|
77 |
|
78 |
/** Gets all tags from comment. |
78 |
/** Gets all tags from comment. |
79 |
*/ |
79 |
*/ |
80 |
public JavaDocTag[] getTags() { |
80 |
public JavaDocTag[] getTags() { |
81 |
return TAGS_EMPTY; |
81 |
return TAGS_EMPTY; |
82 |
} |
82 |
} |
83 |
|
83 |
|
84 |
/** Gets all tags of given name |
84 |
/** Gets all tags of given name |
85 |
*/ |
85 |
*/ |
86 |
public JavaDocTag[] getTags(String name) { |
86 |
public JavaDocTag[] getTags(String name) { |
87 |
return TAGS_EMPTY; |
87 |
return TAGS_EMPTY; |
88 |
} |
88 |
} |
89 |
|
89 |
|
90 |
/** Adds removes or sets tags used in this comment |
90 |
/** Adds removes or sets tags used in this comment |
91 |
* @param elems the new initializers |
91 |
* @param elems the new initializers |
92 |
* @param action {@link #ADD}, {@link #REMOVE}, or {@link #SET} |
92 |
* @param action {@link #ADD}, {@link #REMOVE}, or {@link #SET} |
93 |
* @exception SourceException if impossible |
93 |
* @exception SourceException if impossible |
94 |
*/ |
94 |
*/ |
95 |
public void changeTags(JavaDocTag[] tags,int action) throws SourceException { |
95 |
public void changeTags(JavaDocTag[] tags,int action) throws SourceException { |
96 |
throw new SourceException(); |
96 |
throw new SourceException(); |
97 |
} |
97 |
} |
98 |
|
98 |
|
99 |
/** Gets all @see tags |
99 |
/** Gets all @see tags |
100 |
*/ |
100 |
*/ |
101 |
public JavaDocTag.See[] getSeeTags() { |
101 |
public JavaDocTag.See[] getSeeTags() { |
102 |
return SEE_TAGS_EMPTY; |
102 |
return SEE_TAGS_EMPTY; |
103 |
} |
103 |
} |
104 |
|
104 |
|
105 |
/** The JavaDoc of a class. |
105 |
/** The JavaDoc of a class. |
106 |
* Class javadoc adds no special tags. |
106 |
* Class javadoc adds no special tags. |
107 |
*/ |
|
|
108 |
static class Class extends ClassJavaDocImpl implements JavaDoc.Class { |
109 |
} |
110 |
|
111 |
/** The JavaDoc of a field. |
112 |
* <p>Currently adds special @SerialField tag |
113 |
*/ |
114 |
static class Field extends ClassJavaDocImpl implements JavaDoc.Field { |
115 |
/** Gets SerialField tags. |
116 |
-- |
Lines 117-126
Link Here
|
117 |
public JavaDocTag.SerialField[] getSerialFieldTags() { |
108 |
static class Class extends ClassJavaDocImpl implements JavaDoc.Class { |
118 |
return SERIALFIELD_TAGS_EMPTY; |
109 |
} |
119 |
}; |
110 |
|
120 |
} |
111 |
/** The JavaDoc of a field. |
121 |
|
112 |
* <p>Currently adds special @SerialField tag |
122 |
/** The JavaDoc of a method. Adds two special tags: @para tag and @throws tag. |
|
|
123 |
*/ |
124 |
static class Method extends ClassJavaDocImpl implements JavaDoc.Method { |
125 |
|
126 |
/** Gets param tags. |
127 |
-- |
Lines 128-130
Link Here
|
128 |
public JavaDocTag.Param[] getParamTags() { |
114 |
static class Field extends ClassJavaDocImpl implements JavaDoc.Field { |
129 |
return PARAM_TAGS_EMPTY; |
115 |
/** Gets SerialField tags. |
130 |
}; |
116 |
*/ |
131 |
-- |
117 |
public JavaDocTag.SerialField[] getSerialFieldTags() { |
|
|
118 |
return SERIALFIELD_TAGS_EMPTY; |
119 |
}; |
120 |
} |
Line 132
Link Here
|
132 |
/** Gets throws tags. |
122 |
/** The JavaDoc of a method. Adds two special tags: @para tag and @throws tag. |
133 |
-- |
|
|
Lines 134-137
Link Here
|
134 |
public JavaDocTag.Throws[] getThrowsTags() { |
124 |
static class Method extends ClassJavaDocImpl implements JavaDoc.Method { |
135 |
return THROWS_TAGS_EMPTY; |
125 |
|
136 |
}; |
126 |
/** Gets param tags. |
137 |
} |
127 |
*/ |
138 |
-- |
128 |
public JavaDocTag.Param[] getParamTags() { |
|
|
129 |
return PARAM_TAGS_EMPTY; |
130 |
}; |
131 |
|
132 |
/** Gets throws tags. |
133 |
*/ |
134 |
public JavaDocTag.Throws[] getThrowsTags() { |
135 |
return THROWS_TAGS_EMPTY; |
136 |
}; |
137 |
} |