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