|
10 | 10 | *******************************************************************************/ |
11 | 11 | package net.sf.j2s.core.astvisitors; |
12 | 12 |
|
13 | | -import org.eclipse.jdt.core.dom.ASTVisitor; |
14 | | -import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration; |
15 | | -import org.eclipse.jdt.core.dom.AnnotationTypeMemberDeclaration; |
16 | | -import org.eclipse.jdt.core.dom.BlockComment; |
17 | | -import org.eclipse.jdt.core.dom.CompilationUnit; |
18 | | -import org.eclipse.jdt.core.dom.Javadoc; |
19 | | -import org.eclipse.jdt.core.dom.LineComment; |
20 | | -import org.eclipse.jdt.core.dom.MarkerAnnotation; |
21 | | -import org.eclipse.jdt.core.dom.MemberRef; |
22 | | -import org.eclipse.jdt.core.dom.MemberValuePair; |
23 | | -import org.eclipse.jdt.core.dom.MethodRef; |
24 | | -import org.eclipse.jdt.core.dom.MethodRefParameter; |
25 | | -import org.eclipse.jdt.core.dom.NormalAnnotation; |
26 | | -import org.eclipse.jdt.core.dom.ParameterizedType; |
27 | | -import org.eclipse.jdt.core.dom.SingleMemberAnnotation; |
28 | | -import org.eclipse.jdt.core.dom.TagElement; |
29 | | -import org.eclipse.jdt.core.dom.TextElement; |
30 | | -import org.eclipse.jdt.core.dom.TypeParameter; |
31 | | -import org.eclipse.jdt.core.dom.WildcardType; |
| 13 | +import org.eclipse.jdt.core.dom.*; |
32 | 14 |
|
33 | 15 | /** |
34 | | - * This empty visitor just give a way for debugging. |
| 16 | + * This empty visitor just gives a way for debugging. That is to say, in |
| 17 | + * Eclipse debugging mode, if there are needs to compile these following |
| 18 | + * nodes, you can always modify these methods without restarting Eclipse. |
35 | 19 | * |
36 | | - * @author josson smith |
37 | | - * |
| 20 | + * @author zhou renjian |
38 | 21 | */ |
39 | | -public class ASTEmptyParser extends ASTVisitor { |
40 | | - |
41 | | - public ASTEmptyParser() { |
42 | | - super(); |
43 | | - } |
44 | | - |
45 | | - public ASTEmptyParser(boolean visitDocTags) { |
46 | | - super(visitDocTags); |
47 | | - } |
| 22 | +public class ASTEmptyParser extends ASTJ2SMapVisitor { |
48 | 23 |
|
49 | 24 | public void endVisit(AnnotationTypeDeclaration node) { |
50 | 25 | super.endVisit(node); |
@@ -151,6 +126,14 @@ public boolean visit(ParameterizedType node) { |
151 | 126 | return false; |
152 | 127 | } |
153 | 128 |
|
| 129 | + public void endVisit(PrimitiveType node) { |
| 130 | + super.endVisit(node); |
| 131 | + } |
| 132 | + |
| 133 | + public boolean visit(PrimitiveType node) { |
| 134 | + return super.visit(node); |
| 135 | + } |
| 136 | + |
154 | 137 | public void endVisit(SingleMemberAnnotation node) { |
155 | 138 | super.endVisit(node); |
156 | 139 | } |
@@ -191,4 +174,244 @@ public boolean visit(WildcardType node) { |
191 | 174 | return false; |
192 | 175 | } |
193 | 176 |
|
| 177 | + public void endVisit(ArrayAccess node) { |
| 178 | + super.endVisit(node); |
| 179 | + } |
| 180 | + |
| 181 | + public void endVisit(ArrayCreation node) { |
| 182 | + super.endVisit(node); |
| 183 | + } |
| 184 | + |
| 185 | + public void endVisit(ArrayInitializer node) { |
| 186 | + super.endVisit(node); |
| 187 | + } |
| 188 | + |
| 189 | + public void endVisit(ArrayType node) { |
| 190 | + super.endVisit(node); |
| 191 | + } |
| 192 | + |
| 193 | + public void endVisit(AssertStatement node) { |
| 194 | + super.endVisit(node); |
| 195 | + } |
| 196 | + |
| 197 | + public void endVisit(Assignment node) { |
| 198 | + super.endVisit(node); |
| 199 | + } |
| 200 | + |
| 201 | + public void endVisit(BooleanLiteral node) { |
| 202 | + super.endVisit(node); |
| 203 | + } |
| 204 | + |
| 205 | + public void endVisit(BreakStatement node) { |
| 206 | + super.endVisit(node); |
| 207 | + } |
| 208 | + |
| 209 | + public void endVisit(CatchClause node) { |
| 210 | + super.endVisit(node); |
| 211 | + } |
| 212 | + |
| 213 | + public void endVisit(CharacterLiteral node) { |
| 214 | + super.endVisit(node); |
| 215 | + } |
| 216 | + |
| 217 | + public void endVisit(ConditionalExpression node) { |
| 218 | + super.endVisit(node); |
| 219 | + } |
| 220 | + |
| 221 | + public void endVisit(ContinueStatement node) { |
| 222 | + super.endVisit(node); |
| 223 | + } |
| 224 | + |
| 225 | + public void endVisit(DoStatement node) { |
| 226 | + super.endVisit(node); |
| 227 | + } |
| 228 | + |
| 229 | + public void endVisit(EmptyStatement node) { |
| 230 | + super.endVisit(node); |
| 231 | + } |
| 232 | + |
| 233 | + public void endVisit(EnhancedForStatement node) { |
| 234 | + super.endVisit(node); |
| 235 | + } |
| 236 | + |
| 237 | + public void endVisit(ForStatement node) { |
| 238 | + super.endVisit(node); |
| 239 | + } |
| 240 | + |
| 241 | + public void endVisit(IfStatement node) { |
| 242 | + super.endVisit(node); |
| 243 | + } |
| 244 | + |
| 245 | + public void endVisit(ImportDeclaration node) { |
| 246 | + super.endVisit(node); |
| 247 | + } |
| 248 | + |
| 249 | + public void endVisit(InfixExpression node) { |
| 250 | + super.endVisit(node); |
| 251 | + } |
| 252 | + |
| 253 | + public void endVisit(Initializer node) { |
| 254 | + super.endVisit(node); |
| 255 | + } |
| 256 | + |
| 257 | + public void endVisit(InstanceofExpression node) { |
| 258 | + super.endVisit(node); |
| 259 | + } |
| 260 | + |
| 261 | + public void endVisit(LabeledStatement node) { |
| 262 | + super.endVisit(node); |
| 263 | + } |
| 264 | + |
| 265 | + public void endVisit(Modifier node) { |
| 266 | + super.endVisit(node); |
| 267 | + } |
| 268 | + |
| 269 | + public void endVisit(NumberLiteral node) { |
| 270 | + super.endVisit(node); |
| 271 | + } |
| 272 | + |
| 273 | + public void endVisit(PackageDeclaration node) { |
| 274 | + super.endVisit(node); |
| 275 | + } |
| 276 | + |
| 277 | + public void endVisit(ParenthesizedExpression node) { |
| 278 | + super.endVisit(node); |
| 279 | + } |
| 280 | + |
| 281 | + public void endVisit(PrefixExpression node) { |
| 282 | + super.endVisit(node); |
| 283 | + } |
| 284 | + |
| 285 | + public void endVisit(QualifiedName node) { |
| 286 | + super.endVisit(node); |
| 287 | + } |
| 288 | + |
| 289 | + public void endVisit(ReturnStatement node) { |
| 290 | + super.endVisit(node); |
| 291 | + } |
| 292 | + |
| 293 | + public void endVisit(StringLiteral node) { |
| 294 | + super.endVisit(node); |
| 295 | + } |
| 296 | + |
| 297 | + public void endVisit(SwitchCase node) { |
| 298 | + super.endVisit(node); |
| 299 | + } |
| 300 | + |
| 301 | + public void endVisit(SwitchStatement node) { |
| 302 | + super.endVisit(node); |
| 303 | + } |
| 304 | + |
| 305 | + public void endVisit(SynchronizedStatement node) { |
| 306 | + super.endVisit(node); |
| 307 | + } |
| 308 | + |
| 309 | + public void endVisit(ThrowStatement node) { |
| 310 | + super.endVisit(node); |
| 311 | + } |
| 312 | + |
| 313 | + public void endVisit(TryStatement node) { |
| 314 | + super.endVisit(node); |
| 315 | + } |
| 316 | + |
| 317 | + public void endVisit(VariableDeclarationExpression node) { |
| 318 | + super.endVisit(node); |
| 319 | + } |
| 320 | + |
| 321 | + public void endVisit(VariableDeclarationFragment node) { |
| 322 | + super.endVisit(node); |
| 323 | + } |
| 324 | + |
| 325 | + public void endVisit(VariableDeclarationStatement node) { |
| 326 | + super.endVisit(node); |
| 327 | + } |
| 328 | + |
| 329 | + public void endVisit(WhileStatement node) { |
| 330 | + super.endVisit(node); |
| 331 | + } |
| 332 | + |
| 333 | + public void postVisit(ASTNode node) { |
| 334 | + super.postVisit(node); |
| 335 | + } |
| 336 | + |
| 337 | + public void preVisit(ASTNode node) { |
| 338 | + super.preVisit(node); |
| 339 | + } |
| 340 | + |
| 341 | + public boolean visit(ArrayType node) { |
| 342 | + return super.visit(node); |
| 343 | + } |
| 344 | + |
| 345 | + public boolean visit(ExpressionStatement node) { |
| 346 | + return super.visit(node); |
| 347 | + } |
| 348 | + |
| 349 | + public void endVisit(AnonymousClassDeclaration node) { |
| 350 | + super.endVisit(node); |
| 351 | + } |
| 352 | + |
| 353 | + public void endVisit(CastExpression node) { |
| 354 | + super.endVisit(node); |
| 355 | + } |
| 356 | + |
| 357 | + public void endVisit(ClassInstanceCreation node) { |
| 358 | + super.endVisit(node); |
| 359 | + } |
| 360 | + |
| 361 | + public void endVisit(ConstructorInvocation node) { |
| 362 | + super.endVisit(node); |
| 363 | + } |
| 364 | + |
| 365 | + public void endVisit(EnumConstantDeclaration node) { |
| 366 | + super.endVisit(node); |
| 367 | + } |
| 368 | + |
| 369 | + public void endVisit(FieldAccess node) { |
| 370 | + super.endVisit(node); |
| 371 | + } |
| 372 | + |
| 373 | + public void endVisit(FieldDeclaration node) { |
| 374 | + super.endVisit(node); |
| 375 | + } |
| 376 | + |
| 377 | + public void endVisit(MethodInvocation node) { |
| 378 | + super.endVisit(node); |
| 379 | + } |
| 380 | + |
| 381 | + public void endVisit(NullLiteral node) { |
| 382 | + super.endVisit(node); |
| 383 | + } |
| 384 | + |
| 385 | + public void endVisit(SimpleName node) { |
| 386 | + super.endVisit(node); |
| 387 | + } |
| 388 | + |
| 389 | + public void endVisit(SimpleType node) { |
| 390 | + super.endVisit(node); |
| 391 | + } |
| 392 | + |
| 393 | + public void endVisit(SingleVariableDeclaration node) { |
| 394 | + super.endVisit(node); |
| 395 | + } |
| 396 | + |
| 397 | + public void endVisit(SuperConstructorInvocation node) { |
| 398 | + super.endVisit(node); |
| 399 | + } |
| 400 | + |
| 401 | + public void endVisit(SuperFieldAccess node) { |
| 402 | + super.endVisit(node); |
| 403 | + } |
| 404 | + |
| 405 | + public void endVisit(SuperMethodInvocation node) { |
| 406 | + super.endVisit(node); |
| 407 | + } |
| 408 | + |
| 409 | + public void endVisit(ThisExpression node) { |
| 410 | + super.endVisit(node); |
| 411 | + } |
| 412 | + |
| 413 | + public void endVisit(TypeLiteral node) { |
| 414 | + super.endVisit(node); |
| 415 | + } |
| 416 | + |
194 | 417 | } |
0 commit comments