1 /******************************************************************************* 2 * Copyright (c) 2000, 2013 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.internal.compiler; 12 13 import org.eclipse.jdt.core.compiler.IProblem; 14 import org.eclipse.jdt.internal.compiler.ast.*; 15 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 16 import org.eclipse.jdt.internal.compiler.lookup.ClassScope; 17 import org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope; 18 import org.eclipse.jdt.internal.compiler.lookup.MethodScope; 19 20 /** 21 * A visitor for iterating through the parse tree. 22 */ 23 public abstract class ASTVisitor { acceptProblem(IProblem problem)24 public void acceptProblem(IProblem problem) { 25 // do nothing by default 26 } endVisit( AllocationExpression allocationExpression, BlockScope scope)27 public void endVisit( 28 AllocationExpression allocationExpression, 29 BlockScope scope) { 30 // do nothing by default 31 } endVisit(AND_AND_Expression and_and_Expression, BlockScope scope)32 public void endVisit(AND_AND_Expression and_and_Expression, BlockScope scope) { 33 // do nothing by default 34 } endVisit( AnnotationMethodDeclaration annotationTypeDeclaration, ClassScope classScope)35 public void endVisit( 36 AnnotationMethodDeclaration annotationTypeDeclaration, 37 ClassScope classScope) { 38 // do nothing by default 39 } endVisit(Argument argument, BlockScope scope)40 public void endVisit(Argument argument, BlockScope scope) { 41 // do nothing by default 42 } endVisit(Argument argument,ClassScope scope)43 public void endVisit(Argument argument,ClassScope scope) { 44 // do nothing by default 45 } endVisit( ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)46 public void endVisit( 47 ArrayAllocationExpression arrayAllocationExpression, 48 BlockScope scope) { 49 // do nothing by default 50 } endVisit(ArrayInitializer arrayInitializer, BlockScope scope)51 public void endVisit(ArrayInitializer arrayInitializer, BlockScope scope) { 52 // do nothing by default 53 } endVisit(ArrayInitializer arrayInitializer, ClassScope scope)54 public void endVisit(ArrayInitializer arrayInitializer, ClassScope scope) { 55 // do nothing by default 56 } endVisit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)57 public void endVisit( 58 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 59 BlockScope scope) { 60 // do nothing by default 61 } endVisit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)62 public void endVisit( 63 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 64 ClassScope scope) { 65 // do nothing by default 66 } endVisit(ArrayReference arrayReference, BlockScope scope)67 public void endVisit(ArrayReference arrayReference, BlockScope scope) { 68 // do nothing by default 69 } endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope)70 public void endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 71 // do nothing by default 72 } endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope)73 public void endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 74 // do nothing by default 75 } endVisit(AssertStatement assertStatement, BlockScope scope)76 public void endVisit(AssertStatement assertStatement, BlockScope scope) { 77 // do nothing by default 78 } endVisit(Assignment assignment, BlockScope scope)79 public void endVisit(Assignment assignment, BlockScope scope) { 80 // do nothing by default 81 } endVisit(BinaryExpression binaryExpression, BlockScope scope)82 public void endVisit(BinaryExpression binaryExpression, BlockScope scope) { 83 // do nothing by default 84 } endVisit(Block block, BlockScope scope)85 public void endVisit(Block block, BlockScope scope) { 86 // do nothing by default 87 } endVisit(BreakStatement breakStatement, BlockScope scope)88 public void endVisit(BreakStatement breakStatement, BlockScope scope) { 89 // do nothing by default 90 } endVisit(CaseStatement caseStatement, BlockScope scope)91 public void endVisit(CaseStatement caseStatement, BlockScope scope) { 92 // do nothing by default 93 } endVisit(CastExpression castExpression, BlockScope scope)94 public void endVisit(CastExpression castExpression, BlockScope scope) { 95 // do nothing by default 96 } endVisit(CharLiteral charLiteral, BlockScope scope)97 public void endVisit(CharLiteral charLiteral, BlockScope scope) { 98 // do nothing by default 99 } endVisit(ClassLiteralAccess classLiteral, BlockScope scope)100 public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope) { 101 // do nothing by default 102 } endVisit(Clinit clinit, ClassScope scope)103 public void endVisit(Clinit clinit, ClassScope scope) { 104 // do nothing by default 105 } endVisit( CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)106 public void endVisit( 107 CompilationUnitDeclaration compilationUnitDeclaration, 108 CompilationUnitScope scope) { 109 // do nothing by default 110 } endVisit(CompoundAssignment compoundAssignment, BlockScope scope)111 public void endVisit(CompoundAssignment compoundAssignment, BlockScope scope) { 112 // do nothing by default 113 } endVisit( ConditionalExpression conditionalExpression, BlockScope scope)114 public void endVisit( 115 ConditionalExpression conditionalExpression, 116 BlockScope scope) { 117 // do nothing by default 118 } endVisit( ConstructorDeclaration constructorDeclaration, ClassScope scope)119 public void endVisit( 120 ConstructorDeclaration constructorDeclaration, 121 ClassScope scope) { 122 // do nothing by default 123 } endVisit(ContinueStatement continueStatement, BlockScope scope)124 public void endVisit(ContinueStatement continueStatement, BlockScope scope) { 125 // do nothing by default 126 } endVisit(DoStatement doStatement, BlockScope scope)127 public void endVisit(DoStatement doStatement, BlockScope scope) { 128 // do nothing by default 129 } endVisit(DoubleLiteral doubleLiteral, BlockScope scope)130 public void endVisit(DoubleLiteral doubleLiteral, BlockScope scope) { 131 // do nothing by default 132 } endVisit(EmptyStatement emptyStatement, BlockScope scope)133 public void endVisit(EmptyStatement emptyStatement, BlockScope scope) { 134 // do nothing by default 135 } endVisit(EqualExpression equalExpression, BlockScope scope)136 public void endVisit(EqualExpression equalExpression, BlockScope scope) { 137 // do nothing by default 138 } endVisit( ExplicitConstructorCall explicitConstructor, BlockScope scope)139 public void endVisit( 140 ExplicitConstructorCall explicitConstructor, 141 BlockScope scope) { 142 // do nothing by default 143 } endVisit( ExtendedStringLiteral extendedStringLiteral, BlockScope scope)144 public void endVisit( 145 ExtendedStringLiteral extendedStringLiteral, 146 BlockScope scope) { 147 // do nothing by default 148 } endVisit(FalseLiteral falseLiteral, BlockScope scope)149 public void endVisit(FalseLiteral falseLiteral, BlockScope scope) { 150 // do nothing by default 151 } endVisit(FieldDeclaration fieldDeclaration, MethodScope scope)152 public void endVisit(FieldDeclaration fieldDeclaration, MethodScope scope) { 153 // do nothing by default 154 } endVisit(FieldReference fieldReference, BlockScope scope)155 public void endVisit(FieldReference fieldReference, BlockScope scope) { 156 // do nothing by default 157 } endVisit(FieldReference fieldReference, ClassScope scope)158 public void endVisit(FieldReference fieldReference, ClassScope scope) { 159 // do nothing by default 160 } endVisit(FloatLiteral floatLiteral, BlockScope scope)161 public void endVisit(FloatLiteral floatLiteral, BlockScope scope) { 162 // do nothing by default 163 } endVisit(ForeachStatement forStatement, BlockScope scope)164 public void endVisit(ForeachStatement forStatement, BlockScope scope) { 165 // do nothing by default 166 } endVisit(ForStatement forStatement, BlockScope scope)167 public void endVisit(ForStatement forStatement, BlockScope scope) { 168 // do nothing by default 169 } endVisit(IfStatement ifStatement, BlockScope scope)170 public void endVisit(IfStatement ifStatement, BlockScope scope) { 171 // do nothing by default 172 } endVisit(ImportReference importRef, CompilationUnitScope scope)173 public void endVisit(ImportReference importRef, CompilationUnitScope scope) { 174 // do nothing by default 175 } endVisit(Initializer initializer, MethodScope scope)176 public void endVisit(Initializer initializer, MethodScope scope) { 177 // do nothing by default 178 } endVisit( InstanceOfExpression instanceOfExpression, BlockScope scope)179 public void endVisit( 180 InstanceOfExpression instanceOfExpression, 181 BlockScope scope) { 182 // do nothing by default 183 } endVisit(IntLiteral intLiteral, BlockScope scope)184 public void endVisit(IntLiteral intLiteral, BlockScope scope) { 185 // do nothing by default 186 } endVisit(Javadoc javadoc, BlockScope scope)187 public void endVisit(Javadoc javadoc, BlockScope scope) { 188 // do nothing by default 189 } endVisit(Javadoc javadoc, ClassScope scope)190 public void endVisit(Javadoc javadoc, ClassScope scope) { 191 // do nothing by default 192 } endVisit(JavadocAllocationExpression expression, BlockScope scope)193 public void endVisit(JavadocAllocationExpression expression, BlockScope scope) { 194 // do nothing by default 195 } endVisit(JavadocAllocationExpression expression, ClassScope scope)196 public void endVisit(JavadocAllocationExpression expression, ClassScope scope) { 197 // do nothing by default 198 } endVisit(JavadocArgumentExpression expression, BlockScope scope)199 public void endVisit(JavadocArgumentExpression expression, BlockScope scope) { 200 // do nothing by default 201 } endVisit(JavadocArgumentExpression expression, ClassScope scope)202 public void endVisit(JavadocArgumentExpression expression, ClassScope scope) { 203 // do nothing by default 204 } endVisit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope)205 public void endVisit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) { 206 // do nothing by default 207 } endVisit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope)208 public void endVisit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) { 209 // do nothing by default 210 } endVisit(JavadocArraySingleTypeReference typeRef, BlockScope scope)211 public void endVisit(JavadocArraySingleTypeReference typeRef, BlockScope scope) { 212 // do nothing by default 213 } endVisit(JavadocArraySingleTypeReference typeRef, ClassScope scope)214 public void endVisit(JavadocArraySingleTypeReference typeRef, ClassScope scope) { 215 // do nothing by default 216 } endVisit(JavadocFieldReference fieldRef, BlockScope scope)217 public void endVisit(JavadocFieldReference fieldRef, BlockScope scope) { 218 // do nothing by default 219 } endVisit(JavadocFieldReference fieldRef, ClassScope scope)220 public void endVisit(JavadocFieldReference fieldRef, ClassScope scope) { 221 // do nothing by default 222 } endVisit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope)223 public void endVisit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) { 224 // do nothing by default 225 } endVisit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope)226 public void endVisit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) { 227 // do nothing by default 228 } endVisit(JavadocMessageSend messageSend, BlockScope scope)229 public void endVisit(JavadocMessageSend messageSend, BlockScope scope) { 230 // do nothing by default 231 } endVisit(JavadocMessageSend messageSend, ClassScope scope)232 public void endVisit(JavadocMessageSend messageSend, ClassScope scope) { 233 // do nothing by default 234 } endVisit(JavadocQualifiedTypeReference typeRef, BlockScope scope)235 public void endVisit(JavadocQualifiedTypeReference typeRef, BlockScope scope) { 236 // do nothing by default 237 } endVisit(JavadocQualifiedTypeReference typeRef, ClassScope scope)238 public void endVisit(JavadocQualifiedTypeReference typeRef, ClassScope scope) { 239 // do nothing by default 240 } endVisit(JavadocReturnStatement statement, BlockScope scope)241 public void endVisit(JavadocReturnStatement statement, BlockScope scope) { 242 // do nothing by default 243 } endVisit(JavadocReturnStatement statement, ClassScope scope)244 public void endVisit(JavadocReturnStatement statement, ClassScope scope) { 245 // do nothing by default 246 } endVisit(JavadocSingleNameReference argument, BlockScope scope)247 public void endVisit(JavadocSingleNameReference argument, BlockScope scope) { 248 // do nothing by default 249 } endVisit(JavadocSingleNameReference argument, ClassScope scope)250 public void endVisit(JavadocSingleNameReference argument, ClassScope scope) { 251 // do nothing by default 252 } endVisit(JavadocSingleTypeReference typeRef, BlockScope scope)253 public void endVisit(JavadocSingleTypeReference typeRef, BlockScope scope) { 254 // do nothing by default 255 } endVisit(JavadocSingleTypeReference typeRef, ClassScope scope)256 public void endVisit(JavadocSingleTypeReference typeRef, ClassScope scope) { 257 // do nothing by default 258 } endVisit(LabeledStatement labeledStatement, BlockScope scope)259 public void endVisit(LabeledStatement labeledStatement, BlockScope scope) { 260 // do nothing by default 261 } endVisit(LocalDeclaration localDeclaration, BlockScope scope)262 public void endVisit(LocalDeclaration localDeclaration, BlockScope scope) { 263 // do nothing by default 264 } endVisit(LongLiteral longLiteral, BlockScope scope)265 public void endVisit(LongLiteral longLiteral, BlockScope scope) { 266 // do nothing by default 267 } 268 /** 269 * @param annotation 270 * @param scope 271 * @since 3.1 272 */ endVisit(MarkerAnnotation annotation, BlockScope scope)273 public void endVisit(MarkerAnnotation annotation, BlockScope scope) { 274 // do nothing by default 275 } 276 /** 277 * @param annotation 278 * @param scope 279 */ endVisit(MarkerAnnotation annotation, ClassScope scope)280 public void endVisit(MarkerAnnotation annotation, ClassScope scope) { 281 // do nothing by default 282 } 283 /** 284 * @param pair 285 * @param scope 286 */ endVisit(MemberValuePair pair, BlockScope scope)287 public void endVisit(MemberValuePair pair, BlockScope scope) { 288 // do nothing by default 289 } 290 /** 291 * @param pair 292 * @param scope 293 */ endVisit(MemberValuePair pair, ClassScope scope)294 public void endVisit(MemberValuePair pair, ClassScope scope) { 295 // do nothing by default 296 } endVisit(MessageSend messageSend, BlockScope scope)297 public void endVisit(MessageSend messageSend, BlockScope scope) { 298 // do nothing by default 299 } endVisit(MethodDeclaration methodDeclaration, ClassScope scope)300 public void endVisit(MethodDeclaration methodDeclaration, ClassScope scope) { 301 // do nothing by default 302 } endVisit(StringLiteralConcatenation literal, BlockScope scope)303 public void endVisit(StringLiteralConcatenation literal, BlockScope scope) { 304 // do nothing by default 305 } 306 /** 307 * @param annotation 308 * @param scope 309 * @since 3.1 310 */ endVisit(NormalAnnotation annotation, BlockScope scope)311 public void endVisit(NormalAnnotation annotation, BlockScope scope) { 312 // do nothing by default 313 } endVisit(NormalAnnotation annotation, ClassScope scope)314 public void endVisit(NormalAnnotation annotation, ClassScope scope) { 315 // do nothing by default 316 } endVisit(NullLiteral nullLiteral, BlockScope scope)317 public void endVisit(NullLiteral nullLiteral, BlockScope scope) { 318 // do nothing by default 319 } endVisit(OR_OR_Expression or_or_Expression, BlockScope scope)320 public void endVisit(OR_OR_Expression or_or_Expression, BlockScope scope) { 321 // do nothing by default 322 } endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)323 public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) { 324 // do nothing by default 325 } endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)326 public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) { 327 // do nothing by default 328 } endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)329 public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) { 330 // do nothing by default 331 } endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)332 public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) { 333 // do nothing by default 334 } endVisit(PostfixExpression postfixExpression, BlockScope scope)335 public void endVisit(PostfixExpression postfixExpression, BlockScope scope) { 336 // do nothing by default 337 } endVisit(PrefixExpression prefixExpression, BlockScope scope)338 public void endVisit(PrefixExpression prefixExpression, BlockScope scope) { 339 // do nothing by default 340 } endVisit( QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)341 public void endVisit( 342 QualifiedAllocationExpression qualifiedAllocationExpression, 343 BlockScope scope) { 344 // do nothing by default 345 } endVisit( QualifiedNameReference qualifiedNameReference, BlockScope scope)346 public void endVisit( 347 QualifiedNameReference qualifiedNameReference, 348 BlockScope scope) { 349 // do nothing by default 350 } endVisit( QualifiedNameReference qualifiedNameReference, ClassScope scope)351 public void endVisit( 352 QualifiedNameReference qualifiedNameReference, 353 ClassScope scope) { 354 // do nothing by default 355 } endVisit( QualifiedSuperReference qualifiedSuperReference, BlockScope scope)356 public void endVisit( 357 QualifiedSuperReference qualifiedSuperReference, 358 BlockScope scope) { 359 // do nothing by default 360 } endVisit( QualifiedSuperReference qualifiedSuperReference, ClassScope scope)361 public void endVisit( 362 QualifiedSuperReference qualifiedSuperReference, 363 ClassScope scope) { 364 // do nothing by default 365 } endVisit( QualifiedThisReference qualifiedThisReference, BlockScope scope)366 public void endVisit( 367 QualifiedThisReference qualifiedThisReference, 368 BlockScope scope) { 369 // do nothing by default 370 } endVisit( QualifiedThisReference qualifiedThisReference, ClassScope scope)371 public void endVisit( 372 QualifiedThisReference qualifiedThisReference, 373 ClassScope scope) { 374 // do nothing by default 375 } endVisit( QualifiedTypeReference qualifiedTypeReference, BlockScope scope)376 public void endVisit( 377 QualifiedTypeReference qualifiedTypeReference, 378 BlockScope scope) { 379 // do nothing by default 380 } endVisit( QualifiedTypeReference qualifiedTypeReference, ClassScope scope)381 public void endVisit( 382 QualifiedTypeReference qualifiedTypeReference, 383 ClassScope scope) { 384 // do nothing by default 385 } endVisit(ReturnStatement returnStatement, BlockScope scope)386 public void endVisit(ReturnStatement returnStatement, BlockScope scope) { 387 // do nothing by default 388 } 389 /** 390 * @param annotation 391 * @param scope 392 * @since 3.1 393 */ endVisit(SingleMemberAnnotation annotation, BlockScope scope)394 public void endVisit(SingleMemberAnnotation annotation, BlockScope scope) { 395 // do nothing by default 396 } 397 /** 398 * @param annotation 399 * @param scope 400 */ endVisit(SingleMemberAnnotation annotation, ClassScope scope)401 public void endVisit(SingleMemberAnnotation annotation, ClassScope scope) { 402 // do nothing by default 403 } endVisit( SingleNameReference singleNameReference, BlockScope scope)404 public void endVisit( 405 SingleNameReference singleNameReference, 406 BlockScope scope) { 407 // do nothing by default 408 } endVisit( SingleNameReference singleNameReference, ClassScope scope)409 public void endVisit( 410 SingleNameReference singleNameReference, 411 ClassScope scope) { 412 // do nothing by default 413 } endVisit( SingleTypeReference singleTypeReference, BlockScope scope)414 public void endVisit( 415 SingleTypeReference singleTypeReference, 416 BlockScope scope) { 417 // do nothing by default 418 } endVisit( SingleTypeReference singleTypeReference, ClassScope scope)419 public void endVisit( 420 SingleTypeReference singleTypeReference, 421 ClassScope scope) { 422 // do nothing by default 423 } endVisit(StringLiteral stringLiteral, BlockScope scope)424 public void endVisit(StringLiteral stringLiteral, BlockScope scope) { 425 // do nothing by default 426 } endVisit(SuperReference superReference, BlockScope scope)427 public void endVisit(SuperReference superReference, BlockScope scope) { 428 // do nothing by default 429 } endVisit(SwitchStatement switchStatement, BlockScope scope)430 public void endVisit(SwitchStatement switchStatement, BlockScope scope) { 431 // do nothing by default 432 } endVisit( SynchronizedStatement synchronizedStatement, BlockScope scope)433 public void endVisit( 434 SynchronizedStatement synchronizedStatement, 435 BlockScope scope) { 436 // do nothing by default 437 } endVisit(ThisReference thisReference, BlockScope scope)438 public void endVisit(ThisReference thisReference, BlockScope scope) { 439 // do nothing by default 440 } endVisit(ThisReference thisReference, ClassScope scope)441 public void endVisit(ThisReference thisReference, ClassScope scope) { 442 // do nothing by default 443 } endVisit(ThrowStatement throwStatement, BlockScope scope)444 public void endVisit(ThrowStatement throwStatement, BlockScope scope) { 445 // do nothing by default 446 } endVisit(TrueLiteral trueLiteral, BlockScope scope)447 public void endVisit(TrueLiteral trueLiteral, BlockScope scope) { 448 // do nothing by default 449 } endVisit(TryStatement tryStatement, BlockScope scope)450 public void endVisit(TryStatement tryStatement, BlockScope scope) { 451 // do nothing by default 452 } endVisit( TypeDeclaration localTypeDeclaration, BlockScope scope)453 public void endVisit( 454 TypeDeclaration localTypeDeclaration, 455 BlockScope scope) { 456 // do nothing by default 457 } endVisit( TypeDeclaration memberTypeDeclaration, ClassScope scope)458 public void endVisit( 459 TypeDeclaration memberTypeDeclaration, 460 ClassScope scope) { 461 // do nothing by default 462 } endVisit( TypeDeclaration typeDeclaration, CompilationUnitScope scope)463 public void endVisit( 464 TypeDeclaration typeDeclaration, 465 CompilationUnitScope scope) { 466 // do nothing by default 467 } endVisit(TypeParameter typeParameter, BlockScope scope)468 public void endVisit(TypeParameter typeParameter, BlockScope scope) { 469 // do nothing by default 470 } endVisit(TypeParameter typeParameter, ClassScope scope)471 public void endVisit(TypeParameter typeParameter, ClassScope scope) { 472 // do nothing by default 473 } endVisit(UnaryExpression unaryExpression, BlockScope scope)474 public void endVisit(UnaryExpression unaryExpression, BlockScope scope) { 475 // do nothing by default 476 } endVisit( UnionTypeReference unionTypeReference, BlockScope scope)477 public void endVisit( 478 UnionTypeReference unionTypeReference, 479 BlockScope scope) { 480 // do nothing by default 481 } endVisit( UnionTypeReference unionTypeReference, ClassScope scope)482 public void endVisit( 483 UnionTypeReference unionTypeReference, 484 ClassScope scope) { 485 // do nothing by default 486 } endVisit(WhileStatement whileStatement, BlockScope scope)487 public void endVisit(WhileStatement whileStatement, BlockScope scope) { 488 // do nothing by default 489 } endVisit(Wildcard wildcard, BlockScope scope)490 public void endVisit(Wildcard wildcard, BlockScope scope) { 491 // do nothing by default 492 } endVisit(Wildcard wildcard, ClassScope scope)493 public void endVisit(Wildcard wildcard, ClassScope scope) { 494 // do nothing by default 495 } endVisit(LambdaExpression lambdaExpression, BlockScope blockScope)496 public void endVisit(LambdaExpression lambdaExpression, BlockScope blockScope) { 497 // do nothing by default 498 } endVisit(ReferenceExpression referenceExpression, BlockScope blockScope)499 public void endVisit(ReferenceExpression referenceExpression, BlockScope blockScope) { 500 // do nothing by default 501 } endVisit(IntersectionCastTypeReference intersectionCastTypeReference, ClassScope scope)502 public void endVisit(IntersectionCastTypeReference intersectionCastTypeReference, ClassScope scope) { 503 // do nothing by default 504 } endVisit(IntersectionCastTypeReference intersectionCastTypeReference, BlockScope scope)505 public void endVisit(IntersectionCastTypeReference intersectionCastTypeReference, BlockScope scope) { 506 // do nothing by default 507 } visit( AllocationExpression allocationExpression, BlockScope scope)508 public boolean visit( 509 AllocationExpression allocationExpression, 510 BlockScope scope) { 511 return true; // do nothing by default, keep traversing 512 } visit(AND_AND_Expression and_and_Expression, BlockScope scope)513 public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope) { 514 return true; // do nothing by default, keep traversing 515 } visit( AnnotationMethodDeclaration annotationTypeDeclaration, ClassScope classScope)516 public boolean visit( 517 AnnotationMethodDeclaration annotationTypeDeclaration, 518 ClassScope classScope) { 519 return true; // do nothing by default, keep traversing 520 } visit(Argument argument, BlockScope scope)521 public boolean visit(Argument argument, BlockScope scope) { 522 return true; // do nothing by default, keep traversing 523 } visit(Argument argument, ClassScope scope)524 public boolean visit(Argument argument, ClassScope scope) { 525 return true; // do nothing by default, keep traversing 526 } visit( ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)527 public boolean visit( 528 ArrayAllocationExpression arrayAllocationExpression, 529 BlockScope scope) { 530 return true; // do nothing by default, keep traversing 531 } visit(ArrayInitializer arrayInitializer, BlockScope scope)532 public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) { 533 return true; // do nothing by default, keep traversing 534 } visit(ArrayInitializer arrayInitializer, ClassScope scope)535 public boolean visit(ArrayInitializer arrayInitializer, ClassScope scope) { 536 return true; // do nothing by default, keep traversing 537 } visit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)538 public boolean visit( 539 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 540 BlockScope scope) { 541 return true; // do nothing by default, keep traversing 542 } visit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)543 public boolean visit( 544 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 545 ClassScope scope) { 546 return true; // do nothing by default, keep traversing 547 } visit(ArrayReference arrayReference, BlockScope scope)548 public boolean visit(ArrayReference arrayReference, BlockScope scope) { 549 return true; // do nothing by default, keep traversing 550 } visit(ArrayTypeReference arrayTypeReference, BlockScope scope)551 public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 552 return true; // do nothing by default, keep traversing 553 } visit(ArrayTypeReference arrayTypeReference, ClassScope scope)554 public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 555 return true; // do nothing by default, keep traversing 556 } visit(AssertStatement assertStatement, BlockScope scope)557 public boolean visit(AssertStatement assertStatement, BlockScope scope) { 558 return true; // do nothing by default, keep traversing 559 } visit(Assignment assignment, BlockScope scope)560 public boolean visit(Assignment assignment, BlockScope scope) { 561 return true; // do nothing by default, keep traversing 562 } visit(BinaryExpression binaryExpression, BlockScope scope)563 public boolean visit(BinaryExpression binaryExpression, BlockScope scope) { 564 return true; // do nothing by default, keep traversing 565 } visit(Block block, BlockScope scope)566 public boolean visit(Block block, BlockScope scope) { 567 return true; // do nothing by default, keep traversing 568 } visit(BreakStatement breakStatement, BlockScope scope)569 public boolean visit(BreakStatement breakStatement, BlockScope scope) { 570 return true; // do nothing by default, keep traversing 571 } visit(CaseStatement caseStatement, BlockScope scope)572 public boolean visit(CaseStatement caseStatement, BlockScope scope) { 573 return true; // do nothing by default, keep traversing 574 } visit(CastExpression castExpression, BlockScope scope)575 public boolean visit(CastExpression castExpression, BlockScope scope) { 576 return true; // do nothing by default, keep traversing 577 } visit(CharLiteral charLiteral, BlockScope scope)578 public boolean visit(CharLiteral charLiteral, BlockScope scope) { 579 return true; // do nothing by default, keep traversing 580 } visit(ClassLiteralAccess classLiteral, BlockScope scope)581 public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) { 582 return true; // do nothing by default, keep traversing 583 } visit(Clinit clinit, ClassScope scope)584 public boolean visit(Clinit clinit, ClassScope scope) { 585 return true; // do nothing by default, keep traversing 586 } visit( CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)587 public boolean visit( 588 CompilationUnitDeclaration compilationUnitDeclaration, 589 CompilationUnitScope scope) { 590 return true; // do nothing by default, keep traversing 591 } visit(CompoundAssignment compoundAssignment, BlockScope scope)592 public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope) { 593 return true; // do nothing by default, keep traversing 594 } visit( ConditionalExpression conditionalExpression, BlockScope scope)595 public boolean visit( 596 ConditionalExpression conditionalExpression, 597 BlockScope scope) { 598 return true; // do nothing by default, keep traversing 599 } visit( ConstructorDeclaration constructorDeclaration, ClassScope scope)600 public boolean visit( 601 ConstructorDeclaration constructorDeclaration, 602 ClassScope scope) { 603 return true; // do nothing by default, keep traversing 604 } visit(ContinueStatement continueStatement, BlockScope scope)605 public boolean visit(ContinueStatement continueStatement, BlockScope scope) { 606 return true; // do nothing by default, keep traversing 607 } visit(DoStatement doStatement, BlockScope scope)608 public boolean visit(DoStatement doStatement, BlockScope scope) { 609 return true; // do nothing by default, keep traversing 610 } visit(DoubleLiteral doubleLiteral, BlockScope scope)611 public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope) { 612 return true; // do nothing by default, keep traversing 613 } visit(EmptyStatement emptyStatement, BlockScope scope)614 public boolean visit(EmptyStatement emptyStatement, BlockScope scope) { 615 return true; // do nothing by default, keep traversing 616 } visit(EqualExpression equalExpression, BlockScope scope)617 public boolean visit(EqualExpression equalExpression, BlockScope scope) { 618 return true; // do nothing by default, keep traversing 619 } visit( ExplicitConstructorCall explicitConstructor, BlockScope scope)620 public boolean visit( 621 ExplicitConstructorCall explicitConstructor, 622 BlockScope scope) { 623 return true; // do nothing by default, keep traversing 624 } visit( ExtendedStringLiteral extendedStringLiteral, BlockScope scope)625 public boolean visit( 626 ExtendedStringLiteral extendedStringLiteral, 627 BlockScope scope) { 628 return true; // do nothing by default, keep traversing 629 } visit(FalseLiteral falseLiteral, BlockScope scope)630 public boolean visit(FalseLiteral falseLiteral, BlockScope scope) { 631 return true; // do nothing by default, keep traversing 632 } visit(FieldDeclaration fieldDeclaration, MethodScope scope)633 public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) { 634 return true; // do nothing by default, keep traversing 635 } visit(FieldReference fieldReference, BlockScope scope)636 public boolean visit(FieldReference fieldReference, BlockScope scope) { 637 return true; // do nothing by default, keep traversing 638 } visit(FieldReference fieldReference, ClassScope scope)639 public boolean visit(FieldReference fieldReference, ClassScope scope) { 640 return true; // do nothing by default, keep traversing 641 } visit(FloatLiteral floatLiteral, BlockScope scope)642 public boolean visit(FloatLiteral floatLiteral, BlockScope scope) { 643 return true; // do nothing by default, keep traversing 644 } visit(ForeachStatement forStatement, BlockScope scope)645 public boolean visit(ForeachStatement forStatement, BlockScope scope) { 646 return true; // do nothing by default, keep traversing 647 } visit(ForStatement forStatement, BlockScope scope)648 public boolean visit(ForStatement forStatement, BlockScope scope) { 649 return true; // do nothing by default, keep traversing 650 } visit(IfStatement ifStatement, BlockScope scope)651 public boolean visit(IfStatement ifStatement, BlockScope scope) { 652 return true; // do nothing by default, keep traversing 653 } visit(ImportReference importRef, CompilationUnitScope scope)654 public boolean visit(ImportReference importRef, CompilationUnitScope scope) { 655 return true; // do nothing by default, keep traversing 656 } visit(Initializer initializer, MethodScope scope)657 public boolean visit(Initializer initializer, MethodScope scope) { 658 return true; // do nothing by default, keep traversing 659 } visit( InstanceOfExpression instanceOfExpression, BlockScope scope)660 public boolean visit( 661 InstanceOfExpression instanceOfExpression, 662 BlockScope scope) { 663 return true; // do nothing by default, keep traversing 664 } visit(IntLiteral intLiteral, BlockScope scope)665 public boolean visit(IntLiteral intLiteral, BlockScope scope) { 666 return true; // do nothing by default, keep traversing 667 } visit(Javadoc javadoc, BlockScope scope)668 public boolean visit(Javadoc javadoc, BlockScope scope) { 669 return true; // do nothing by default, keep traversing 670 } visit(Javadoc javadoc, ClassScope scope)671 public boolean visit(Javadoc javadoc, ClassScope scope) { 672 return true; // do nothing by default, keep traversing 673 } visit(JavadocAllocationExpression expression, BlockScope scope)674 public boolean visit(JavadocAllocationExpression expression, BlockScope scope) { 675 return true; // do nothing by default, keep traversing 676 } visit(JavadocAllocationExpression expression, ClassScope scope)677 public boolean visit(JavadocAllocationExpression expression, ClassScope scope) { 678 return true; // do nothing by default, keep traversing 679 } visit(JavadocArgumentExpression expression, BlockScope scope)680 public boolean visit(JavadocArgumentExpression expression, BlockScope scope) { 681 return true; // do nothing by default, keep traversing 682 } visit(JavadocArgumentExpression expression, ClassScope scope)683 public boolean visit(JavadocArgumentExpression expression, ClassScope scope) { 684 return true; // do nothing by default, keep traversing 685 } visit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope)686 public boolean visit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) { 687 return true; // do nothing by default, keep traversing 688 } visit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope)689 public boolean visit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) { 690 return true; // do nothing by default, keep traversing 691 } visit(JavadocArraySingleTypeReference typeRef, BlockScope scope)692 public boolean visit(JavadocArraySingleTypeReference typeRef, BlockScope scope) { 693 return true; // do nothing by default, keep traversing 694 } visit(JavadocArraySingleTypeReference typeRef, ClassScope scope)695 public boolean visit(JavadocArraySingleTypeReference typeRef, ClassScope scope) { 696 return true; // do nothing by default, keep traversing 697 } visit(JavadocFieldReference fieldRef, BlockScope scope)698 public boolean visit(JavadocFieldReference fieldRef, BlockScope scope) { 699 return true; // do nothing by default, keep traversing 700 } visit(JavadocFieldReference fieldRef, ClassScope scope)701 public boolean visit(JavadocFieldReference fieldRef, ClassScope scope) { 702 return true; // do nothing by default, keep traversing 703 } visit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope)704 public boolean visit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) { 705 return true; // do nothing by default, keep traversing 706 } visit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope)707 public boolean visit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) { 708 return true; // do nothing by default, keep traversing 709 } visit(JavadocMessageSend messageSend, BlockScope scope)710 public boolean visit(JavadocMessageSend messageSend, BlockScope scope) { 711 return true; // do nothing by default, keep traversing 712 } visit(JavadocMessageSend messageSend, ClassScope scope)713 public boolean visit(JavadocMessageSend messageSend, ClassScope scope) { 714 return true; // do nothing by default, keep traversing 715 } visit(JavadocQualifiedTypeReference typeRef, BlockScope scope)716 public boolean visit(JavadocQualifiedTypeReference typeRef, BlockScope scope) { 717 return true; // do nothing by default, keep traversing 718 } visit(JavadocQualifiedTypeReference typeRef, ClassScope scope)719 public boolean visit(JavadocQualifiedTypeReference typeRef, ClassScope scope) { 720 return true; // do nothing by default, keep traversing 721 } visit(JavadocReturnStatement statement, BlockScope scope)722 public boolean visit(JavadocReturnStatement statement, BlockScope scope) { 723 return true; // do nothing by default, keep traversing 724 } visit(JavadocReturnStatement statement, ClassScope scope)725 public boolean visit(JavadocReturnStatement statement, ClassScope scope) { 726 return true; // do nothing by default, keep traversing 727 } visit(JavadocSingleNameReference argument, BlockScope scope)728 public boolean visit(JavadocSingleNameReference argument, BlockScope scope) { 729 return true; // do nothing by default, keep traversing 730 } visit(JavadocSingleNameReference argument, ClassScope scope)731 public boolean visit(JavadocSingleNameReference argument, ClassScope scope) { 732 return true; // do nothing by default, keep traversing 733 } visit(JavadocSingleTypeReference typeRef, BlockScope scope)734 public boolean visit(JavadocSingleTypeReference typeRef, BlockScope scope) { 735 return true; // do nothing by default, keep traversing 736 } visit(JavadocSingleTypeReference typeRef, ClassScope scope)737 public boolean visit(JavadocSingleTypeReference typeRef, ClassScope scope) { 738 return true; // do nothing by default, keep traversing 739 } visit(LabeledStatement labeledStatement, BlockScope scope)740 public boolean visit(LabeledStatement labeledStatement, BlockScope scope) { 741 return true; // do nothing by default, keep traversing 742 } visit(LocalDeclaration localDeclaration, BlockScope scope)743 public boolean visit(LocalDeclaration localDeclaration, BlockScope scope) { 744 return true; // do nothing by default, keep traversing 745 } visit(LongLiteral longLiteral, BlockScope scope)746 public boolean visit(LongLiteral longLiteral, BlockScope scope) { 747 return true; // do nothing by default, keep traversing 748 } 749 /** 750 * @param annotation 751 * @param scope 752 * @since 3.1 753 */ visit(MarkerAnnotation annotation, BlockScope scope)754 public boolean visit(MarkerAnnotation annotation, BlockScope scope) { 755 return true; 756 } 757 /** 758 * @param annotation 759 * @param scope 760 */ visit(MarkerAnnotation annotation, ClassScope scope)761 public boolean visit(MarkerAnnotation annotation, ClassScope scope) { 762 return true; 763 } 764 /** 765 * @param pair 766 * @param scope 767 * @since 3.1 768 */ visit(MemberValuePair pair, BlockScope scope)769 public boolean visit(MemberValuePair pair, BlockScope scope) { 770 return true; 771 } 772 /** 773 * @param pair 774 * @param scope 775 */ visit(MemberValuePair pair, ClassScope scope)776 public boolean visit(MemberValuePair pair, ClassScope scope) { 777 return true; 778 } visit(MessageSend messageSend, BlockScope scope)779 public boolean visit(MessageSend messageSend, BlockScope scope) { 780 return true; // do nothing by default, keep traversing 781 } visit(MethodDeclaration methodDeclaration, ClassScope scope)782 public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) { 783 return true; // do nothing by default, keep traversing 784 } visit( StringLiteralConcatenation literal, BlockScope scope)785 public boolean visit( 786 StringLiteralConcatenation literal, 787 BlockScope scope) { 788 return true; // do nothing by default, keep traversing 789 } 790 /** 791 * @param annotation 792 * @param scope 793 * @since 3.1 794 */ visit(NormalAnnotation annotation, BlockScope scope)795 public boolean visit(NormalAnnotation annotation, BlockScope scope) { 796 return true; 797 } 798 /** 799 * @param annotation 800 * @param scope 801 */ visit(NormalAnnotation annotation, ClassScope scope)802 public boolean visit(NormalAnnotation annotation, ClassScope scope) { 803 return true; 804 } visit(NullLiteral nullLiteral, BlockScope scope)805 public boolean visit(NullLiteral nullLiteral, BlockScope scope) { 806 return true; // do nothing by default, keep traversing 807 } visit(OR_OR_Expression or_or_Expression, BlockScope scope)808 public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) { 809 return true; // do nothing by default, keep traversing 810 } visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)811 public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) { 812 return true; // do nothing by default, keep traversing 813 } visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)814 public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) { 815 return true; // do nothing by default, keep traversing 816 } visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)817 public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) { 818 return true; // do nothing by default, keep traversing 819 } visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)820 public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) { 821 return true; // do nothing by default, keep traversing 822 } visit(PostfixExpression postfixExpression, BlockScope scope)823 public boolean visit(PostfixExpression postfixExpression, BlockScope scope) { 824 return true; // do nothing by default, keep traversing 825 } visit(PrefixExpression prefixExpression, BlockScope scope)826 public boolean visit(PrefixExpression prefixExpression, BlockScope scope) { 827 return true; // do nothing by default, keep traversing 828 } visit( QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)829 public boolean visit( 830 QualifiedAllocationExpression qualifiedAllocationExpression, 831 BlockScope scope) { 832 return true; // do nothing by default, keep traversing 833 } visit( QualifiedNameReference qualifiedNameReference, BlockScope scope)834 public boolean visit( 835 QualifiedNameReference qualifiedNameReference, 836 BlockScope scope) { 837 return true; // do nothing by default, keep traversing 838 } visit( QualifiedNameReference qualifiedNameReference, ClassScope scope)839 public boolean visit( 840 QualifiedNameReference qualifiedNameReference, 841 ClassScope scope) { 842 return true; // do nothing by default, keep traversing 843 } visit( QualifiedSuperReference qualifiedSuperReference, BlockScope scope)844 public boolean visit( 845 QualifiedSuperReference qualifiedSuperReference, 846 BlockScope scope) { 847 return true; // do nothing by default, keep traversing 848 } visit( QualifiedSuperReference qualifiedSuperReference, ClassScope scope)849 public boolean visit( 850 QualifiedSuperReference qualifiedSuperReference, 851 ClassScope scope) { 852 return true; // do nothing by default, keep traversing 853 } visit( QualifiedThisReference qualifiedThisReference, BlockScope scope)854 public boolean visit( 855 QualifiedThisReference qualifiedThisReference, 856 BlockScope scope) { 857 return true; // do nothing by default, keep traversing 858 } visit( QualifiedThisReference qualifiedThisReference, ClassScope scope)859 public boolean visit( 860 QualifiedThisReference qualifiedThisReference, 861 ClassScope scope) { 862 return true; // do nothing by default, keep traversing 863 } visit( QualifiedTypeReference qualifiedTypeReference, BlockScope scope)864 public boolean visit( 865 QualifiedTypeReference qualifiedTypeReference, 866 BlockScope scope) { 867 return true; // do nothing by default, keep traversing 868 } visit( QualifiedTypeReference qualifiedTypeReference, ClassScope scope)869 public boolean visit( 870 QualifiedTypeReference qualifiedTypeReference, 871 ClassScope scope) { 872 return true; // do nothing by default, keep traversing 873 } visit(ReturnStatement returnStatement, BlockScope scope)874 public boolean visit(ReturnStatement returnStatement, BlockScope scope) { 875 return true; // do nothing by default, keep traversing 876 } 877 /** 878 * @param annotation 879 * @param scope 880 * @since 3.1 881 */ visit(SingleMemberAnnotation annotation, BlockScope scope)882 public boolean visit(SingleMemberAnnotation annotation, BlockScope scope) { 883 return true; 884 } 885 /** 886 * @param annotation 887 * @param scope 888 */ visit(SingleMemberAnnotation annotation, ClassScope scope)889 public boolean visit(SingleMemberAnnotation annotation, ClassScope scope) { 890 return true; 891 } visit( SingleNameReference singleNameReference, BlockScope scope)892 public boolean visit( 893 SingleNameReference singleNameReference, 894 BlockScope scope) { 895 return true; // do nothing by default, keep traversing 896 } visit( SingleNameReference singleNameReference, ClassScope scope)897 public boolean visit( 898 SingleNameReference singleNameReference, 899 ClassScope scope) { 900 return true; // do nothing by default, keep traversing 901 } visit( SingleTypeReference singleTypeReference, BlockScope scope)902 public boolean visit( 903 SingleTypeReference singleTypeReference, 904 BlockScope scope) { 905 return true; // do nothing by default, keep traversing 906 } visit( SingleTypeReference singleTypeReference, ClassScope scope)907 public boolean visit( 908 SingleTypeReference singleTypeReference, 909 ClassScope scope) { 910 return true; // do nothing by default, keep traversing 911 } visit(StringLiteral stringLiteral, BlockScope scope)912 public boolean visit(StringLiteral stringLiteral, BlockScope scope) { 913 return true; // do nothing by default, keep traversing 914 } visit(SuperReference superReference, BlockScope scope)915 public boolean visit(SuperReference superReference, BlockScope scope) { 916 return true; // do nothing by default, keep traversing 917 } visit(SwitchStatement switchStatement, BlockScope scope)918 public boolean visit(SwitchStatement switchStatement, BlockScope scope) { 919 return true; // do nothing by default, keep traversing 920 } visit( SynchronizedStatement synchronizedStatement, BlockScope scope)921 public boolean visit( 922 SynchronizedStatement synchronizedStatement, 923 BlockScope scope) { 924 return true; // do nothing by default, keep traversing 925 } visit(ThisReference thisReference, BlockScope scope)926 public boolean visit(ThisReference thisReference, BlockScope scope) { 927 return true; // do nothing by default, keep traversing 928 } visit(ThisReference thisReference, ClassScope scope)929 public boolean visit(ThisReference thisReference, ClassScope scope) { 930 return true; // do nothing by default, keep traversing 931 } visit(ThrowStatement throwStatement, BlockScope scope)932 public boolean visit(ThrowStatement throwStatement, BlockScope scope) { 933 return true; // do nothing by default, keep traversing 934 } visit(TrueLiteral trueLiteral, BlockScope scope)935 public boolean visit(TrueLiteral trueLiteral, BlockScope scope) { 936 return true; // do nothing by default, keep traversing 937 } visit(TryStatement tryStatement, BlockScope scope)938 public boolean visit(TryStatement tryStatement, BlockScope scope) { 939 return true; // do nothing by default, keep traversing 940 } visit( TypeDeclaration localTypeDeclaration, BlockScope scope)941 public boolean visit( 942 TypeDeclaration localTypeDeclaration, 943 BlockScope scope) { 944 return true; // do nothing by default, keep traversing 945 } visit( TypeDeclaration memberTypeDeclaration, ClassScope scope)946 public boolean visit( 947 TypeDeclaration memberTypeDeclaration, 948 ClassScope scope) { 949 return true; // do nothing by default, keep traversing 950 } visit( TypeDeclaration typeDeclaration, CompilationUnitScope scope)951 public boolean visit( 952 TypeDeclaration typeDeclaration, 953 CompilationUnitScope scope) { 954 return true; // do nothing by default, keep traversing 955 } visit(TypeParameter typeParameter, BlockScope scope)956 public boolean visit(TypeParameter typeParameter, BlockScope scope) { 957 return true; // do nothing by default, keep traversing 958 } visit(TypeParameter typeParameter, ClassScope scope)959 public boolean visit(TypeParameter typeParameter, ClassScope scope) { 960 return true; // do nothing by default, keep traversing 961 } visit(UnaryExpression unaryExpression, BlockScope scope)962 public boolean visit(UnaryExpression unaryExpression, BlockScope scope) { 963 return true; // do nothing by default, keep traversing 964 } visit( UnionTypeReference unionTypeReference, BlockScope scope)965 public boolean visit( 966 UnionTypeReference unionTypeReference, 967 BlockScope scope) { 968 return true; // do nothing by default, keep traversing 969 } visit( UnionTypeReference unionTypeReference, ClassScope scope)970 public boolean visit( 971 UnionTypeReference unionTypeReference, 972 ClassScope scope) { 973 return true; // do nothing by default, keep traversing 974 } visit(WhileStatement whileStatement, BlockScope scope)975 public boolean visit(WhileStatement whileStatement, BlockScope scope) { 976 return true; // do nothing by default, keep traversing 977 } visit(Wildcard wildcard, BlockScope scope)978 public boolean visit(Wildcard wildcard, BlockScope scope) { 979 return true; // do nothing by default, keep traversing 980 } visit(Wildcard wildcard, ClassScope scope)981 public boolean visit(Wildcard wildcard, ClassScope scope) { 982 return true; // do nothing by default, keep traversing 983 } visit(LambdaExpression lambdaExpression, BlockScope blockScope)984 public boolean visit(LambdaExpression lambdaExpression, BlockScope blockScope) { 985 return true; // do nothing by default, keep traversing 986 } visit(ReferenceExpression referenceExpression, BlockScope blockScope)987 public boolean visit(ReferenceExpression referenceExpression, BlockScope blockScope) { 988 return true; // do nothing by default, keep traversing 989 } visit(IntersectionCastTypeReference intersectionCastTypeReference, ClassScope scope)990 public boolean visit(IntersectionCastTypeReference intersectionCastTypeReference, ClassScope scope) { 991 return true; // do nothing by default, keep traversing 992 } visit(IntersectionCastTypeReference intersectionCastTypeReference, BlockScope scope)993 public boolean visit(IntersectionCastTypeReference intersectionCastTypeReference, BlockScope scope) { 994 return true; // do nothing by default, keep traversing 995 } 996 } 997