author | bpb |
Mon, 13 Feb 2017 15:24:42 -0800 | |
changeset 45979 | 51b7312baba3 |
parent 42831 | feff6f296019 |
child 44878 | 9dd9cf7919ff |
permissions | -rw-r--r-- |
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
1 |
/* |
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
2 |
* Copyright (c) 2011, 2016, 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 |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
34 |
* accept} method, the <tt>visit<i>XYZ</i></tt> method most applicable |
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 |
/** |
|
108 |
* Visits an EndElementTree node. |
|
109 |
* @param node the node being visited |
|
110 |
* @param p a parameter value |
|
111 |
* @return a result value |
|
112 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
113 |
R visitEndElement(EndElementTree node, P p); |
25287 | 114 |
|
115 |
/** |
|
116 |
* Visits an EntityTree node. |
|
117 |
* @param node the node being visited |
|
118 |
* @param p a parameter value |
|
119 |
* @return a result value |
|
120 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
121 |
R visitEntity(EntityTree node, P p); |
25287 | 122 |
|
123 |
/** |
|
124 |
* Visits an ErroneousTree node. |
|
125 |
* @param node the node being visited |
|
126 |
* @param p a parameter value |
|
127 |
* @return a result value |
|
128 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
129 |
R visitErroneous(ErroneousTree node, P p); |
25287 | 130 |
|
131 |
/** |
|
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
132 |
* Visits a HiddenTree node. |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
133 |
* @param node the node being visited |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
134 |
* @param p a parameter value |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
135 |
* @return a result value |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
136 |
*/ |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
137 |
R visitHidden(HiddenTree node, P p); |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
138 |
|
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
139 |
/** |
25287 | 140 |
* Visits an IdentifierTree node. |
141 |
* @param node the node being visited |
|
142 |
* @param p a parameter value |
|
143 |
* @return a result value |
|
144 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
145 |
R visitIdentifier(IdentifierTree node, P p); |
25287 | 146 |
|
147 |
/** |
|
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
148 |
* Visits an IndexTree node. |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
149 |
* @param node the node being visited |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
150 |
* @param p a parameter value |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
151 |
* @return a result value |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
152 |
*/ |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
153 |
R visitIndex(IndexTree node, P p); |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
154 |
|
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
155 |
/** |
25287 | 156 |
* Visits an InheritDocTree node. |
157 |
* @param node the node being visited |
|
158 |
* @param p a parameter value |
|
159 |
* @return a result value |
|
160 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
161 |
R visitInheritDoc(InheritDocTree node, P p); |
25287 | 162 |
|
163 |
/** |
|
164 |
* Visits a LinkTree node. |
|
165 |
* @param node the node being visited |
|
166 |
* @param p a parameter value |
|
167 |
* @return a result value |
|
168 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
169 |
R visitLink(LinkTree node, P p); |
25287 | 170 |
|
171 |
/** |
|
172 |
* Visits an LiteralTree node. |
|
173 |
* @param node the node being visited |
|
174 |
* @param p a parameter value |
|
175 |
* @return a result value |
|
176 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
177 |
R visitLiteral(LiteralTree node, P p); |
25287 | 178 |
|
179 |
/** |
|
180 |
* Visits a ParamTree node. |
|
181 |
* @param node the node being visited |
|
182 |
* @param p a parameter value |
|
183 |
* @return a result value |
|
184 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
185 |
R visitParam(ParamTree node, P p); |
25287 | 186 |
|
187 |
/** |
|
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
188 |
* Visits a ProvidesTree node. |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
189 |
* @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
|
190 |
* @param p a parameter value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
191 |
* @return a result value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
192 |
*/ |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
193 |
R visitProvides(ProvidesTree node, P p); |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
194 |
|
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
195 |
/** |
25287 | 196 |
* Visits a ReferenceTree node. |
197 |
* @param node the node being visited |
|
198 |
* @param p a parameter value |
|
199 |
* @return a result value |
|
200 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
201 |
R visitReference(ReferenceTree node, P p); |
25287 | 202 |
|
203 |
/** |
|
204 |
* Visits a ReturnTree node. |
|
205 |
* @param node the node being visited |
|
206 |
* @param p a parameter value |
|
207 |
* @return a result value |
|
208 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
209 |
R visitReturn(ReturnTree node, P p); |
25287 | 210 |
|
211 |
/** |
|
212 |
* Visits a SeeTree node. |
|
213 |
* @param node the node being visited |
|
214 |
* @param p a parameter value |
|
215 |
* @return a result value |
|
216 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
217 |
R visitSee(SeeTree node, P p); |
25287 | 218 |
|
219 |
/** |
|
220 |
* Visits a SerialTree node. |
|
221 |
* @param node the node being visited |
|
222 |
* @param p a parameter value |
|
223 |
* @return a result value |
|
224 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
225 |
R visitSerial(SerialTree node, P p); |
25287 | 226 |
|
227 |
/** |
|
228 |
* Visits a SerialDataTree node. |
|
229 |
* @param node the node being visited |
|
230 |
* @param p a parameter value |
|
231 |
* @return a result value |
|
232 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
233 |
R visitSerialData(SerialDataTree node, P p); |
25287 | 234 |
|
235 |
/** |
|
236 |
* Visits a SerialFieldTree node. |
|
237 |
* @param node the node being visited |
|
238 |
* @param p a parameter value |
|
239 |
* @return a result value |
|
240 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
241 |
R visitSerialField(SerialFieldTree node, P p); |
25287 | 242 |
|
243 |
/** |
|
244 |
* Visits a SinceTree node. |
|
245 |
* @param node the node being visited |
|
246 |
* @param p a parameter value |
|
247 |
* @return a result value |
|
248 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
249 |
R visitSince(SinceTree node, P p); |
25287 | 250 |
|
251 |
/** |
|
252 |
* Visits a StartElementTree node. |
|
253 |
* @param node the node being visited |
|
254 |
* @param p a parameter value |
|
255 |
* @return a result value |
|
256 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
257 |
R visitStartElement(StartElementTree node, P p); |
25287 | 258 |
|
259 |
/** |
|
260 |
* Visits a TextTree node. |
|
261 |
* @param node the node being visited |
|
262 |
* @param p a parameter value |
|
263 |
* @return a result value |
|
264 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
265 |
R visitText(TextTree node, P p); |
25287 | 266 |
|
267 |
/** |
|
268 |
* Visits a ThrowsTree node. |
|
269 |
* @param node the node being visited |
|
270 |
* @param p a parameter value |
|
271 |
* @return a result value |
|
272 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
273 |
R visitThrows(ThrowsTree node, P p); |
25287 | 274 |
|
275 |
/** |
|
276 |
* Visits an UnknownBlockTagTree node. |
|
277 |
* @param node the node being visited |
|
278 |
* @param p a parameter value |
|
279 |
* @return a result value |
|
280 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
281 |
R visitUnknownBlockTag(UnknownBlockTagTree node, P p); |
25287 | 282 |
|
283 |
/** |
|
284 |
* Visits an UnknownInlineTagTree node. |
|
285 |
* @param node the node being visited |
|
286 |
* @param p a parameter value |
|
287 |
* @return a result value |
|
288 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
289 |
R visitUnknownInlineTag(UnknownInlineTagTree node, P p); |
25287 | 290 |
|
291 |
/** |
|
42831
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
292 |
* Visits a UsesTree node. |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
293 |
* @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
|
294 |
* @param p a parameter value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
295 |
* @return a result value |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
296 |
*/ |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
297 |
R visitUses(UsesTree node, P p); |
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
298 |
|
feff6f296019
8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents:
37009
diff
changeset
|
299 |
/** |
25287 | 300 |
* Visits a ValueTree node. |
301 |
* @param node the node being visited |
|
302 |
* @param p a parameter value |
|
303 |
* @return a result value |
|
304 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
305 |
R visitValue(ValueTree node, P p); |
25287 | 306 |
|
307 |
/** |
|
308 |
* Visits a VersionTreeTree node. |
|
309 |
* @param node the node being visited |
|
310 |
* @param p a parameter value |
|
311 |
* @return a result value |
|
312 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
313 |
R visitVersion(VersionTree node, P p); |
25287 | 314 |
|
315 |
/** |
|
316 |
* Visits an unknown type of DocTree node. |
|
317 |
* This can occur if the set of tags evolves and new kinds |
|
318 |
* of nodes are added to the {@code DocTree} hierarchy. |
|
319 |
* @param node the node being visited |
|
320 |
* @param p a parameter value |
|
321 |
* @return a result value |
|
322 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
323 |
R visitOther(DocTree node, P p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
324 |
} |