1 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 23 public abstract class ASTVisitor { 24 public void acceptProblem(IProblem problem) { 25 } 27 public void endVisit( 28 AllocationExpression allocationExpression, 29 BlockScope scope) { 30 } 32 public void endVisit(AND_AND_Expression and_and_Expression, BlockScope scope) { 33 } 35 public void endVisit( 36 AnnotationMethodDeclaration annotationTypeDeclaration, 37 ClassScope classScope) { 38 } 40 public void endVisit(Argument argument, BlockScope scope) { 41 } 43 public void endVisit(Argument argument,ClassScope scope) { 44 } 46 public void endVisit( 47 ArrayAllocationExpression arrayAllocationExpression, 48 BlockScope scope) { 49 } 51 public void endVisit(ArrayInitializer arrayInitializer, BlockScope scope) { 52 } 54 public void endVisit( 55 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 56 BlockScope scope) { 57 } 59 public void endVisit( 60 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 61 ClassScope scope) { 62 } 64 public void endVisit(ArrayReference arrayReference, BlockScope scope) { 65 } 67 public void endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 68 } 70 public void endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 71 } 73 public void endVisit(AssertStatement assertStatement, BlockScope scope) { 74 } 76 public void endVisit(Assignment assignment, BlockScope scope) { 77 } 79 public void endVisit(BinaryExpression binaryExpression, BlockScope scope) { 80 } 82 public void endVisit(Block block, BlockScope scope) { 83 } 85 public void endVisit(BreakStatement breakStatement, BlockScope scope) { 86 } 88 public void endVisit(CaseStatement caseStatement, BlockScope scope) { 89 } 91 public void endVisit(CastExpression castExpression, BlockScope scope) { 92 } 94 public void endVisit(CharLiteral charLiteral, BlockScope scope) { 95 } 97 public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope) { 98 } 100 public void endVisit(Clinit clinit, ClassScope scope) { 101 } 103 public void endVisit( 104 CompilationUnitDeclaration compilationUnitDeclaration, 105 CompilationUnitScope scope) { 106 } 108 public void endVisit(CompoundAssignment compoundAssignment, BlockScope scope) { 109 } 111 public void endVisit( 112 ConditionalExpression conditionalExpression, 113 BlockScope scope) { 114 } 116 public void endVisit( 117 ConstructorDeclaration constructorDeclaration, 118 ClassScope scope) { 119 } 121 public void endVisit(ContinueStatement continueStatement, BlockScope scope) { 122 } 124 public void endVisit(DoStatement doStatement, BlockScope scope) { 125 } 127 public void endVisit(DoubleLiteral doubleLiteral, BlockScope scope) { 128 } 130 public void endVisit(EmptyStatement emptyStatement, BlockScope scope) { 131 } 133 public void endVisit(EqualExpression equalExpression, BlockScope scope) { 134 } 136 public void endVisit( 137 ExplicitConstructorCall explicitConstructor, 138 BlockScope scope) { 139 } 141 public void endVisit( 142 ExtendedStringLiteral extendedStringLiteral, 143 BlockScope scope) { 144 } 146 public void endVisit(FalseLiteral falseLiteral, BlockScope scope) { 147 } 149 public void endVisit(FieldDeclaration fieldDeclaration, MethodScope scope) { 150 } 152 public void endVisit(FieldReference fieldReference, BlockScope scope) { 153 } 155 public void endVisit(FieldReference fieldReference, ClassScope scope) { 156 } 158 public void endVisit(FloatLiteral floatLiteral, BlockScope scope) { 159 } 161 public void endVisit(ForeachStatement forStatement, BlockScope scope) { 162 } 164 public void endVisit(ForStatement forStatement, BlockScope scope) { 165 } 167 public void endVisit(IfStatement ifStatement, BlockScope scope) { 168 } 170 public void endVisit(ImportReference importRef, CompilationUnitScope scope) { 171 } 173 public void endVisit(Initializer initializer, MethodScope scope) { 174 } 176 public void endVisit( 177 InstanceOfExpression instanceOfExpression, 178 BlockScope scope) { 179 } 181 public void endVisit(IntLiteral intLiteral, BlockScope scope) { 182 } 184 public void endVisit(Javadoc javadoc, BlockScope scope) { 185 } 187 public void endVisit(Javadoc javadoc, ClassScope scope) { 188 } 190 public void endVisit(JavadocAllocationExpression expression, BlockScope scope) { 191 } 193 public void endVisit(JavadocAllocationExpression expression, ClassScope scope) { 194 } 196 public void endVisit(JavadocArgumentExpression expression, BlockScope scope) { 197 } 199 public void endVisit(JavadocArgumentExpression expression, ClassScope scope) { 200 } 202 public void endVisit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) { 203 } 205 public void endVisit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) { 206 } 208 public void endVisit(JavadocArraySingleTypeReference typeRef, BlockScope scope) { 209 } 211 public void endVisit(JavadocArraySingleTypeReference typeRef, ClassScope scope) { 212 } 214 public void endVisit(JavadocFieldReference fieldRef, BlockScope scope) { 215 } 217 public void endVisit(JavadocFieldReference fieldRef, ClassScope scope) { 218 } 220 public void endVisit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) { 221 } 223 public void endVisit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) { 224 } 226 public void endVisit(JavadocMessageSend messageSend, BlockScope scope) { 227 } 229 public void endVisit(JavadocMessageSend messageSend, ClassScope scope) { 230 } 232 public void endVisit(JavadocQualifiedTypeReference typeRef, BlockScope scope) { 233 } 235 public void endVisit(JavadocQualifiedTypeReference typeRef, ClassScope scope) { 236 } 238 public void endVisit(JavadocReturnStatement statement, BlockScope scope) { 239 } 241 public void endVisit(JavadocReturnStatement statement, ClassScope scope) { 242 } 244 public void endVisit(JavadocSingleNameReference argument, BlockScope scope) { 245 } 247 public void endVisit(JavadocSingleNameReference argument, ClassScope scope) { 248 } 250 public void endVisit(JavadocSingleTypeReference typeRef, BlockScope scope) { 251 } 253 public void endVisit(JavadocSingleTypeReference typeRef, ClassScope scope) { 254 } 256 public void endVisit(LabeledStatement labeledStatement, BlockScope scope) { 257 } 259 public void endVisit(LocalDeclaration localDeclaration, BlockScope scope) { 260 } 262 public void endVisit(LongLiteral longLiteral, BlockScope scope) { 263 } 265 270 public void endVisit(MarkerAnnotation annotation, BlockScope scope) { 271 } 273 277 public void endVisit(MemberValuePair pair, BlockScope scope) { 278 } 280 public void endVisit(MessageSend messageSend, BlockScope scope) { 281 } 283 public void endVisit(MethodDeclaration methodDeclaration, ClassScope scope) { 284 } 286 public void endVisit(StringLiteralConcatenation literal, BlockScope scope) { 287 } 289 294 public void endVisit(NormalAnnotation annotation, BlockScope scope) { 295 } 297 public void endVisit(NullLiteral nullLiteral, BlockScope scope) { 298 } 300 public void endVisit(OR_OR_Expression or_or_Expression, BlockScope scope) { 301 } 303 public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) { 304 } 306 public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) { 307 } 309 public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) { 310 } 312 public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) { 313 } 315 public void endVisit(PostfixExpression postfixExpression, BlockScope scope) { 316 } 318 public void endVisit(PrefixExpression prefixExpression, BlockScope scope) { 319 } 321 public void endVisit( 322 QualifiedAllocationExpression qualifiedAllocationExpression, 323 BlockScope scope) { 324 } 326 public void endVisit( 327 QualifiedNameReference qualifiedNameReference, 328 BlockScope scope) { 329 } 331 public void endVisit( 332 QualifiedNameReference qualifiedNameReference, 333 ClassScope scope) { 334 } 336 public void endVisit( 337 QualifiedSuperReference qualifiedSuperReference, 338 BlockScope scope) { 339 } 341 public void endVisit( 342 QualifiedSuperReference qualifiedSuperReference, 343 ClassScope scope) { 344 } 346 public void endVisit( 347 QualifiedThisReference qualifiedThisReference, 348 BlockScope scope) { 349 } 351 public void endVisit( 352 QualifiedThisReference qualifiedThisReference, 353 ClassScope scope) { 354 } 356 public void endVisit( 357 QualifiedTypeReference qualifiedTypeReference, 358 BlockScope scope) { 359 } 361 public void endVisit( 362 QualifiedTypeReference qualifiedTypeReference, 363 ClassScope scope) { 364 } 366 public void endVisit(ReturnStatement returnStatement, BlockScope scope) { 367 } 369 374 public void endVisit(SingleMemberAnnotation annotation, BlockScope scope) { 375 } 377 public void endVisit( 378 SingleNameReference singleNameReference, 379 BlockScope scope) { 380 } 382 public void endVisit( 383 SingleNameReference singleNameReference, 384 ClassScope scope) { 385 } 387 public void endVisit( 388 SingleTypeReference singleTypeReference, 389 BlockScope scope) { 390 } 392 public void endVisit( 393 SingleTypeReference singleTypeReference, 394 ClassScope scope) { 395 } 397 public void endVisit(StringLiteral stringLiteral, BlockScope scope) { 398 } 400 public void endVisit(SuperReference superReference, BlockScope scope) { 401 } 403 public void endVisit(SwitchStatement switchStatement, BlockScope scope) { 404 } 406 public void endVisit( 407 SynchronizedStatement synchronizedStatement, 408 BlockScope scope) { 409 } 411 public void endVisit(ThisReference thisReference, BlockScope scope) { 412 } 414 public void endVisit(ThisReference thisReference, ClassScope scope) { 415 } 417 public void endVisit(ThrowStatement throwStatement, BlockScope scope) { 418 } 420 public void endVisit(TrueLiteral trueLiteral, BlockScope scope) { 421 } 423 public void endVisit(TryStatement tryStatement, BlockScope scope) { 424 } 426 public void endVisit( 427 TypeDeclaration localTypeDeclaration, 428 BlockScope scope) { 429 } 431 public void endVisit( 432 TypeDeclaration memberTypeDeclaration, 433 ClassScope scope) { 434 } 436 public void endVisit( 437 TypeDeclaration typeDeclaration, 438 CompilationUnitScope scope) { 439 } 441 public void endVisit(TypeParameter typeParameter, BlockScope scope) { 442 } 444 public void endVisit(TypeParameter typeParameter, ClassScope scope) { 445 } 447 public void endVisit(UnaryExpression unaryExpression, BlockScope scope) { 448 } 450 public void endVisit(WhileStatement whileStatement, BlockScope scope) { 451 } 453 public void endVisit(Wildcard wildcard, BlockScope scope) { 454 } 456 public void endVisit(Wildcard wildcard, ClassScope scope) { 457 } 459 public boolean visit( 460 AllocationExpression allocationExpression, 461 BlockScope scope) { 462 return true; } 464 public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope) { 465 return true; } 467 public boolean visit( 468 AnnotationMethodDeclaration annotationTypeDeclaration, 469 ClassScope classScope) { 470 return true; } 472 public boolean visit(Argument argument, BlockScope scope) { 473 return true; } 475 public boolean visit(Argument argument, ClassScope scope) { 476 return true; } 478 public boolean visit( 479 ArrayAllocationExpression arrayAllocationExpression, 480 BlockScope scope) { 481 return true; } 483 public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) { 484 return true; } 486 public boolean visit( 487 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 488 BlockScope scope) { 489 return true; } 491 public boolean visit( 492 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 493 ClassScope scope) { 494 return true; } 496 public boolean visit(ArrayReference arrayReference, BlockScope scope) { 497 return true; } 499 public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 500 return true; } 502 public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 503 return true; } 505 public boolean visit(AssertStatement assertStatement, BlockScope scope) { 506 return true; } 508 public boolean visit(Assignment assignment, BlockScope scope) { 509 return true; } 511 public boolean visit(BinaryExpression binaryExpression, BlockScope scope) { 512 return true; } 514 public boolean visit(Block block, BlockScope scope) { 515 return true; } 517 public boolean visit(BreakStatement breakStatement, BlockScope scope) { 518 return true; } 520 public boolean visit(CaseStatement caseStatement, BlockScope scope) { 521 return true; } 523 public boolean visit(CastExpression castExpression, BlockScope scope) { 524 return true; } 526 public boolean visit(CharLiteral charLiteral, BlockScope scope) { 527 return true; } 529 public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) { 530 return true; } 532 public boolean visit(Clinit clinit, ClassScope scope) { 533 return true; } 535 public boolean visit( 536 CompilationUnitDeclaration compilationUnitDeclaration, 537 CompilationUnitScope scope) { 538 return true; } 540 public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope) { 541 return true; } 543 public boolean visit( 544 ConditionalExpression conditionalExpression, 545 BlockScope scope) { 546 return true; } 548 public boolean visit( 549 ConstructorDeclaration constructorDeclaration, 550 ClassScope scope) { 551 return true; } 553 public boolean visit(ContinueStatement continueStatement, BlockScope scope) { 554 return true; } 556 public boolean visit(DoStatement doStatement, BlockScope scope) { 557 return true; } 559 public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope) { 560 return true; } 562 public boolean visit(EmptyStatement emptyStatement, BlockScope scope) { 563 return true; } 565 public boolean visit(EqualExpression equalExpression, BlockScope scope) { 566 return true; } 568 public boolean visit( 569 ExplicitConstructorCall explicitConstructor, 570 BlockScope scope) { 571 return true; } 573 public boolean visit( 574 ExtendedStringLiteral extendedStringLiteral, 575 BlockScope scope) { 576 return true; } 578 public boolean visit(FalseLiteral falseLiteral, BlockScope scope) { 579 return true; } 581 public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) { 582 return true; } 584 public boolean visit(FieldReference fieldReference, BlockScope scope) { 585 return true; } 587 public boolean visit(FieldReference fieldReference, ClassScope scope) { 588 return true; } 590 public boolean visit(FloatLiteral floatLiteral, BlockScope scope) { 591 return true; } 593 public boolean visit(ForeachStatement forStatement, BlockScope scope) { 594 return true; } 596 public boolean visit(ForStatement forStatement, BlockScope scope) { 597 return true; } 599 public boolean visit(IfStatement ifStatement, BlockScope scope) { 600 return true; } 602 public boolean visit(ImportReference importRef, CompilationUnitScope scope) { 603 return true; } 605 public boolean visit(Initializer initializer, MethodScope scope) { 606 return true; } 608 public boolean visit( 609 InstanceOfExpression instanceOfExpression, 610 BlockScope scope) { 611 return true; } 613 public boolean visit(IntLiteral intLiteral, BlockScope scope) { 614 return true; } 616 public boolean visit(Javadoc javadoc, BlockScope scope) { 617 return true; } 619 public boolean visit(Javadoc javadoc, ClassScope scope) { 620 return true; } 622 public boolean visit(JavadocAllocationExpression expression, BlockScope scope) { 623 return true; } 625 public boolean visit(JavadocAllocationExpression expression, ClassScope scope) { 626 return true; } 628 public boolean visit(JavadocArgumentExpression expression, BlockScope scope) { 629 return true; } 631 public boolean visit(JavadocArgumentExpression expression, ClassScope scope) { 632 return true; } 634 public boolean visit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) { 635 return true; } 637 public boolean visit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) { 638 return true; } 640 public boolean visit(JavadocArraySingleTypeReference typeRef, BlockScope scope) { 641 return true; } 643 public boolean visit(JavadocArraySingleTypeReference typeRef, ClassScope scope) { 644 return true; } 646 public boolean visit(JavadocFieldReference fieldRef, BlockScope scope) { 647 return true; } 649 public boolean visit(JavadocFieldReference fieldRef, ClassScope scope) { 650 return true; } 652 public boolean visit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) { 653 return true; } 655 public boolean visit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) { 656 return true; } 658 public boolean visit(JavadocMessageSend messageSend, BlockScope scope) { 659 return true; } 661 public boolean visit(JavadocMessageSend messageSend, ClassScope scope) { 662 return true; } 664 public boolean visit(JavadocQualifiedTypeReference typeRef, BlockScope scope) { 665 return true; } 667 public boolean visit(JavadocQualifiedTypeReference typeRef, ClassScope scope) { 668 return true; } 670 public boolean visit(JavadocReturnStatement statement, BlockScope scope) { 671 return true; } 673 public boolean visit(JavadocReturnStatement statement, ClassScope scope) { 674 return true; } 676 public boolean visit(JavadocSingleNameReference argument, BlockScope scope) { 677 return true; } 679 public boolean visit(JavadocSingleNameReference argument, ClassScope scope) { 680 return true; } 682 public boolean visit(JavadocSingleTypeReference typeRef, BlockScope scope) { 683 return true; } 685 public boolean visit(JavadocSingleTypeReference typeRef, ClassScope scope) { 686 return true; } 688 public boolean visit(LabeledStatement labeledStatement, BlockScope scope) { 689 return true; } 691 public boolean visit(LocalDeclaration localDeclaration, BlockScope scope) { 692 return true; } 694 public boolean visit(LongLiteral longLiteral, BlockScope scope) { 695 return true; } 697 702 public boolean visit(MarkerAnnotation annotation, BlockScope scope) { 703 return true; 704 } 705 710 public boolean visit(MemberValuePair pair, BlockScope scope) { 711 return true; 712 } 713 public boolean visit(MessageSend messageSend, BlockScope scope) { 714 return true; } 716 public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) { 717 return true; } 719 public boolean visit( 720 StringLiteralConcatenation literal, 721 BlockScope scope) { 722 return true; } 724 729 public boolean visit(NormalAnnotation annotation, BlockScope scope) { 730 return true; 731 } 732 public boolean visit(NullLiteral nullLiteral, BlockScope scope) { 733 return true; } 735 public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) { 736 return true; } 738 public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) { 739 return true; } 741 public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) { 742 return true; } 744 public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) { 745 return true; } 747 public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) { 748 return true; } 750 public boolean visit(PostfixExpression postfixExpression, BlockScope scope) { 751 return true; } 753 public boolean visit(PrefixExpression prefixExpression, BlockScope scope) { 754 return true; } 756 public boolean visit( 757 QualifiedAllocationExpression qualifiedAllocationExpression, 758 BlockScope scope) { 759 return true; } 761 public boolean visit( 762 QualifiedNameReference qualifiedNameReference, 763 BlockScope scope) { 764 return true; } 766 public boolean visit( 767 QualifiedNameReference qualifiedNameReference, 768 ClassScope scope) { 769 return true; } 771 public boolean visit( 772 QualifiedSuperReference qualifiedSuperReference, 773 BlockScope scope) { 774 return true; } 776 public boolean visit( 777 QualifiedSuperReference qualifiedSuperReference, 778 ClassScope scope) { 779 return true; } 781 public boolean visit( 782 QualifiedThisReference qualifiedThisReference, 783 BlockScope scope) { 784 return true; } 786 public boolean visit( 787 QualifiedThisReference qualifiedThisReference, 788 ClassScope scope) { 789 return true; } 791 public boolean visit( 792 QualifiedTypeReference qualifiedTypeReference, 793 BlockScope scope) { 794 return true; } 796 public boolean visit( 797 QualifiedTypeReference qualifiedTypeReference, 798 ClassScope scope) { 799 return true; } 801 public boolean visit(ReturnStatement returnStatement, BlockScope scope) { 802 return true; } 804 809 public boolean visit(SingleMemberAnnotation annotation, BlockScope scope) { 810 return true; 811 } 812 public boolean visit( 813 SingleNameReference singleNameReference, 814 BlockScope scope) { 815 return true; } 817 public boolean visit( 818 SingleNameReference singleNameReference, 819 ClassScope scope) { 820 return true; } 822 public boolean visit( 823 SingleTypeReference singleTypeReference, 824 BlockScope scope) { 825 return true; } 827 public boolean visit( 828 SingleTypeReference singleTypeReference, 829 ClassScope scope) { 830 return true; } 832 public boolean visit(StringLiteral stringLiteral, BlockScope scope) { 833 return true; } 835 public boolean visit(SuperReference superReference, BlockScope scope) { 836 return true; } 838 public boolean visit(SwitchStatement switchStatement, BlockScope scope) { 839 return true; } 841 public boolean visit( 842 SynchronizedStatement synchronizedStatement, 843 BlockScope scope) { 844 return true; } 846 public boolean visit(ThisReference thisReference, BlockScope scope) { 847 return true; } 849 public boolean visit(ThisReference thisReference, ClassScope scope) { 850 return true; } 852 public boolean visit(ThrowStatement throwStatement, BlockScope scope) { 853 return true; } 855 public boolean visit(TrueLiteral trueLiteral, BlockScope scope) { 856 return true; } 858 public boolean visit(TryStatement tryStatement, BlockScope scope) { 859 return true; } 861 public boolean visit( 862 TypeDeclaration localTypeDeclaration, 863 BlockScope scope) { 864 return true; } 866 public boolean visit( 867 TypeDeclaration memberTypeDeclaration, 868 ClassScope scope) { 869 return true; } 871 public boolean visit( 872 TypeDeclaration typeDeclaration, 873 CompilationUnitScope scope) { 874 return true; } 876 public boolean visit(TypeParameter typeParameter, BlockScope scope) { 877 return true; } 879 public boolean visit(TypeParameter typeParameter, ClassScope scope) { 880 return true; } 882 public boolean visit(UnaryExpression unaryExpression, BlockScope scope) { 883 return true; } 885 public boolean visit(WhileStatement whileStatement, BlockScope scope) { 886 return true; } 888 public boolean visit(Wildcard wildcard, BlockScope scope) { 889 return true; } 891 public boolean visit(Wildcard wildcard, ClassScope scope) { 892 return true; } 894 } 895 | Popular Tags |