author | rkennke |
Fri, 12 Oct 2018 16:25:24 +0200 | |
changeset 52107 | 0c1e44da019c |
parent 48060 | 532cdc178e42 |
child 52487 | 5d1d07b72f15 |
permissions | -rw-r--r-- |
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
1 |
/* |
44878 | 2 |
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
4 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
10 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
15 |
* accompanied this code). |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
16 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
20 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
23 |
* questions. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
24 |
*/ |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
25 |
|
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
26 |
package com.sun.source.doctree; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
27 |
|
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
28 |
|
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
29 |
/** |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
30 |
* A visitor of trees, in the style of the visitor design pattern. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
31 |
* Classes implementing this interface are used to operate |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
32 |
* on a tree when the kind of tree is unknown at compile time. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
33 |
* When a visitor is passed to an tree's {@link DocTree#accept |
44878 | 34 |
* accept} method, the <code>visit<i>Xyz</i></code> method most applicable |
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
35 |
* to that tree is invoked. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
36 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
37 |
* <p> Classes implementing this interface may or may not throw a |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
38 |
* {@code NullPointerException} if the additional parameter {@code p} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
39 |
* is {@code null}; see documentation of the implementing class for |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
40 |
* details. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
41 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
42 |
* <p> <b>WARNING:</b> It is possible that methods will be added to |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
43 |
* this interface to accommodate new, currently unknown, doc comment |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
44 |
* structures added to future versions of the Java™ programming |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
45 |
* language. Therefore, visitor classes directly implementing this |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
46 |
* interface may be source incompatible with future versions of the |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
47 |
* platform. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
48 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
49 |
* @param <R> the return type of this visitor's methods. Use {@link |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
50 |
* Void} for visitors that do not need to return results. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
51 |
* @param <P> the type of the additional parameter to this visitor's |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
52 |
* methods. Use {@code Void} for visitors that do not need an |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
53 |
* additional parameter. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
54 |
* |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
55 |
* @since 1.8 |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
56 |
*/ |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
57 |
public interface DocTreeVisitor<R,P> { |
25287 | 58 |
|
59 |
/** |
|
60 |
* Visits an AttributeTree node. |
|
61 |
* @param node the node being visited |
|
62 |
* @param p a parameter value |
|
63 |
* @return a result value |
|
64 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
65 |
R visitAttribute(AttributeTree node, P p); |
25287 | 66 |
|
67 |
/** |
|
68 |
* Visits an AuthorTree node. |
|
69 |
* @param node the node being visited |
|
70 |
* @param p a parameter value |
|
71 |
* @return a result value |
|
72 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
73 |
R visitAuthor(AuthorTree node, P p); |
25287 | 74 |
|
75 |
/** |
|
76 |
* Visits a CommentTree node. |
|
77 |
* @param node the node being visited |
|
78 |
* @param p a parameter value |
|
79 |
* @return a result value |
|
80 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
81 |
R visitComment(CommentTree node, P p); |
25287 | 82 |
|
83 |
/** |
|
84 |
* Visits a DeprecatedTree node. |
|
85 |
* @param node the node being visited |
|
86 |
* @param p a parameter value |
|
87 |
* @return a result value |
|
88 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
89 |
R visitDeprecated(DeprecatedTree node, P p); |
25287 | 90 |
|
91 |
/** |
|
92 |
* Visits a DocCommentTree node. |
|
93 |
* @param node the node being visited |
|
94 |
* @param p a parameter value |
|
95 |
* @return a result value |
|
96 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
97 |
R visitDocComment(DocCommentTree node, P p); |
25287 | 98 |
|
99 |
/** |
|
100 |
* Visits a DocRootTree node. |
|
101 |
* @param node the node being visited |
|
102 |
* @param p a parameter value |
|
103 |
* @return a result value |
|
104 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
105 |
R visitDocRoot(DocRootTree node, P p); |
25287 | 106 |
|
107 |
/** |
|
48028
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
108 |
* Visits a DocTypeTree node. |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
109 |
* |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
110 |
* @implSpec Visits a {@code DocTypeTree} node |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
111 |
* by calling {@code visitOther(node, p)}. |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
112 |
* |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
113 |
* @param node the node being visited |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
114 |
* @param p a parameter value |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
115 |
* @return a result value |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
116 |
* @since 10 |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
117 |
*/ |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
118 |
default R visitDocType(DocTypeTree node, P p) { |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
119 |
return visitOther(node, p); |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
120 |
} |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
121 |
|
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
122 |
/** |
25287 | 123 |
* Visits an EndElementTree node. |
124 |
* @param node the node being visited |
|
125 |
* @param p a parameter value |
|
126 |
* @return a result value |
|
127 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
128 |
R visitEndElement(EndElementTree node, P p); |
25287 | 129 |
|
130 |
/** |
|
131 |
* Visits an EntityTree node. |
|
132 |
* @param node the node being visited |
|
133 |
* @param p a parameter value |
|
134 |
* @return a result value |
|
135 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
136 |
R visitEntity(EntityTree node, P p); |
25287 | 137 |
|
138 |
/** |
|
139 |
* Visits an ErroneousTree node. |
|
140 |
* @param node the node being visited |
|
141 |
* @param p a parameter value |
|
142 |
* @return a result value |
|
143 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
144 |
R visitErroneous(ErroneousTree node, P p); |
25287 | 145 |
|
146 |
/** |
|
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
147 |
* Visits a HiddenTree node. |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
148 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
149 |
* @implSpec Visits a {@code HiddenTree} node |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
150 |
* by calling {@code visitOther(node, p)}. |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
151 |
* |
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
152 |
* @param node the node being visited |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
153 |
* @param p a parameter value |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
154 |
* @return a result value |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
155 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
156 |
* @since 9 |
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
157 |
*/ |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
158 |
default R visitHidden(HiddenTree node, P p) { |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
159 |
return visitOther(node, p); |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
160 |
} |
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
161 |
|
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
162 |
/** |
25287 | 163 |
* Visits an IdentifierTree node. |
164 |
* @param node the node being visited |
|
165 |
* @param p a parameter value |
|
166 |
* @return a result value |
|
167 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
168 |
R visitIdentifier(IdentifierTree node, P p); |
25287 | 169 |
|
170 |
/** |
|
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
171 |
* Visits an IndexTree node. |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
172 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
173 |
* @implSpec Visits an {@code IndexTree} node |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
174 |
* by calling {@code visitOther(node, p)}. |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
175 |
* |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
176 |
* @param node the node being visited |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
177 |
* @param p a parameter value |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
178 |
* @return a result value |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
179 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
180 |
* @since 9 |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
181 |
*/ |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
182 |
default R visitIndex(IndexTree node, P p) { |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
183 |
return visitOther(node, p); |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
184 |
} |
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
185 |
|
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
186 |
/** |
25287 | 187 |
* Visits an InheritDocTree node. |
188 |
* @param node the node being visited |
|
189 |
* @param p a parameter value |
|
190 |
* @return a result value |
|
191 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
192 |
R visitInheritDoc(InheritDocTree node, P p); |
25287 | 193 |
|
194 |
/** |
|
195 |
* Visits a LinkTree node. |
|
196 |
* @param node the node being visited |
|
197 |
* @param p a parameter value |
|
198 |
* @return a result value |
|
199 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
200 |
R visitLink(LinkTree node, P p); |
25287 | 201 |
|
202 |
/** |
|
203 |
* Visits an LiteralTree node. |
|
204 |
* @param node the node being visited |
|
205 |
* @param p a parameter value |
|
206 |
* @return a result value |
|
207 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
208 |
R visitLiteral(LiteralTree node, P p); |
25287 | 209 |
|
210 |
/** |
|
211 |
* Visits a ParamTree node. |
|
212 |
* @param node the node being visited |
|
213 |
* @param p a parameter value |
|
214 |
* @return a result value |
|
215 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
216 |
R visitParam(ParamTree node, P p); |
25287 | 217 |
|
218 |
/** |
|
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
219 |
* Visits a ProvidesTree node. |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
220 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
221 |
* @implSpec Visits a {@code ProvidesTree} node |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
222 |
* by calling {@code visitOther(node, p)}. |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
223 |
* |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
224 |
* @param node the node being visited |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
225 |
* @param p a parameter value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
226 |
* @return a result value |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
227 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
228 |
* @since 9 |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
229 |
*/ |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
230 |
default R visitProvides(ProvidesTree node, P p) { |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
231 |
return visitOther(node, p); |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
232 |
} |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
233 |
|
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
234 |
/** |
25287 | 235 |
* Visits a ReferenceTree node. |
236 |
* @param node the node being visited |
|
237 |
* @param p a parameter value |
|
238 |
* @return a result value |
|
239 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
240 |
R visitReference(ReferenceTree node, P p); |
25287 | 241 |
|
242 |
/** |
|
243 |
* Visits a ReturnTree node. |
|
244 |
* @param node the node being visited |
|
245 |
* @param p a parameter value |
|
246 |
* @return a result value |
|
247 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
248 |
R visitReturn(ReturnTree node, P p); |
25287 | 249 |
|
250 |
/** |
|
251 |
* Visits a SeeTree node. |
|
252 |
* @param node the node being visited |
|
253 |
* @param p a parameter value |
|
254 |
* @return a result value |
|
255 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
256 |
R visitSee(SeeTree node, P p); |
25287 | 257 |
|
258 |
/** |
|
259 |
* Visits a SerialTree node. |
|
260 |
* @param node the node being visited |
|
261 |
* @param p a parameter value |
|
262 |
* @return a result value |
|
263 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
264 |
R visitSerial(SerialTree node, P p); |
25287 | 265 |
|
266 |
/** |
|
267 |
* Visits a SerialDataTree node. |
|
268 |
* @param node the node being visited |
|
269 |
* @param p a parameter value |
|
270 |
* @return a result value |
|
271 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
272 |
R visitSerialData(SerialDataTree node, P p); |
25287 | 273 |
|
274 |
/** |
|
275 |
* Visits a SerialFieldTree node. |
|
276 |
* @param node the node being visited |
|
277 |
* @param p a parameter value |
|
278 |
* @return a result value |
|
279 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
280 |
R visitSerialField(SerialFieldTree node, P p); |
25287 | 281 |
|
282 |
/** |
|
283 |
* Visits a SinceTree node. |
|
284 |
* @param node the node being visited |
|
285 |
* @param p a parameter value |
|
286 |
* @return a result value |
|
287 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
288 |
R visitSince(SinceTree node, P p); |
25287 | 289 |
|
290 |
/** |
|
291 |
* Visits a StartElementTree node. |
|
292 |
* @param node the node being visited |
|
293 |
* @param p a parameter value |
|
294 |
* @return a result value |
|
295 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
296 |
R visitStartElement(StartElementTree node, P p); |
25287 | 297 |
|
298 |
/** |
|
46184
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
299 |
* Visits a SummaryTree node. |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
300 |
* |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
301 |
* @implSpec Visits a {@code SummaryTree} node |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
302 |
* by calling {@code visitOther(node, p)}. |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
303 |
* |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
304 |
* @param node the node being visited |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
305 |
* @param p a parameter value |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
306 |
* @return a result value |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
307 |
* @since 10 |
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
308 |
*/ |
48028
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
309 |
default R visitSummary(SummaryTree node, P p) { |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
310 |
return visitOther(node, p); |
9e022f580a9d
8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents:
47216
diff
changeset
|
311 |
} |
46184
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
312 |
|
f1325703ea85
8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents:
44878
diff
changeset
|
313 |
/** |
25287 | 314 |
* Visits a TextTree node. |
315 |
* @param node the node being visited |
|
316 |
* @param p a parameter value |
|
317 |
* @return a result value |
|
318 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
319 |
R visitText(TextTree node, P p); |
25287 | 320 |
|
321 |
/** |
|
322 |
* Visits a ThrowsTree node. |
|
323 |
* @param node the node being visited |
|
324 |
* @param p a parameter value |
|
325 |
* @return a result value |
|
326 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
327 |
R visitThrows(ThrowsTree node, P p); |
25287 | 328 |
|
329 |
/** |
|
330 |
* Visits an UnknownBlockTagTree node. |
|
331 |
* @param node the node being visited |
|
332 |
* @param p a parameter value |
|
333 |
* @return a result value |
|
334 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
335 |
R visitUnknownBlockTag(UnknownBlockTagTree node, P p); |
25287 | 336 |
|
337 |
/** |
|
338 |
* Visits an UnknownInlineTagTree node. |
|
339 |
* @param node the node being visited |
|
340 |
* @param p a parameter value |
|
341 |
* @return a result value |
|
342 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
343 |
R visitUnknownInlineTag(UnknownInlineTagTree node, P p); |
25287 | 344 |
|
345 |
/** |
|
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
346 |
* Visits a UsesTree node. |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
347 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
348 |
* @implSpec Visits a {@code UsesTree} node |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
349 |
* by calling {@code visitOther(node, p)}. |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
350 |
* |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
351 |
* @param node the node being visited |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
352 |
* @param p a parameter value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
353 |
* @return a result value |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
354 |
* |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
355 |
* @since 9 |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
356 |
*/ |
48060
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
357 |
default R visitUses(UsesTree node, P p) { |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
358 |
return visitOther(node, p); |
532cdc178e42
8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents:
48028
diff
changeset
|
359 |
} |
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
360 |
|
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
361 |
/** |
25287 | 362 |
* Visits a ValueTree node. |
363 |
* @param node the node being visited |
|
364 |
* @param p a parameter value |
|
365 |
* @return a result value |
|
366 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
367 |
R visitValue(ValueTree node, P p); |
25287 | 368 |
|
369 |
/** |
|
370 |
* Visits a VersionTreeTree node. |
|
371 |
* @param node the node being visited |
|
372 |
* @param p a parameter value |
|
373 |
* @return a result value |
|
374 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
375 |
R visitVersion(VersionTree node, P p); |
25287 | 376 |
|
377 |
/** |
|
378 |
* Visits an unknown type of DocTree node. |
|
379 |
* This can occur if the set of tags evolves and new kinds |
|
380 |
* of nodes are added to the {@code DocTree} hierarchy. |
|
381 |
* @param node the node being visited |
|
382 |
* @param p a parameter value |
|
383 |
* @return a result value |
|
384 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
385 |
R visitOther(DocTree node, P p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
386 |
} |