31 import javax.lang.model.element.TypeElement; |
31 import javax.lang.model.element.TypeElement; |
32 |
32 |
33 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeRequiredMemberWriter; |
33 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeRequiredMemberWriter; |
34 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
34 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
35 import jdk.javadoc.internal.doclets.toolkit.Content; |
35 import jdk.javadoc.internal.doclets.toolkit.Content; |
|
36 import jdk.javadoc.internal.doclets.toolkit.DocletException; |
36 import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap; |
37 import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap; |
37 |
38 |
38 |
39 |
39 /** |
40 /** |
40 * Builds documentation for required annotation type members. |
41 * Builds documentation for required annotation type members. |
137 public VisibleMemberMap getVisibleMemberMap() { |
138 public VisibleMemberMap getVisibleMemberMap() { |
138 return visibleMemberMap; |
139 return visibleMemberMap; |
139 } |
140 } |
140 |
141 |
141 /** |
142 /** |
142 * summaryOrder.size() |
143 * Returns whether or not there are members to document. |
|
144 * @return whether or not there are members to document |
143 */ |
145 */ |
144 @Override |
146 @Override |
145 public boolean hasMembersToDocument() { |
147 public boolean hasMembersToDocument() { |
146 return members.size() > 0; |
148 return members.size() > 0; |
147 } |
149 } |
149 /** |
151 /** |
150 * Build the annotation type required member documentation. |
152 * Build the annotation type required member documentation. |
151 * |
153 * |
152 * @param node the XML element that specifies which components to document |
154 * @param node the XML element that specifies which components to document |
153 * @param memberDetailsTree the content tree to which the documentation will be added |
155 * @param memberDetailsTree the content tree to which the documentation will be added |
154 */ |
156 * @throws DocletException if there is a problem while building the documentation |
155 public void buildAnnotationTypeRequiredMember(XMLNode node, Content memberDetailsTree) { |
157 */ |
|
158 public void buildAnnotationTypeRequiredMember(XMLNode node, Content memberDetailsTree) |
|
159 throws DocletException { |
156 buildAnnotationTypeMember(node, memberDetailsTree); |
160 buildAnnotationTypeMember(node, memberDetailsTree); |
157 } |
161 } |
158 |
162 |
159 /** |
163 /** |
160 * Build the member documentation. |
164 * Build the member documentation. |
161 * |
165 * |
162 * @param node the XML element that specifies which components to document |
166 * @param node the XML element that specifies which components to document |
163 * @param memberDetailsTree the content tree to which the documentation will be added |
167 * @param memberDetailsTree the content tree to which the documentation will be added |
164 */ |
168 */ |
165 public void buildAnnotationTypeMember(XMLNode node, Content memberDetailsTree) { |
169 public void buildAnnotationTypeMember(XMLNode node, Content memberDetailsTree) |
|
170 throws DocletException { |
166 if (writer == null) { |
171 if (writer == null) { |
167 return; |
172 return; |
168 } |
173 } |
169 int size = members.size(); |
174 int size = members.size(); |
170 if (size > 0) { |
175 if (size > 0) { |