1 /******************************************************************************* 2 * Copyright (c) 2000, 2003 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Common Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/cpl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package net.sourceforge.phpdt.internal.compiler; 12 13 import net.sourceforge.phpdt.core.compiler.IProblem; 14 import net.sourceforge.phpdt.internal.compiler.ast.AND_AND_Expression; 15 import net.sourceforge.phpdt.internal.compiler.ast.AllocationExpression; 16 import net.sourceforge.phpdt.internal.compiler.ast.AnonymousLocalTypeDeclaration; 17 import net.sourceforge.phpdt.internal.compiler.ast.Argument; 18 import net.sourceforge.phpdt.internal.compiler.ast.ArrayAllocationExpression; 19 import net.sourceforge.phpdt.internal.compiler.ast.ArrayInitializer; 20 import net.sourceforge.phpdt.internal.compiler.ast.ArrayQualifiedTypeReference; 21 import net.sourceforge.phpdt.internal.compiler.ast.ArrayReference; 22 import net.sourceforge.phpdt.internal.compiler.ast.ArrayTypeReference; 23 import net.sourceforge.phpdt.internal.compiler.ast.AssertStatement; 24 import net.sourceforge.phpdt.internal.compiler.ast.Assignment; 25 import net.sourceforge.phpdt.internal.compiler.ast.BinaryExpression; 26 import net.sourceforge.phpdt.internal.compiler.ast.Block; 27 import net.sourceforge.phpdt.internal.compiler.ast.BreakStatement; 28 import net.sourceforge.phpdt.internal.compiler.ast.CaseStatement; 29 import net.sourceforge.phpdt.internal.compiler.ast.CastExpression; 30 import net.sourceforge.phpdt.internal.compiler.ast.Clinit; 31 import net.sourceforge.phpdt.internal.compiler.ast.CompilationUnitDeclaration; 32 import net.sourceforge.phpdt.internal.compiler.ast.CompoundAssignment; 33 import net.sourceforge.phpdt.internal.compiler.ast.ConditionalExpression; 34 import net.sourceforge.phpdt.internal.compiler.ast.ConstructorDeclaration; 35 import net.sourceforge.phpdt.internal.compiler.ast.ContinueStatement; 36 import net.sourceforge.phpdt.internal.compiler.ast.DefaultCase; 37 import net.sourceforge.phpdt.internal.compiler.ast.DoStatement; 38 import net.sourceforge.phpdt.internal.compiler.ast.DoubleLiteral; 39 import net.sourceforge.phpdt.internal.compiler.ast.EmptyStatement; 40 import net.sourceforge.phpdt.internal.compiler.ast.EqualExpression; 41 import net.sourceforge.phpdt.internal.compiler.ast.ExplicitConstructorCall; 42 import net.sourceforge.phpdt.internal.compiler.ast.ExtendedStringLiteral; 43 import net.sourceforge.phpdt.internal.compiler.ast.FalseLiteral; 44 import net.sourceforge.phpdt.internal.compiler.ast.FieldDeclaration; 45 import net.sourceforge.phpdt.internal.compiler.ast.FieldReference; 46 import net.sourceforge.phpdt.internal.compiler.ast.FloatLiteral; 47 import net.sourceforge.phpdt.internal.compiler.ast.ForStatement; 48 import net.sourceforge.phpdt.internal.compiler.ast.IfStatement; 49 import net.sourceforge.phpdt.internal.compiler.ast.ImportReference; 50 import net.sourceforge.phpdt.internal.compiler.ast.Initializer; 51 import net.sourceforge.phpdt.internal.compiler.ast.InstanceOfExpression; 52 import net.sourceforge.phpdt.internal.compiler.ast.IntLiteral; 53 import net.sourceforge.phpdt.internal.compiler.ast.LabeledStatement; 54 import net.sourceforge.phpdt.internal.compiler.ast.LocalDeclaration; 55 import net.sourceforge.phpdt.internal.compiler.ast.LocalTypeDeclaration; 56 import net.sourceforge.phpdt.internal.compiler.ast.LongLiteral; 57 import net.sourceforge.phpdt.internal.compiler.ast.MemberTypeDeclaration; 58 import net.sourceforge.phpdt.internal.compiler.ast.MessageSend; 59 import net.sourceforge.phpdt.internal.compiler.ast.MethodDeclaration; 60 import net.sourceforge.phpdt.internal.compiler.ast.NullLiteral; 61 import net.sourceforge.phpdt.internal.compiler.ast.OR_OR_Expression; 62 import net.sourceforge.phpdt.internal.compiler.ast.PostfixExpression; 63 import net.sourceforge.phpdt.internal.compiler.ast.PrefixExpression; 64 import net.sourceforge.phpdt.internal.compiler.ast.QualifiedAllocationExpression; 65 import net.sourceforge.phpdt.internal.compiler.ast.QualifiedNameReference; 66 import net.sourceforge.phpdt.internal.compiler.ast.QualifiedSuperReference; 67 import net.sourceforge.phpdt.internal.compiler.ast.QualifiedThisReference; 68 import net.sourceforge.phpdt.internal.compiler.ast.QualifiedTypeReference; 69 import net.sourceforge.phpdt.internal.compiler.ast.ReturnStatement; 70 import net.sourceforge.phpdt.internal.compiler.ast.SingleNameReference; 71 import net.sourceforge.phpdt.internal.compiler.ast.SingleTypeReference; 72 import net.sourceforge.phpdt.internal.compiler.ast.StringLiteral; 73 import net.sourceforge.phpdt.internal.compiler.ast.SuperReference; 74 import net.sourceforge.phpdt.internal.compiler.ast.SwitchStatement; 75 import net.sourceforge.phpdt.internal.compiler.ast.ThisReference; 76 import net.sourceforge.phpdt.internal.compiler.ast.ThrowStatement; 77 import net.sourceforge.phpdt.internal.compiler.ast.TrueLiteral; 78 import net.sourceforge.phpdt.internal.compiler.ast.TryStatement; 79 import net.sourceforge.phpdt.internal.compiler.ast.TypeDeclaration; 80 import net.sourceforge.phpdt.internal.compiler.ast.UnaryExpression; 81 import net.sourceforge.phpdt.internal.compiler.ast.WhileStatement; 82 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope; 83 import net.sourceforge.phpdt.internal.compiler.lookup.ClassScope; 84 import net.sourceforge.phpdt.internal.compiler.lookup.CompilationUnitScope; 85 import net.sourceforge.phpdt.internal.compiler.lookup.MethodScope; 86 87 /** 88 * An adapter class for interating through the parse tree. 89 */ 90 91 public class AbstractSyntaxTreeVisitorAdapter implements 92 IAbstractSyntaxTreeVisitor { 93 acceptProblem(IProblem problem)94 public void acceptProblem(IProblem problem) { 95 } 96 endVisit(AllocationExpression allocationExpression, BlockScope scope)97 public void endVisit(AllocationExpression allocationExpression, 98 BlockScope scope) { 99 } 100 endVisit(AND_AND_Expression and_and_Expression, BlockScope scope)101 public void endVisit(AND_AND_Expression and_and_Expression, BlockScope scope) { 102 } 103 endVisit( AnonymousLocalTypeDeclaration anonymousTypeDeclaration, BlockScope scope)104 public void endVisit( 105 AnonymousLocalTypeDeclaration anonymousTypeDeclaration, 106 BlockScope scope) { 107 } 108 endVisit(Argument argument, BlockScope scope)109 public void endVisit(Argument argument, BlockScope scope) { 110 } 111 endVisit(ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)112 public void endVisit(ArrayAllocationExpression arrayAllocationExpression, 113 BlockScope scope) { 114 } 115 endVisit(ArrayInitializer arrayInitializer, BlockScope scope)116 public void endVisit(ArrayInitializer arrayInitializer, BlockScope scope) { 117 } 118 endVisit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)119 public void endVisit( 120 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 121 BlockScope scope) { 122 } 123 endVisit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)124 public void endVisit( 125 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 126 ClassScope scope) { 127 } 128 endVisit(ArrayReference arrayReference, BlockScope scope)129 public void endVisit(ArrayReference arrayReference, BlockScope scope) { 130 } 131 endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope)132 public void endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 133 } 134 endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope)135 public void endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 136 } 137 endVisit(Assignment assignment, BlockScope scope)138 public void endVisit(Assignment assignment, BlockScope scope) { 139 } 140 endVisit(AssertStatement assertStatement, BlockScope scope)141 public void endVisit(AssertStatement assertStatement, BlockScope scope) { 142 } 143 endVisit(BinaryExpression binaryExpression, BlockScope scope)144 public void endVisit(BinaryExpression binaryExpression, BlockScope scope) { 145 } 146 endVisit(Block block, BlockScope scope)147 public void endVisit(Block block, BlockScope scope) { 148 } 149 endVisit(BreakStatement breakStatement, BlockScope scope)150 public void endVisit(BreakStatement breakStatement, BlockScope scope) { 151 } 152 endVisit(CaseStatement caseStatement, BlockScope scope)153 public void endVisit(CaseStatement caseStatement, BlockScope scope) { 154 } 155 endVisit(CastExpression castExpression, BlockScope scope)156 public void endVisit(CastExpression castExpression, BlockScope scope) { 157 } 158 endVisit(Clinit clinit, ClassScope scope)159 public void endVisit(Clinit clinit, ClassScope scope) { 160 } 161 endVisit(CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)162 public void endVisit(CompilationUnitDeclaration compilationUnitDeclaration, 163 CompilationUnitScope scope) { 164 } 165 endVisit(CompoundAssignment compoundAssignment, BlockScope scope)166 public void endVisit(CompoundAssignment compoundAssignment, BlockScope scope) { 167 } 168 endVisit(ConditionalExpression conditionalExpression, BlockScope scope)169 public void endVisit(ConditionalExpression conditionalExpression, 170 BlockScope scope) { 171 } 172 endVisit(ConstructorDeclaration constructorDeclaration, ClassScope scope)173 public void endVisit(ConstructorDeclaration constructorDeclaration, 174 ClassScope scope) { 175 } 176 endVisit(ContinueStatement continueStatement, BlockScope scope)177 public void endVisit(ContinueStatement continueStatement, BlockScope scope) { 178 } 179 endVisit(DefaultCase defaultCaseStatement, BlockScope scope)180 public void endVisit(DefaultCase defaultCaseStatement, BlockScope scope) { 181 } 182 endVisit(DoStatement doStatement, BlockScope scope)183 public void endVisit(DoStatement doStatement, BlockScope scope) { 184 } 185 endVisit(DoubleLiteral doubleLiteral, BlockScope scope)186 public void endVisit(DoubleLiteral doubleLiteral, BlockScope scope) { 187 } 188 endVisit(EqualExpression equalExpression, BlockScope scope)189 public void endVisit(EqualExpression equalExpression, BlockScope scope) { 190 } 191 endVisit(ExplicitConstructorCall explicitConstructor, BlockScope scope)192 public void endVisit(ExplicitConstructorCall explicitConstructor, 193 BlockScope scope) { 194 } 195 endVisit(ExtendedStringLiteral extendedStringLiteral, BlockScope scope)196 public void endVisit(ExtendedStringLiteral extendedStringLiteral, 197 BlockScope scope) { 198 } 199 endVisit(FalseLiteral falseLiteral, BlockScope scope)200 public void endVisit(FalseLiteral falseLiteral, BlockScope scope) { 201 } 202 endVisit(FieldDeclaration fieldDeclaration, MethodScope scope)203 public void endVisit(FieldDeclaration fieldDeclaration, MethodScope scope) { 204 } 205 endVisit(FieldReference fieldReference, BlockScope scope)206 public void endVisit(FieldReference fieldReference, BlockScope scope) { 207 } 208 endVisit(FloatLiteral floatLiteral, BlockScope scope)209 public void endVisit(FloatLiteral floatLiteral, BlockScope scope) { 210 } 211 endVisit(EmptyStatement emptyStatement, BlockScope scope)212 public void endVisit(EmptyStatement emptyStatement, BlockScope scope) { 213 } 214 endVisit(ForStatement forStatement, BlockScope scope)215 public void endVisit(ForStatement forStatement, BlockScope scope) { 216 } 217 endVisit(IfStatement ifStatement, BlockScope scope)218 public void endVisit(IfStatement ifStatement, BlockScope scope) { 219 } 220 endVisit(ImportReference importRef, CompilationUnitScope scope)221 public void endVisit(ImportReference importRef, CompilationUnitScope scope) { 222 } 223 endVisit(Initializer initializer, MethodScope scope)224 public void endVisit(Initializer initializer, MethodScope scope) { 225 } 226 endVisit(InstanceOfExpression instanceOfExpression, BlockScope scope)227 public void endVisit(InstanceOfExpression instanceOfExpression, 228 BlockScope scope) { 229 } 230 endVisit(IntLiteral intLiteral, BlockScope scope)231 public void endVisit(IntLiteral intLiteral, BlockScope scope) { 232 } 233 endVisit(LabeledStatement labeledStatement, BlockScope scope)234 public void endVisit(LabeledStatement labeledStatement, BlockScope scope) { 235 } 236 endVisit(LocalDeclaration localDeclaration, BlockScope scope)237 public void endVisit(LocalDeclaration localDeclaration, BlockScope scope) { 238 } 239 endVisit(LongLiteral longLiteral, BlockScope scope)240 public void endVisit(LongLiteral longLiteral, BlockScope scope) { 241 } 242 endVisit(MemberTypeDeclaration memberTypeDeclaration, ClassScope scope)243 public void endVisit(MemberTypeDeclaration memberTypeDeclaration, 244 ClassScope scope) { 245 } 246 endVisit(MessageSend messageSend, BlockScope scope)247 public void endVisit(MessageSend messageSend, BlockScope scope) { 248 } 249 endVisit(MethodDeclaration methodDeclaration, ClassScope scope)250 public void endVisit(MethodDeclaration methodDeclaration, ClassScope scope) { 251 } 252 endVisit(NullLiteral nullLiteral, BlockScope scope)253 public void endVisit(NullLiteral nullLiteral, BlockScope scope) { 254 } 255 endVisit(OR_OR_Expression or_or_Expression, BlockScope scope)256 public void endVisit(OR_OR_Expression or_or_Expression, BlockScope scope) { 257 } 258 endVisit(PostfixExpression postfixExpression, BlockScope scope)259 public void endVisit(PostfixExpression postfixExpression, BlockScope scope) { 260 } 261 endVisit(PrefixExpression prefixExpression, BlockScope scope)262 public void endVisit(PrefixExpression prefixExpression, BlockScope scope) { 263 } 264 endVisit( QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)265 public void endVisit( 266 QualifiedAllocationExpression qualifiedAllocationExpression, 267 BlockScope scope) { 268 } 269 endVisit(QualifiedNameReference qualifiedNameReference, BlockScope scope)270 public void endVisit(QualifiedNameReference qualifiedNameReference, 271 BlockScope scope) { 272 } 273 endVisit(QualifiedSuperReference qualifiedSuperReference, BlockScope scope)274 public void endVisit(QualifiedSuperReference qualifiedSuperReference, 275 BlockScope scope) { 276 } 277 endVisit(QualifiedThisReference qualifiedThisReference, BlockScope scope)278 public void endVisit(QualifiedThisReference qualifiedThisReference, 279 BlockScope scope) { 280 } 281 endVisit(QualifiedTypeReference qualifiedTypeReference, BlockScope scope)282 public void endVisit(QualifiedTypeReference qualifiedTypeReference, 283 BlockScope scope) { 284 } 285 endVisit(QualifiedTypeReference qualifiedTypeReference, ClassScope scope)286 public void endVisit(QualifiedTypeReference qualifiedTypeReference, 287 ClassScope scope) { 288 } 289 endVisit(ReturnStatement returnStatement, BlockScope scope)290 public void endVisit(ReturnStatement returnStatement, BlockScope scope) { 291 } 292 endVisit(SingleNameReference singleNameReference, BlockScope scope)293 public void endVisit(SingleNameReference singleNameReference, 294 BlockScope scope) { 295 } 296 endVisit(SingleTypeReference singleTypeReference, BlockScope scope)297 public void endVisit(SingleTypeReference singleTypeReference, 298 BlockScope scope) { 299 } 300 endVisit(SingleTypeReference singleTypeReference, ClassScope scope)301 public void endVisit(SingleTypeReference singleTypeReference, 302 ClassScope scope) { 303 } 304 endVisit(StringLiteral stringLiteral, BlockScope scope)305 public void endVisit(StringLiteral stringLiteral, BlockScope scope) { 306 } 307 endVisit(SuperReference superReference, BlockScope scope)308 public void endVisit(SuperReference superReference, BlockScope scope) { 309 } 310 endVisit(SwitchStatement switchStatement, BlockScope scope)311 public void endVisit(SwitchStatement switchStatement, BlockScope scope) { 312 } 313 endVisit(ThisReference thisReference, BlockScope scope)314 public void endVisit(ThisReference thisReference, BlockScope scope) { 315 } 316 endVisit(ThrowStatement throwStatement, BlockScope scope)317 public void endVisit(ThrowStatement throwStatement, BlockScope scope) { 318 } 319 endVisit(TrueLiteral trueLiteral, BlockScope scope)320 public void endVisit(TrueLiteral trueLiteral, BlockScope scope) { 321 } 322 endVisit(TryStatement tryStatement, BlockScope scope)323 public void endVisit(TryStatement tryStatement, BlockScope scope) { 324 } 325 endVisit(TypeDeclaration typeDeclaration, CompilationUnitScope scope)326 public void endVisit(TypeDeclaration typeDeclaration, 327 CompilationUnitScope scope) { 328 } 329 endVisit(UnaryExpression unaryExpression, BlockScope scope)330 public void endVisit(UnaryExpression unaryExpression, BlockScope scope) { 331 } 332 endVisit(WhileStatement whileStatement, BlockScope scope)333 public void endVisit(WhileStatement whileStatement, BlockScope scope) { 334 } 335 visit(AllocationExpression allocationExpression, BlockScope scope)336 public boolean visit(AllocationExpression allocationExpression, 337 BlockScope scope) { 338 return true; 339 } 340 visit(AND_AND_Expression and_and_Expression, BlockScope scope)341 public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope) { 342 return true; 343 } 344 visit( AnonymousLocalTypeDeclaration anonymousTypeDeclaration, BlockScope scope)345 public boolean visit( 346 AnonymousLocalTypeDeclaration anonymousTypeDeclaration, 347 BlockScope scope) { 348 return true; 349 } 350 visit(Argument argument, BlockScope scope)351 public boolean visit(Argument argument, BlockScope scope) { 352 return true; 353 } 354 visit(ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)355 public boolean visit(ArrayAllocationExpression arrayAllocationExpression, 356 BlockScope scope) { 357 return true; 358 } 359 visit(ArrayInitializer arrayInitializer, BlockScope scope)360 public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) { 361 return true; 362 } 363 visit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)364 public boolean visit( 365 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 366 BlockScope scope) { 367 return true; 368 } 369 visit( ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)370 public boolean visit( 371 ArrayQualifiedTypeReference arrayQualifiedTypeReference, 372 ClassScope scope) { 373 return true; 374 } 375 visit(ArrayReference arrayReference, BlockScope scope)376 public boolean visit(ArrayReference arrayReference, BlockScope scope) { 377 return true; 378 } 379 visit(ArrayTypeReference arrayTypeReference, BlockScope scope)380 public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope) { 381 return true; 382 } 383 visit(ArrayTypeReference arrayTypeReference, ClassScope scope)384 public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope) { 385 return true; 386 } 387 visit(Assignment assignment, BlockScope scope)388 public boolean visit(Assignment assignment, BlockScope scope) { 389 return true; 390 } 391 visit(AssertStatement assertStatement, BlockScope scope)392 public boolean visit(AssertStatement assertStatement, BlockScope scope) { 393 return true; 394 } 395 visit(BinaryExpression binaryExpression, BlockScope scope)396 public boolean visit(BinaryExpression binaryExpression, BlockScope scope) { 397 return true; 398 } 399 visit(Block block, BlockScope scope)400 public boolean visit(Block block, BlockScope scope) { 401 return true; 402 } 403 visit(BreakStatement breakStatement, BlockScope scope)404 public boolean visit(BreakStatement breakStatement, BlockScope scope) { 405 return true; 406 } 407 visit(CaseStatement caseStatement, BlockScope scope)408 public boolean visit(CaseStatement caseStatement, BlockScope scope) { 409 return true; 410 } 411 visit(CastExpression castExpression, BlockScope scope)412 public boolean visit(CastExpression castExpression, BlockScope scope) { 413 return true; 414 } 415 visit(Clinit clinit, ClassScope scope)416 public boolean visit(Clinit clinit, ClassScope scope) { 417 return true; 418 } 419 visit(CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)420 public boolean visit(CompilationUnitDeclaration compilationUnitDeclaration, 421 CompilationUnitScope scope) { 422 return true; 423 } 424 visit(CompoundAssignment compoundAssignment, BlockScope scope)425 public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope) { 426 return true; 427 } 428 visit(ConditionalExpression conditionalExpression, BlockScope scope)429 public boolean visit(ConditionalExpression conditionalExpression, 430 BlockScope scope) { 431 return true; 432 } 433 visit(ConstructorDeclaration constructorDeclaration, ClassScope scope)434 public boolean visit(ConstructorDeclaration constructorDeclaration, 435 ClassScope scope) { 436 return true; 437 } 438 visit(ContinueStatement continueStatement, BlockScope scope)439 public boolean visit(ContinueStatement continueStatement, BlockScope scope) { 440 return true; 441 } 442 visit(DefaultCase defaultCaseStatement, BlockScope scope)443 public boolean visit(DefaultCase defaultCaseStatement, BlockScope scope) { 444 return true; 445 } 446 visit(DoStatement doStatement, BlockScope scope)447 public boolean visit(DoStatement doStatement, BlockScope scope) { 448 return true; 449 } 450 visit(DoubleLiteral doubleLiteral, BlockScope scope)451 public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope) { 452 return true; 453 } 454 visit(EqualExpression equalExpression, BlockScope scope)455 public boolean visit(EqualExpression equalExpression, BlockScope scope) { 456 return true; 457 } 458 visit(EmptyStatement emptyStatement, BlockScope scope)459 public boolean visit(EmptyStatement emptyStatement, BlockScope scope) { 460 return true; 461 } 462 visit(ExplicitConstructorCall explicitConstructor, BlockScope scope)463 public boolean visit(ExplicitConstructorCall explicitConstructor, 464 BlockScope scope) { 465 return true; 466 } 467 visit(ExtendedStringLiteral extendedStringLiteral, BlockScope scope)468 public boolean visit(ExtendedStringLiteral extendedStringLiteral, 469 BlockScope scope) { 470 return true; 471 } 472 visit(FalseLiteral falseLiteral, BlockScope scope)473 public boolean visit(FalseLiteral falseLiteral, BlockScope scope) { 474 return true; 475 } 476 visit(FieldDeclaration fieldDeclaration, MethodScope scope)477 public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) { 478 return true; 479 } 480 visit(FieldReference fieldReference, BlockScope scope)481 public boolean visit(FieldReference fieldReference, BlockScope scope) { 482 return true; 483 } 484 visit(FloatLiteral floatLiteral, BlockScope scope)485 public boolean visit(FloatLiteral floatLiteral, BlockScope scope) { 486 return true; 487 } 488 visit(ForStatement forStatement, BlockScope scope)489 public boolean visit(ForStatement forStatement, BlockScope scope) { 490 return true; 491 } 492 visit(IfStatement ifStatement, BlockScope scope)493 public boolean visit(IfStatement ifStatement, BlockScope scope) { 494 return true; 495 } 496 visit(ImportReference importRef, CompilationUnitScope scope)497 public boolean visit(ImportReference importRef, CompilationUnitScope scope) { 498 return true; 499 } 500 visit(Initializer initializer, MethodScope scope)501 public boolean visit(Initializer initializer, MethodScope scope) { 502 return true; 503 } 504 visit(InstanceOfExpression instanceOfExpression, BlockScope scope)505 public boolean visit(InstanceOfExpression instanceOfExpression, 506 BlockScope scope) { 507 return true; 508 } 509 visit(IntLiteral intLiteral, BlockScope scope)510 public boolean visit(IntLiteral intLiteral, BlockScope scope) { 511 return true; 512 } 513 visit(LabeledStatement labeledStatement, BlockScope scope)514 public boolean visit(LabeledStatement labeledStatement, BlockScope scope) { 515 return true; 516 } 517 visit(LocalDeclaration localDeclaration, BlockScope scope)518 public boolean visit(LocalDeclaration localDeclaration, BlockScope scope) { 519 return true; 520 } 521 visit(LongLiteral longLiteral, BlockScope scope)522 public boolean visit(LongLiteral longLiteral, BlockScope scope) { 523 return true; 524 } 525 visit(MemberTypeDeclaration memberTypeDeclaration, ClassScope scope)526 public boolean visit(MemberTypeDeclaration memberTypeDeclaration, 527 ClassScope scope) { 528 return true; 529 } 530 visit(MessageSend messageSend, BlockScope scope)531 public boolean visit(MessageSend messageSend, BlockScope scope) { 532 return true; 533 } 534 visit(MethodDeclaration methodDeclaration, ClassScope scope)535 public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) { 536 return true; 537 } 538 visit(NullLiteral nullLiteral, BlockScope scope)539 public boolean visit(NullLiteral nullLiteral, BlockScope scope) { 540 return true; 541 } 542 visit(OR_OR_Expression or_or_Expression, BlockScope scope)543 public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) { 544 return true; 545 } 546 visit(PostfixExpression postfixExpression, BlockScope scope)547 public boolean visit(PostfixExpression postfixExpression, BlockScope scope) { 548 return true; 549 } 550 visit(PrefixExpression prefixExpression, BlockScope scope)551 public boolean visit(PrefixExpression prefixExpression, BlockScope scope) { 552 return true; 553 } 554 visit( QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)555 public boolean visit( 556 QualifiedAllocationExpression qualifiedAllocationExpression, 557 BlockScope scope) { 558 return true; 559 } 560 visit(QualifiedNameReference qualifiedNameReference, BlockScope scope)561 public boolean visit(QualifiedNameReference qualifiedNameReference, 562 BlockScope scope) { 563 return true; 564 } 565 visit(QualifiedSuperReference qualifiedSuperReference, BlockScope scope)566 public boolean visit(QualifiedSuperReference qualifiedSuperReference, 567 BlockScope scope) { 568 return true; 569 } 570 visit(QualifiedThisReference qualifiedThisReference, BlockScope scope)571 public boolean visit(QualifiedThisReference qualifiedThisReference, 572 BlockScope scope) { 573 return true; 574 } 575 visit(QualifiedTypeReference qualifiedTypeReference, BlockScope scope)576 public boolean visit(QualifiedTypeReference qualifiedTypeReference, 577 BlockScope scope) { 578 return true; 579 } 580 visit(QualifiedTypeReference qualifiedTypeReference, ClassScope scope)581 public boolean visit(QualifiedTypeReference qualifiedTypeReference, 582 ClassScope scope) { 583 return true; 584 } 585 visit(ReturnStatement returnStatement, BlockScope scope)586 public boolean visit(ReturnStatement returnStatement, BlockScope scope) { 587 return true; 588 } 589 visit(SingleNameReference singleNameReference, BlockScope scope)590 public boolean visit(SingleNameReference singleNameReference, 591 BlockScope scope) { 592 return true; 593 } 594 visit(SingleTypeReference singleTypeReference, BlockScope scope)595 public boolean visit(SingleTypeReference singleTypeReference, 596 BlockScope scope) { 597 return true; 598 } 599 visit(SingleTypeReference singleTypeReference, ClassScope scope)600 public boolean visit(SingleTypeReference singleTypeReference, 601 ClassScope scope) { 602 return true; 603 } 604 visit(StringLiteral stringLiteral, BlockScope scope)605 public boolean visit(StringLiteral stringLiteral, BlockScope scope) { 606 return true; 607 } 608 visit(SuperReference superReference, BlockScope scope)609 public boolean visit(SuperReference superReference, BlockScope scope) { 610 return true; 611 } 612 visit(SwitchStatement switchStatement, BlockScope scope)613 public boolean visit(SwitchStatement switchStatement, BlockScope scope) { 614 return true; 615 } 616 visit(ThisReference thisReference, BlockScope scope)617 public boolean visit(ThisReference thisReference, BlockScope scope) { 618 return true; 619 } 620 visit(ThrowStatement throwStatement, BlockScope scope)621 public boolean visit(ThrowStatement throwStatement, BlockScope scope) { 622 return true; 623 } 624 visit(TrueLiteral trueLiteral, BlockScope scope)625 public boolean visit(TrueLiteral trueLiteral, BlockScope scope) { 626 return true; 627 } 628 visit(TryStatement tryStatement, BlockScope scope)629 public boolean visit(TryStatement tryStatement, BlockScope scope) { 630 return true; 631 } 632 visit(TypeDeclaration typeDeclaration, CompilationUnitScope scope)633 public boolean visit(TypeDeclaration typeDeclaration, 634 CompilationUnitScope scope) { 635 return true; 636 } 637 visit(UnaryExpression unaryExpression, BlockScope scope)638 public boolean visit(UnaryExpression unaryExpression, BlockScope scope) { 639 return true; 640 } 641 visit(WhileStatement whileStatement, BlockScope scope)642 public boolean visit(WhileStatement whileStatement, BlockScope scope) { 643 return true; 644 } 645 visit(LocalTypeDeclaration localTypeDeclaration, BlockScope scope)646 public boolean visit(LocalTypeDeclaration localTypeDeclaration, 647 BlockScope scope) { 648 return true; 649 } 650 endVisit(LocalTypeDeclaration localTypeDeclaration, BlockScope scope)651 public void endVisit(LocalTypeDeclaration localTypeDeclaration, 652 BlockScope scope) { 653 } 654 } 655