author | chegar |
Thu, 17 Oct 2019 20:54:25 +0100 | |
branch | datagramsocketimpl-branch |
changeset 58679 | 9c3209ff7550 |
parent 58678 | 9cf78a70fa4f |
parent 55339 | 0530705ca300 |
permissions | -rw-r--r-- |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
1 |
/* |
53991 | 2 |
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
4 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
10 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
15 |
* accompanied this code). |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
16 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
20 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
23 |
* questions. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
24 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
25 |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
26 |
package jdk.javadoc.internal.doclets.formats.html; |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
27 |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
28 |
import javax.lang.model.element.Element; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
29 |
import javax.lang.model.element.ExecutableElement; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
30 |
import javax.lang.model.element.TypeElement; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
31 |
import javax.lang.model.type.TypeMirror; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
32 |
|
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
33 |
import jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder; |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
34 |
import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
35 |
import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; |
55339
0530705ca300
8223364: Bad placement of anchor relative to header
hannesw
parents:
55232
diff
changeset
|
36 |
import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
37 |
import jdk.javadoc.internal.doclets.formats.html.markup.Table; |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
38 |
import jdk.javadoc.internal.doclets.formats.html.markup.TableHeader; |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
39 |
import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeFieldWriter; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
40 |
import jdk.javadoc.internal.doclets.toolkit.Content; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
41 |
import jdk.javadoc.internal.doclets.toolkit.MemberSummaryWriter; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
42 |
|
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
43 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
44 |
* Writes annotation type field documentation in HTML format. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
45 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
46 |
* <p><b>This is NOT part of any supported API. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
47 |
* If you write code that depends on this, you do so at your own risk. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
48 |
* This code and its internal interfaces are subject to change or |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
49 |
* deletion without notice.</b> |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
50 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
51 |
* @author Bhavesh Patel |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
52 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
53 |
public class AnnotationTypeFieldWriterImpl extends AbstractMemberWriter |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
54 |
implements AnnotationTypeFieldWriter, MemberSummaryWriter { |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
55 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
56 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
57 |
* Construct a new AnnotationTypeFieldWriterImpl. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
58 |
* |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
59 |
* @param writer the writer that will write the output. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
60 |
* @param annotationType the AnnotationType that holds this member. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
61 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
62 |
public AnnotationTypeFieldWriterImpl(SubWriterHolderWriter writer, |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
63 |
TypeElement annotationType) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
64 |
super(writer, annotationType); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
65 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
66 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
67 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
68 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
69 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
70 |
public Content getMemberSummaryHeader(TypeElement typeElement, |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
71 |
Content memberSummaryTree) { |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
72 |
memberSummaryTree.add( |
53991 | 73 |
MarkerComments.START_OF_ANNOTATION_TYPE_FIELD_SUMMARY); |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
74 |
Content memberTree = new ContentBuilder(); |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
75 |
writer.addSummaryHeader(this, typeElement, memberTree); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
76 |
return memberTree; |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
77 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
78 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
79 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
80 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
81 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
82 |
public Content getMemberTreeHeader() { |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
83 |
return writer.getMemberTreeHeader(); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
84 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
85 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
86 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
87 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
88 |
*/ |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
89 |
public void addMemberTree(Content memberSummaryTree, Content memberTree) { |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
90 |
writer.addMemberTree(HtmlStyle.fieldSummary, memberSummaryTree, memberTree); |
29957
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
91 |
} |
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
92 |
|
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
93 |
/** |
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
94 |
* {@inheritDoc} |
7740f9657f56
8072945: Javadoc should generate valid and compliant HTML5 output
bpatel
parents:
25874
diff
changeset
|
95 |
*/ |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
96 |
public void addAnnotationFieldDetailsMarker(Content memberDetails) { |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
97 |
memberDetails.add(MarkerComments.START_OF_ANNOTATION_TYPE_FIELD_DETAILS); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
98 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
99 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
100 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
101 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
102 |
*/ |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
103 |
public Content getAnnotationDetailsTreeHeader(TypeElement typeElement) { |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
104 |
Content memberDetailsTree = new ContentBuilder(); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
105 |
if (!writer.printedAnnotationFieldHeading) { |
53991 | 106 |
Content heading = HtmlTree.HEADING(Headings.TypeDeclaration.DETAILS_HEADING, |
40303 | 107 |
contents.fieldDetailsLabel); |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
108 |
memberDetailsTree.add(links.createAnchor( |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
109 |
SectionName.ANNOTATION_TYPE_FIELD_DETAIL)); |
55339
0530705ca300
8223364: Bad placement of anchor relative to header
hannesw
parents:
55232
diff
changeset
|
110 |
memberDetailsTree.add(heading); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
111 |
writer.printedAnnotationFieldHeading = true; |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
112 |
} |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
113 |
return memberDetailsTree; |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
114 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
115 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
116 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
117 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
118 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
119 |
public Content getAnnotationDocTreeHeader(Element member, |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
120 |
Content annotationDetailsTree) { |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
121 |
Content annotationDocTree = new ContentBuilder(); |
53991 | 122 |
Content heading = new HtmlTree(Headings.TypeDeclaration.MEMBER_HEADING); |
55339
0530705ca300
8223364: Bad placement of anchor relative to header
hannesw
parents:
55232
diff
changeset
|
123 |
heading.add(links.createAnchor(name(member), new StringContent(name(member)))); |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
124 |
annotationDocTree.add(heading); |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
125 |
return HtmlTree.SECTION(HtmlStyle.detail, annotationDocTree); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
126 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
127 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
128 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
129 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
130 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
131 |
public Content getSignature(Element member) { |
55197
0ca8e495bbba
8214126: Method signatures not formatted correctly in browser
hannesw
parents:
54610
diff
changeset
|
132 |
return new MemberSignature(member) |
0ca8e495bbba
8214126: Method signatures not formatted correctly in browser
hannesw
parents:
54610
diff
changeset
|
133 |
.addType(getType(member)) |
0ca8e495bbba
8214126: Method signatures not formatted correctly in browser
hannesw
parents:
54610
diff
changeset
|
134 |
.toContent(); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
135 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
136 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
137 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
138 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
139 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
140 |
public void addDeprecated(Element member, Content annotationDocTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
141 |
addDeprecatedInfo(member, annotationDocTree); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
142 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
143 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
144 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
145 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
146 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
147 |
public void addComments(Element member, Content annotationDocTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
148 |
addComment(member, annotationDocTree); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
149 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
150 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
151 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
152 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
153 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
154 |
public void addTags(Element member, Content annotationDocTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
155 |
writer.addTagsInfo(member, annotationDocTree); |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
156 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
157 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
158 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
159 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
160 |
*/ |
54596
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
161 |
public Content getAnnotationDetails(Content annotationDetailsTreeHeader, Content annotationDetailsTree) { |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
162 |
Content annotationDetails = new ContentBuilder(); |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
163 |
annotationDetails.add(annotationDetailsTreeHeader); |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
164 |
annotationDetails.add(annotationDetailsTree); |
86c1da00dd6a
8219998: Eliminate inherently singleton lists
pmuthuswamy
parents:
54060
diff
changeset
|
165 |
return getMemberTree(HtmlTree.SECTION(HtmlStyle.fieldDetails, annotationDetails)); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
166 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
167 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
168 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
169 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
170 |
*/ |
55232 | 171 |
public Content getAnnotationDoc(Content annotationDocTree) { |
172 |
return getMemberTree(annotationDocTree); |
|
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
173 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
174 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
175 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
176 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
177 |
*/ |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
178 |
public void addSummaryLabel(Content memberTree) { |
53991 | 179 |
Content label = HtmlTree.HEADING(Headings.TypeDeclaration.SUMMARY_HEADING, |
40303 | 180 |
contents.fieldSummaryLabel); |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
181 |
memberTree.add(label); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
182 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
183 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
184 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
185 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
186 |
*/ |
47427 | 187 |
@Override |
188 |
public TableHeader getSummaryTableHeader(Element member) { |
|
189 |
return new TableHeader(contents.modifierAndTypeLabel, contents.fields, |
|
190 |
contents.descriptionLabel); |
|
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
191 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
192 |
|
47846 | 193 |
@Override |
194 |
protected Table createSummaryTable() { |
|
195 |
Content caption = contents.getContent("doclet.Fields"); |
|
196 |
||
197 |
TableHeader header = new TableHeader(contents.modifierAndTypeLabel, contents.fields, |
|
198 |
contents.descriptionLabel); |
|
199 |
||
53562 | 200 |
return new Table(HtmlStyle.memberSummary) |
47846 | 201 |
.setCaption(caption) |
202 |
.setHeader(header) |
|
203 |
.setRowScopeColumn(1) |
|
51260
b7a307084247
8203791: Remove "compatibility" features from Table.java
pmuthuswamy
parents:
49879
diff
changeset
|
204 |
.setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colSecond, HtmlStyle.colLast); |
47846 | 205 |
} |
206 |
||
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
207 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
208 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
209 |
*/ |
47850 | 210 |
@Override |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
211 |
public void addSummaryAnchor(TypeElement typeElement, Content memberTree) { |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
212 |
memberTree.add(links.createAnchor( |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20237
diff
changeset
|
213 |
SectionName.ANNOTATION_TYPE_FIELD_SUMMARY)); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
214 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
215 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
216 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
217 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
218 |
*/ |
47850 | 219 |
@Override |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
220 |
public void addInheritedSummaryAnchor(TypeElement typeElement, Content inheritedTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
221 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
222 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
223 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
224 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
225 |
*/ |
47850 | 226 |
@Override |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
227 |
public void addInheritedSummaryLabel(TypeElement typeElement, Content inheritedTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
228 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
229 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
230 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
231 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
232 |
*/ |
47850 | 233 |
@Override |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
234 |
protected void addSummaryLink(LinkInfoImpl.Kind context, TypeElement typeElement, Element member, |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
235 |
Content tdSummary) { |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
236 |
Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
237 |
writer.getDocLink(context, member, name(member), false)); |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
238 |
Content code = HtmlTree.CODE(memberLink); |
54060
53a95878619f
8220202: Simplify/standardize method naming for HtmlTree
jjg
parents:
53991
diff
changeset
|
239 |
tdSummary.add(code); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
240 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
241 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
242 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
243 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
244 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
245 |
protected void addInheritedSummaryLink(TypeElement typeElement, |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
246 |
Element member, Content linksTree) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
247 |
//Not applicable. |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
248 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
249 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
250 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
251 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
252 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
253 |
protected void addSummaryType(Element member, Content tdSummaryType) { |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
254 |
addModifierAndType(member, getType(member), tdSummaryType); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
255 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
256 |
|
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
257 |
/** |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
258 |
* {@inheritDoc} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
259 |
*/ |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
260 |
protected Content getDeprecatedLink(Element member) { |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
261 |
return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, |
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
262 |
member, utils.getFullyQualifiedName(member)); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
263 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
264 |
|
35426
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
265 |
private TypeMirror getType(Element member) { |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
266 |
if (utils.isConstructor(member)) |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
267 |
return null; |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
268 |
if (utils.isExecutableElement(member)) |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
269 |
return utils.getReturnType((ExecutableElement)member); |
374342e56a56
8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents:
34752
diff
changeset
|
270 |
return member.asType(); |
20237
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
271 |
} |
b6d89903c867
8015249: javadoc fails to document static final fields in annotation types
bpatel
parents:
diff
changeset
|
272 |
} |