/projects/eclipse_SDK-3.7.1/plugins/org.eclipse.jdt.core.source_3.7.1.v_B76_R37x/org/eclipse/jdt/internal/compiler/ASTVisitor.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 914 lines · 738 code · 2 blank · 174 comment · 0 complexity · 20f19b847e06dbc2b4e9c9f4bb3dfeb8 MD5 · raw file

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