author | ksrini |
Sun, 10 Apr 2016 08:41:00 -0700 | |
changeset 37009 | 476d8d615222 |
parent 34916 | 16043fc1d90b |
child 42831 | feff6f296019 |
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) 2005, 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.util; |
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 |
import com.sun.source.doctree.*; |
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 |
/** |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
31 |
* A simple visitor for tree nodes. |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
32 |
* |
25287 | 33 |
* @param <R> the return type of this visitor's methods. Use {@link |
34 |
* Void} for visitors that do not need to return results. |
|
35 |
* @param <P> the type of the additional parameter to this visitor's |
|
36 |
* methods. Use {@code Void} for visitors that do not need an |
|
37 |
* additional parameter. |
|
38 |
* |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
39 |
* @since 1.8 |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
40 |
*/ |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
41 |
public class SimpleDocTreeVisitor<R,P> implements DocTreeVisitor<R, P> { |
25287 | 42 |
/** |
43 |
* The default value, returned by the {@link #defaultAction default action}. |
|
44 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
45 |
protected final R DEFAULT_VALUE; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
46 |
|
25287 | 47 |
/** |
48 |
* Creates a visitor, with a DEFAULT_VALUE of {@code null}. |
|
49 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
50 |
protected SimpleDocTreeVisitor() { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
51 |
DEFAULT_VALUE = null; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
52 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
53 |
|
25287 | 54 |
/** |
55 |
* Creates a visitor, with a specified DEFAULT_VALUE. |
|
56 |
* @param defaultValue the default value to be returned by the default action. |
|
57 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
58 |
protected SimpleDocTreeVisitor(R defaultValue) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
59 |
DEFAULT_VALUE = defaultValue; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
60 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
61 |
|
25287 | 62 |
/** |
63 |
* The default action, used by all visit methods that are not overridden. |
|
64 |
* @param node the node being visited |
|
65 |
* @param p the parameter value passed to the visit method |
|
66 |
* @return the result value to be returned from the visit method |
|
67 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
68 |
protected R defaultAction(DocTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
69 |
return DEFAULT_VALUE; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
70 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
71 |
|
25287 | 72 |
/** |
73 |
* Invokes the appropriate visit method specific to the type of the node. |
|
74 |
* @param node the node on which to dispatch |
|
75 |
* @param p a parameter to be passed to the appropriate visit method |
|
76 |
* @return the value returns from the appropriate visit method |
|
77 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
78 |
public final R visit(DocTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
79 |
return (node == null) ? null : node.accept(this, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
80 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
81 |
|
25287 | 82 |
/** |
83 |
* Invokes the appropriate visit method on each of a sequence of nodes. |
|
84 |
* @param nodes the nodes on which to dispatch |
|
85 |
* @param p a parameter value to be passed to each appropriate visit method |
|
86 |
* @return the value return from the last of the visit methods, or null |
|
87 |
* if none were called. |
|
88 |
*/ |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
89 |
public final R visit(Iterable<? extends DocTree> nodes, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
90 |
R r = null; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
91 |
if (nodes != null) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
92 |
for (DocTree node : nodes) |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
93 |
r = visit(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
94 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
95 |
return r; |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
96 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
97 |
|
25287 | 98 |
/** |
99 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
100 |
* |
|
101 |
* @param node {@inheritDoc} |
|
102 |
* @param p {@inheritDoc} |
|
103 |
* @return the result of {@code defaultAction} |
|
104 |
*/ |
|
105 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
106 |
public R visitAttribute(AttributeTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
107 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
108 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
109 |
|
25287 | 110 |
/** |
111 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
112 |
* |
|
113 |
* @param node {@inheritDoc} |
|
114 |
* @param p {@inheritDoc} |
|
115 |
* @return the result of {@code defaultAction} |
|
116 |
*/ |
|
117 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
118 |
public R visitAuthor(AuthorTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
119 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
120 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
121 |
|
25287 | 122 |
/** |
123 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
124 |
* |
|
125 |
* @param node {@inheritDoc} |
|
126 |
* @param p {@inheritDoc} |
|
127 |
* @return the result of {@code defaultAction} |
|
128 |
*/ |
|
129 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
130 |
public R visitComment(CommentTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
131 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
132 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
133 |
|
25287 | 134 |
/** |
135 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
136 |
* |
|
137 |
* @param node {@inheritDoc} |
|
138 |
* @param p {@inheritDoc} |
|
139 |
* @return the result of {@code defaultAction} |
|
140 |
*/ |
|
141 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
142 |
public R visitDeprecated(DeprecatedTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
143 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
144 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
145 |
|
25287 | 146 |
/** |
147 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
148 |
* |
|
149 |
* @param node {@inheritDoc} |
|
150 |
* @param p {@inheritDoc} |
|
151 |
* @return the result of {@code defaultAction} |
|
152 |
*/ |
|
153 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
154 |
public R visitDocComment(DocCommentTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
155 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
156 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
157 |
|
25287 | 158 |
/** |
159 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
160 |
* |
|
161 |
* @param node {@inheritDoc} |
|
162 |
* @param p {@inheritDoc} |
|
163 |
* @return the result of {@code defaultAction} |
|
164 |
*/ |
|
165 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
166 |
public R visitDocRoot(DocRootTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
167 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
168 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
169 |
|
25287 | 170 |
/** |
171 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
172 |
* |
|
173 |
* @param node {@inheritDoc} |
|
174 |
* @param p {@inheritDoc} |
|
175 |
* @return the result of {@code defaultAction} |
|
176 |
*/ |
|
177 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
178 |
public R visitEndElement(EndElementTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
179 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
180 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
181 |
|
25287 | 182 |
/** |
183 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
184 |
* |
|
185 |
* @param node {@inheritDoc} |
|
186 |
* @param p {@inheritDoc} |
|
187 |
* @return the result of {@code defaultAction} |
|
188 |
*/ |
|
189 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
190 |
public R visitEntity(EntityTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
191 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
192 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
193 |
|
25287 | 194 |
/** |
195 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
196 |
* |
|
197 |
* @param node {@inheritDoc} |
|
198 |
* @param p {@inheritDoc} |
|
199 |
* @return the result of {@code defaultAction} |
|
200 |
*/ |
|
201 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
202 |
public R visitErroneous(ErroneousTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
203 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
204 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
205 |
|
25287 | 206 |
/** |
207 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
208 |
* |
|
209 |
* @param node {@inheritDoc} |
|
210 |
* @param p {@inheritDoc} |
|
37009
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
211 |
* @return the result of {@code defaultAction} |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
212 |
*/ |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
213 |
public R visitHidden(HiddenTree node, P p) { |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
214 |
return defaultAction(node, p); |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
215 |
} |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
216 |
|
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
217 |
/** |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
218 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
219 |
* |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
220 |
* @param node {@inheritDoc} |
476d8d615222
8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents:
34916
diff
changeset
|
221 |
* @param p {@inheritDoc} |
25287 | 222 |
* @return the result of {@code defaultAction} |
223 |
*/ |
|
224 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
225 |
public R visitIdentifier(IdentifierTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
226 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
227 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
228 |
|
25287 | 229 |
/** |
230 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
231 |
* |
|
232 |
* @param node {@inheritDoc} |
|
233 |
* @param p {@inheritDoc} |
|
234 |
* @return the result of {@code defaultAction} |
|
235 |
*/ |
|
236 |
@Override |
|
34567
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
237 |
public R visitIndex(IndexTree node, P p) { |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
238 |
return defaultAction(node, p); |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
239 |
} |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
240 |
|
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
241 |
/** |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
242 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
243 |
* |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
244 |
* @param node {@inheritDoc} |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
245 |
* @param p {@inheritDoc} |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
246 |
* @return the result of {@code defaultAction} |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
247 |
*/ |
c74f68484156
8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents:
25874
diff
changeset
|
248 |
@Override |
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
249 |
public R visitInheritDoc(InheritDocTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
250 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
251 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
252 |
|
25287 | 253 |
/** |
254 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
255 |
* |
|
256 |
* @param node {@inheritDoc} |
|
257 |
* @param p {@inheritDoc} |
|
258 |
* @return the result of {@code defaultAction} |
|
259 |
*/ |
|
260 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
261 |
public R visitLink(LinkTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
262 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
263 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
264 |
|
25287 | 265 |
/** |
266 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
267 |
* |
|
268 |
* @param node {@inheritDoc} |
|
269 |
* @param p {@inheritDoc} |
|
270 |
* @return the result of {@code defaultAction} |
|
271 |
*/ |
|
272 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
273 |
public R visitLiteral(LiteralTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
274 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
275 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
276 |
|
25287 | 277 |
/** |
278 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
279 |
* |
|
280 |
* @param node {@inheritDoc} |
|
281 |
* @param p {@inheritDoc} |
|
282 |
* @return the result of {@code defaultAction} |
|
283 |
*/ |
|
284 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
285 |
public R visitParam(ParamTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
286 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
287 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
288 |
|
25287 | 289 |
/** |
290 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
291 |
* |
|
292 |
* @param node {@inheritDoc} |
|
293 |
* @param p {@inheritDoc} |
|
294 |
* @return the result of {@code defaultAction} |
|
295 |
*/ |
|
296 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
297 |
public R visitReference(ReferenceTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
298 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
299 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
300 |
|
25287 | 301 |
/** |
302 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
303 |
* |
|
304 |
* @param node {@inheritDoc} |
|
305 |
* @param p {@inheritDoc} |
|
306 |
* @return the result of {@code defaultAction} |
|
307 |
*/ |
|
308 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
309 |
public R visitReturn(ReturnTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
310 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
311 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
312 |
|
25287 | 313 |
/** |
314 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
315 |
* |
|
316 |
* @param node {@inheritDoc} |
|
317 |
* @param p {@inheritDoc} |
|
318 |
* @return the result of {@code defaultAction} |
|
319 |
*/ |
|
320 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
321 |
public R visitSee(SeeTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
322 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
323 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
324 |
|
25287 | 325 |
/** |
326 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
327 |
* |
|
328 |
* @param node {@inheritDoc} |
|
329 |
* @param p {@inheritDoc} |
|
330 |
* @return the result of {@code defaultAction} |
|
331 |
*/ |
|
332 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
333 |
public R visitSerial(SerialTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
334 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
335 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
336 |
|
25287 | 337 |
/** |
338 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
339 |
* |
|
340 |
* @param node {@inheritDoc} |
|
341 |
* @param p {@inheritDoc} |
|
342 |
* @return the result of {@code defaultAction} |
|
343 |
*/ |
|
344 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
345 |
public R visitSerialData(SerialDataTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
346 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
347 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
348 |
|
25287 | 349 |
/** |
350 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
351 |
* |
|
352 |
* @param node {@inheritDoc} |
|
353 |
* @param p {@inheritDoc} |
|
354 |
* @return the result of {@code defaultAction} |
|
355 |
*/ |
|
356 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
357 |
public R visitSerialField(SerialFieldTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
358 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
359 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
360 |
|
25287 | 361 |
/** |
362 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
363 |
* |
|
364 |
* @param node {@inheritDoc} |
|
365 |
* @param p {@inheritDoc} |
|
366 |
* @return the result of {@code defaultAction} |
|
367 |
*/ |
|
368 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
369 |
public R visitSince(SinceTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
370 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
371 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
372 |
|
25287 | 373 |
/** |
374 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
375 |
* |
|
376 |
* @param node {@inheritDoc} |
|
377 |
* @param p {@inheritDoc} |
|
378 |
* @return the result of {@code defaultAction} |
|
379 |
*/ |
|
380 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
381 |
public R visitStartElement(StartElementTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
382 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
383 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
384 |
|
25287 | 385 |
/** |
386 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
387 |
* |
|
388 |
* @param node {@inheritDoc} |
|
389 |
* @param p {@inheritDoc} |
|
390 |
* @return the result of {@code defaultAction} |
|
391 |
*/ |
|
392 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
393 |
public R visitText(TextTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
394 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
395 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
396 |
|
25287 | 397 |
/** |
398 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
399 |
* |
|
400 |
* @param node {@inheritDoc} |
|
401 |
* @param p {@inheritDoc} |
|
402 |
* @return the result of {@code defaultAction} |
|
403 |
*/ |
|
404 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
405 |
public R visitThrows(ThrowsTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
406 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
407 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
408 |
|
25287 | 409 |
/** |
410 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
411 |
* |
|
412 |
* @param node {@inheritDoc} |
|
413 |
* @param p {@inheritDoc} |
|
414 |
* @return the result of {@code defaultAction} |
|
415 |
*/ |
|
416 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
417 |
public R visitUnknownBlockTag(UnknownBlockTagTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
418 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
419 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
420 |
|
25287 | 421 |
/** |
422 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
423 |
* |
|
424 |
* @param node {@inheritDoc} |
|
425 |
* @param p {@inheritDoc} |
|
426 |
* @return the result of {@code defaultAction} |
|
427 |
*/ |
|
428 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
429 |
public R visitUnknownInlineTag(UnknownInlineTagTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
430 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
431 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
432 |
|
25287 | 433 |
/** |
434 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
435 |
* |
|
436 |
* @param node {@inheritDoc} |
|
437 |
* @param p {@inheritDoc} |
|
438 |
* @return the result of {@code defaultAction} |
|
439 |
*/ |
|
440 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
441 |
public R visitValue(ValueTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
442 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
443 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
444 |
|
25287 | 445 |
/** |
446 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
447 |
* |
|
448 |
* @param node {@inheritDoc} |
|
449 |
* @param p {@inheritDoc} |
|
450 |
* @return the result of {@code defaultAction} |
|
451 |
*/ |
|
452 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
453 |
public R visitVersion(VersionTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
454 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
455 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
456 |
|
25287 | 457 |
/** |
458 |
* {@inheritDoc} This implementation calls {@code defaultAction}. |
|
459 |
* |
|
460 |
* @param node {@inheritDoc} |
|
461 |
* @param p {@inheritDoc} |
|
462 |
* @return the result of {@code defaultAction} |
|
463 |
*/ |
|
464 |
@Override |
|
14541
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
465 |
public R visitOther(DocTree node, P p) { |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
466 |
return defaultAction(node, p); |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
467 |
} |
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
468 |
|
36f9d11fc9aa
7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff
changeset
|
469 |
} |