author | ksrini |
Sun, 15 Jun 2014 08:41:57 -0700 | |
changeset 25454 | 376a52c9540c |
parent 24221 | 2376793dd33b |
permissions | -rw-r--r-- |
10 | 1 |
/* |
24221
2376793dd33b
8038583: [javadoc] Refactor uses of arrays to Collections
ksrini
parents:
20237
diff
changeset
|
2 |
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5520 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.tools.doclets.internal.toolkit.builders; |
|
27 |
||
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
28 |
import java.io.*; |
14258 | 29 |
|
30 |
import com.sun.javadoc.*; |
|
10 | 31 |
import com.sun.tools.doclets.internal.toolkit.*; |
32 |
||
33 |
/** |
|
34 |
* Builds the summary for a given annotation type. |
|
35 |
* |
|
14260
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
36 |
* <p><b>This is NOT part of any supported API. |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
37 |
* If you write code that depends on this, you do so at your own risk. |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
38 |
* This code and its internal interfaces are subject to change or |
727a84636f12
8000665: fix "internal API" comments on javadoc files
jjg
parents:
14258
diff
changeset
|
39 |
* deletion without notice.</b> |
10 | 40 |
* |
41 |
* @author Jamie Ho |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
42 |
* @author Bhavesh Patel (Modified) |
10 | 43 |
* @since 1.5 |
44 |
*/ |
|
45 |
public class AnnotationTypeBuilder extends AbstractBuilder { |
|
46 |
||
47 |
/** |
|
48 |
* The root element of the annotation type XML is {@value}. |
|
49 |
*/ |
|
50 |
public static final String ROOT = "AnnotationTypeDoc"; |
|
51 |
||
52 |
/** |
|
53 |
* The annotation type being documented. |
|
54 |
*/ |
|
14542 | 55 |
private final AnnotationTypeDoc annotationTypeDoc; |
10 | 56 |
|
57 |
/** |
|
58 |
* The doclet specific writer. |
|
59 |
*/ |
|
14542 | 60 |
private final AnnotationTypeWriter writer; |
10 | 61 |
|
62 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
63 |
* The content tree for the annotation documentation. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
64 |
*/ |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
65 |
private Content contentTree; |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
66 |
|
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
67 |
/** |
10 | 68 |
* Construct a new ClassBuilder. |
69 |
* |
|
14542 | 70 |
* @param context the build context. |
71 |
* @param annotationTypeDoc the class being documented. |
|
72 |
* @param writer the doclet specific writer. |
|
10 | 73 |
*/ |
14542 | 74 |
private AnnotationTypeBuilder(Context context, |
75 |
AnnotationTypeDoc annotationTypeDoc, |
|
76 |
AnnotationTypeWriter writer) { |
|
77 |
super(context); |
|
78 |
this.annotationTypeDoc = annotationTypeDoc; |
|
79 |
this.writer = writer; |
|
10 | 80 |
} |
81 |
||
82 |
/** |
|
83 |
* Construct a new ClassBuilder. |
|
84 |
* |
|
14542 | 85 |
* @param context the build context. |
10 | 86 |
* @param annotationTypeDoc the class being documented. |
87 |
* @param writer the doclet specific writer. |
|
88 |
*/ |
|
14542 | 89 |
public static AnnotationTypeBuilder getInstance(Context context, |
90 |
AnnotationTypeDoc annotationTypeDoc, |
|
91 |
AnnotationTypeWriter writer) |
|
92 |
throws Exception { |
|
93 |
return new AnnotationTypeBuilder(context, annotationTypeDoc, writer); |
|
10 | 94 |
} |
95 |
||
96 |
/** |
|
97 |
* {@inheritDoc} |
|
98 |
*/ |
|
99 |
public void build() throws IOException { |
|
14542 | 100 |
build(layoutParser.parseXML(ROOT), contentTree); |
10 | 101 |
} |
102 |
||
103 |
/** |
|
104 |
* {@inheritDoc} |
|
105 |
*/ |
|
106 |
public String getName() { |
|
107 |
return ROOT; |
|
108 |
} |
|
109 |
||
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
110 |
/** |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
111 |
* Build the annotation type documentation. |
10 | 112 |
* |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
113 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
114 |
* @param contentTree the content tree to which the documentation will be added |
10 | 115 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
116 |
public void buildAnnotationTypeDoc(XMLNode node, Content contentTree) throws Exception { |
16560 | 117 |
contentTree = writer.getHeader(configuration.getText("doclet.AnnotationType") + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
118 |
" " + annotationTypeDoc.name()); |
16560 | 119 |
Content annotationContentTree = writer.getAnnotationContentHeader(); |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
120 |
buildChildren(node, annotationContentTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
121 |
contentTree.addContent(annotationContentTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
122 |
writer.addFooter(contentTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
123 |
writer.printDocument(contentTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
124 |
writer.close(); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
125 |
copyDocFiles(); |
10 | 126 |
} |
127 |
||
128 |
/** |
|
129 |
* Copy the doc files for the current ClassDoc if necessary. |
|
130 |
*/ |
|
131 |
private void copyDocFiles() { |
|
132 |
PackageDoc containingPackage = annotationTypeDoc.containingPackage(); |
|
133 |
if((configuration.packages == null || |
|
24221
2376793dd33b
8038583: [javadoc] Refactor uses of arrays to Collections
ksrini
parents:
20237
diff
changeset
|
134 |
!configuration.packages.contains(containingPackage) && |
2376793dd33b
8038583: [javadoc] Refactor uses of arrays to Collections
ksrini
parents:
20237
diff
changeset
|
135 |
!containingPackagesSeen.contains(containingPackage))){ |
10 | 136 |
//Only copy doc files dir if the containing package is not |
137 |
//documented AND if we have not documented a class from the same |
|
138 |
//package already. Otherwise, we are making duplicate copies. |
|
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
24221
diff
changeset
|
139 |
utils.copyDocFiles(configuration, containingPackage); |
24221
2376793dd33b
8038583: [javadoc] Refactor uses of arrays to Collections
ksrini
parents:
20237
diff
changeset
|
140 |
containingPackagesSeen.add(containingPackage); |
10 | 141 |
} |
142 |
} |
|
143 |
||
144 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
145 |
* Build the annotation information tree documentation. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
146 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
147 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
148 |
* @param annotationContentTree the content tree to which the documentation will be added |
10 | 149 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
150 |
public void buildAnnotationTypeInfo(XMLNode node, Content annotationContentTree) { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
151 |
Content annotationInfoTree = writer.getAnnotationInfoTreeHeader(); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
152 |
buildChildren(node, annotationInfoTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
153 |
annotationContentTree.addContent(writer.getAnnotationInfo(annotationInfoTree)); |
10 | 154 |
} |
155 |
||
156 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
157 |
* If this annotation is deprecated, build the appropriate information. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
158 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
159 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
160 |
* @param annotationInfoTree the content tree to which the documentation will be added |
10 | 161 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
162 |
public void buildDeprecationInfo (XMLNode node, Content annotationInfoTree) { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
163 |
writer.addAnnotationTypeDeprecationInfo(annotationInfoTree); |
10 | 164 |
} |
165 |
||
166 |
/** |
|
167 |
* Build the signature of the current annotation type. |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
168 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
169 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
170 |
* @param annotationInfoTree the content tree to which the documentation will be added |
10 | 171 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
172 |
public void buildAnnotationTypeSignature(XMLNode node, Content annotationInfoTree) { |
14263 | 173 |
StringBuilder modifiers = new StringBuilder( |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
174 |
annotationTypeDoc.modifiers() + " "); |
25454
376a52c9540c
8039028: [javadoc] refactor the usage of Util.java
ksrini
parents:
24221
diff
changeset
|
175 |
writer.addAnnotationTypeSignature(utils.replaceText( |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
176 |
modifiers.toString(), "interface", "@interface"), annotationInfoTree); |
10 | 177 |
} |
178 |
||
179 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
180 |
* Build the annotation type description. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
181 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
182 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
183 |
* @param annotationInfoTree the content tree to which the documentation will be added |
10 | 184 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
185 |
public void buildAnnotationTypeDescription(XMLNode node, Content annotationInfoTree) { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
186 |
writer.addAnnotationTypeDescription(annotationInfoTree); |
10 | 187 |
} |
188 |
||
189 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
190 |
* Build the tag information for the current annotation type. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
191 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
192 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
193 |
* @param annotationInfoTree the content tree to which the documentation will be added |
10 | 194 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
195 |
public void buildAnnotationTypeTagInfo(XMLNode node, Content annotationInfoTree) { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
196 |
writer.addAnnotationTypeTagInfo(annotationInfoTree); |
10 | 197 |
} |
198 |
||
199 |
/** |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
200 |
* Build the member summary contents of the page. |
10 | 201 |
* |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
202 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
203 |
* @param annotationContentTree the content tree to which the documentation will be added |
10 | 204 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
205 |
public void buildMemberSummary(XMLNode node, Content annotationContentTree) |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
206 |
throws Exception { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
207 |
Content memberSummaryTree = writer.getMemberTreeHeader(); |
10 | 208 |
configuration.getBuilderFactory(). |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
209 |
getMemberSummaryBuilder(writer).buildChildren(node, memberSummaryTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
210 |
annotationContentTree.addContent(writer.getMemberSummaryTree(memberSummaryTree)); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
211 |
} |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
212 |
|
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
213 |
/** |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
214 |
* Build the member details contents of the page. |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
215 |
* |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
216 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
217 |
* @param annotationContentTree the content tree to which the documentation will be added |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
218 |
*/ |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
219 |
public void buildAnnotationTypeMemberDetails(XMLNode node, Content annotationContentTree) { |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
220 |
Content memberDetailsTree = writer.getMemberTreeHeader(); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
221 |
buildChildren(node, memberDetailsTree); |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
222 |
if (memberDetailsTree.isValid()) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
223 |
annotationContentTree.addContent(writer.getMemberDetailsTree(memberDetailsTree)); |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
224 |
} |
10 | 225 |
} |
226 |
||
227 |
/** |
|
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
228 |
* Build the annotation type field documentation. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
229 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
230 |
* @param node the XML element that specifies which components to document |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
231 |
* @param memberDetailsTree the content tree to which the documentation will be added |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
232 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
233 |
public void buildAnnotationTypeFieldDetails(XMLNode node, Content memberDetailsTree) |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
234 |
throws Exception { |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
235 |
configuration.getBuilderFactory(). |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
236 |
getAnnotationTypeFieldsBuilder(writer).buildChildren(node, memberDetailsTree); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
237 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
238 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
16560
diff
changeset
|
239 |
/** |
10 | 240 |
* Build the annotation type optional member documentation. |
241 |
* |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
242 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
243 |
* @param memberDetailsTree the content tree to which the documentation will be added |
10 | 244 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
245 |
public void buildAnnotationTypeOptionalMemberDetails(XMLNode node, Content memberDetailsTree) |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
246 |
throws Exception { |
10 | 247 |
configuration.getBuilderFactory(). |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
248 |
getAnnotationTypeOptionalMemberBuilder(writer).buildChildren(node, memberDetailsTree); |
10 | 249 |
} |
250 |
||
251 |
/** |
|
252 |
* Build the annotation type required member documentation. |
|
253 |
* |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
254 |
* @param node the XML element that specifies which components to document |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
255 |
* @param memberDetailsTree the content tree to which the documentation will be added |
10 | 256 |
*/ |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
257 |
public void buildAnnotationTypeRequiredMemberDetails(XMLNode node, Content memberDetailsTree) |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
258 |
throws Exception { |
10 | 259 |
configuration.getBuilderFactory(). |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5855
diff
changeset
|
260 |
getAnnotationTypeRequiredMemberBuilder(writer).buildChildren(node, memberDetailsTree); |
10 | 261 |
} |
262 |
} |