/projects/aspectj-1.6.9/aspectjtools1.6.9/org/aspectj/org/eclipse/jdt/internal/compiler/ASTVisitor.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 894 lines · 720 code · 2 blank · 172 comment · 0 complexity · bcbbdada26c14acfb8df72df56030e84 MD5 · raw file

  1. /*******************************************************************************
  2. * Copyright (c) 2000, 2006 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.aspectj.org.eclipse.jdt.internal.compiler;
  12. import org.aspectj.org.eclipse.jdt.core.compiler.IProblem;
  13. import org.aspectj.org.eclipse.jdt.internal.compiler.ast.*;
  14. import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope;
  15. import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ClassScope;
  16. import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope;
  17. import org.aspectj.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(WhileStatement whileStatement, BlockScope scope) {
  449. // do nothing by default
  450. }
  451. public void endVisit(Wildcard wildcard, BlockScope scope) {
  452. // do nothing by default
  453. }
  454. public void endVisit(Wildcard wildcard, ClassScope scope) {
  455. // do nothing by default
  456. }
  457. public boolean visit(
  458. AllocationExpression allocationExpression,
  459. BlockScope scope) {
  460. return true; // do nothing by default, keep traversing
  461. }
  462. public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope) {
  463. return true; // do nothing by default, keep traversing
  464. }
  465. public boolean visit(
  466. AnnotationMethodDeclaration annotationTypeDeclaration,
  467. ClassScope classScope) {
  468. return true; // do nothing by default, keep traversing
  469. }
  470. public boolean visit(Argument argument, BlockScope scope) {
  471. return true; // do nothing by default, keep traversing
  472. }
  473. public boolean visit(Argument argument, ClassScope scope) {
  474. return true; // do nothing by default, keep traversing
  475. }
  476. public boolean visit(
  477. ArrayAllocationExpression arrayAllocationExpression,
  478. BlockScope scope) {
  479. return true; // do nothing by default, keep traversing
  480. }
  481. public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) {
  482. return true; // do nothing by default, keep traversing
  483. }
  484. public boolean visit(
  485. ArrayQualifiedTypeReference arrayQualifiedTypeReference,
  486. BlockScope scope) {
  487. return true; // do nothing by default, keep traversing
  488. }
  489. public boolean visit(
  490. ArrayQualifiedTypeReference arrayQualifiedTypeReference,
  491. ClassScope scope) {
  492. return true; // do nothing by default, keep traversing
  493. }
  494. public boolean visit(ArrayReference arrayReference, BlockScope scope) {
  495. return true; // do nothing by default, keep traversing
  496. }
  497. public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope) {
  498. return true; // do nothing by default, keep traversing
  499. }
  500. public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope) {
  501. return true; // do nothing by default, keep traversing
  502. }
  503. public boolean visit(AssertStatement assertStatement, BlockScope scope) {
  504. return true; // do nothing by default, keep traversing
  505. }
  506. public boolean visit(Assignment assignment, BlockScope scope) {
  507. return true; // do nothing by default, keep traversing
  508. }
  509. public boolean visit(BinaryExpression binaryExpression, BlockScope scope) {
  510. return true; // do nothing by default, keep traversing
  511. }
  512. public boolean visit(Block block, BlockScope scope) {
  513. return true; // do nothing by default, keep traversing
  514. }
  515. public boolean visit(BreakStatement breakStatement, BlockScope scope) {
  516. return true; // do nothing by default, keep traversing
  517. }
  518. public boolean visit(CaseStatement caseStatement, BlockScope scope) {
  519. return true; // do nothing by default, keep traversing
  520. }
  521. public boolean visit(CastExpression castExpression, BlockScope scope) {
  522. return true; // do nothing by default, keep traversing
  523. }
  524. public boolean visit(CharLiteral charLiteral, BlockScope scope) {
  525. return true; // do nothing by default, keep traversing
  526. }
  527. public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) {
  528. return true; // do nothing by default, keep traversing
  529. }
  530. public boolean visit(Clinit clinit, ClassScope scope) {
  531. return true; // do nothing by default, keep traversing
  532. }
  533. public boolean visit(
  534. CompilationUnitDeclaration compilationUnitDeclaration,
  535. CompilationUnitScope scope) {
  536. return true; // do nothing by default, keep traversing
  537. }
  538. public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope) {
  539. return true; // do nothing by default, keep traversing
  540. }
  541. public boolean visit(
  542. ConditionalExpression conditionalExpression,
  543. BlockScope scope) {
  544. return true; // do nothing by default, keep traversing
  545. }
  546. public boolean visit(
  547. ConstructorDeclaration constructorDeclaration,
  548. ClassScope scope) {
  549. return true; // do nothing by default, keep traversing
  550. }
  551. public boolean visit(ContinueStatement continueStatement, BlockScope scope) {
  552. return true; // do nothing by default, keep traversing
  553. }
  554. public boolean visit(DoStatement doStatement, BlockScope scope) {
  555. return true; // do nothing by default, keep traversing
  556. }
  557. public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope) {
  558. return true; // do nothing by default, keep traversing
  559. }
  560. public boolean visit(EmptyStatement emptyStatement, BlockScope scope) {
  561. return true; // do nothing by default, keep traversing
  562. }
  563. public boolean visit(EqualExpression equalExpression, BlockScope scope) {
  564. return true; // do nothing by default, keep traversing
  565. }
  566. public boolean visit(
  567. ExplicitConstructorCall explicitConstructor,
  568. BlockScope scope) {
  569. return true; // do nothing by default, keep traversing
  570. }
  571. public boolean visit(
  572. ExtendedStringLiteral extendedStringLiteral,
  573. BlockScope scope) {
  574. return true; // do nothing by default, keep traversing
  575. }
  576. public boolean visit(FalseLiteral falseLiteral, BlockScope scope) {
  577. return true; // do nothing by default, keep traversing
  578. }
  579. public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) {
  580. return true; // do nothing by default, keep traversing
  581. }
  582. public boolean visit(FieldReference fieldReference, BlockScope scope) {
  583. return true; // do nothing by default, keep traversing
  584. }
  585. public boolean visit(FieldReference fieldReference, ClassScope scope) {
  586. return true; // do nothing by default, keep traversing
  587. }
  588. public boolean visit(FloatLiteral floatLiteral, BlockScope scope) {
  589. return true; // do nothing by default, keep traversing
  590. }
  591. public boolean visit(ForeachStatement forStatement, BlockScope scope) {
  592. return true; // do nothing by default, keep traversing
  593. }
  594. public boolean visit(ForStatement forStatement, BlockScope scope) {
  595. return true; // do nothing by default, keep traversing
  596. }
  597. public boolean visit(IfStatement ifStatement, BlockScope scope) {
  598. return true; // do nothing by default, keep traversing
  599. }
  600. public boolean visit(ImportReference importRef, CompilationUnitScope scope) {
  601. return true; // do nothing by default, keep traversing
  602. }
  603. public boolean visit(Initializer initializer, MethodScope scope) {
  604. return true; // do nothing by default, keep traversing
  605. }
  606. public boolean visit(
  607. InstanceOfExpression instanceOfExpression,
  608. BlockScope scope) {
  609. return true; // do nothing by default, keep traversing
  610. }
  611. public boolean visit(IntLiteral intLiteral, BlockScope scope) {
  612. return true; // do nothing by default, keep traversing
  613. }
  614. public boolean visit(Javadoc javadoc, BlockScope scope) {
  615. return true; // do nothing by default, keep traversing
  616. }
  617. public boolean visit(Javadoc javadoc, ClassScope scope) {
  618. return true; // do nothing by default, keep traversing
  619. }
  620. public boolean visit(JavadocAllocationExpression expression, BlockScope scope) {
  621. return true; // do nothing by default, keep traversing
  622. }
  623. public boolean visit(JavadocAllocationExpression expression, ClassScope scope) {
  624. return true; // do nothing by default, keep traversing
  625. }
  626. public boolean visit(JavadocArgumentExpression expression, BlockScope scope) {
  627. return true; // do nothing by default, keep traversing
  628. }
  629. public boolean visit(JavadocArgumentExpression expression, ClassScope scope) {
  630. return true; // do nothing by default, keep traversing
  631. }
  632. public boolean visit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) {
  633. return true; // do nothing by default, keep traversing
  634. }
  635. public boolean visit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) {
  636. return true; // do nothing by default, keep traversing
  637. }
  638. public boolean visit(JavadocArraySingleTypeReference typeRef, BlockScope scope) {
  639. return true; // do nothing by default, keep traversing
  640. }
  641. public boolean visit(JavadocArraySingleTypeReference typeRef, ClassScope scope) {
  642. return true; // do nothing by default, keep traversing
  643. }
  644. public boolean visit(JavadocFieldReference fieldRef, BlockScope scope) {
  645. return true; // do nothing by default, keep traversing
  646. }
  647. public boolean visit(JavadocFieldReference fieldRef, ClassScope scope) {
  648. return true; // do nothing by default, keep traversing
  649. }
  650. public boolean visit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) {
  651. return true; // do nothing by default, keep traversing
  652. }
  653. public boolean visit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) {
  654. return true; // do nothing by default, keep traversing
  655. }
  656. public boolean visit(JavadocMessageSend messageSend, BlockScope scope) {
  657. return true; // do nothing by default, keep traversing
  658. }
  659. public boolean visit(JavadocMessageSend messageSend, ClassScope scope) {
  660. return true; // do nothing by default, keep traversing
  661. }
  662. public boolean visit(JavadocQualifiedTypeReference typeRef, BlockScope scope) {
  663. return true; // do nothing by default, keep traversing
  664. }
  665. public boolean visit(JavadocQualifiedTypeReference typeRef, ClassScope scope) {
  666. return true; // do nothing by default, keep traversing
  667. }
  668. public boolean visit(JavadocReturnStatement statement, BlockScope scope) {
  669. return true; // do nothing by default, keep traversing
  670. }
  671. public boolean visit(JavadocReturnStatement statement, ClassScope scope) {
  672. return true; // do nothing by default, keep traversing
  673. }
  674. public boolean visit(JavadocSingleNameReference argument, BlockScope scope) {
  675. return true; // do nothing by default, keep traversing
  676. }
  677. public boolean visit(JavadocSingleNameReference argument, ClassScope scope) {
  678. return true; // do nothing by default, keep traversing
  679. }
  680. public boolean visit(JavadocSingleTypeReference typeRef, BlockScope scope) {
  681. return true; // do nothing by default, keep traversing
  682. }
  683. public boolean visit(JavadocSingleTypeReference typeRef, ClassScope scope) {
  684. return true; // do nothing by default, keep traversing
  685. }
  686. public boolean visit(LabeledStatement labeledStatement, BlockScope scope) {
  687. return true; // do nothing by default, keep traversing
  688. }
  689. public boolean visit(LocalDeclaration localDeclaration, BlockScope scope) {
  690. return true; // do nothing by default, keep traversing
  691. }
  692. public boolean visit(LongLiteral longLiteral, BlockScope scope) {
  693. return true; // do nothing by default, keep traversing
  694. }
  695. /**
  696. * @param annotation
  697. * @param scope
  698. * @since 3.1
  699. */
  700. public boolean visit(MarkerAnnotation annotation, BlockScope scope) {
  701. return true;
  702. }
  703. /**
  704. * @param pair
  705. * @param scope
  706. * @since 3.1
  707. */
  708. public boolean visit(MemberValuePair pair, BlockScope scope) {
  709. return true;
  710. }
  711. public boolean visit(MessageSend messageSend, BlockScope scope) {
  712. return true; // do nothing by default, keep traversing
  713. }
  714. public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
  715. return true; // do nothing by default, keep traversing
  716. }
  717. public boolean visit(
  718. StringLiteralConcatenation literal,
  719. BlockScope scope) {
  720. return true; // do nothing by default, keep traversing
  721. }
  722. /**
  723. * @param annotation
  724. * @param scope
  725. * @since 3.1
  726. */
  727. public boolean visit(NormalAnnotation annotation, BlockScope scope) {
  728. return true;
  729. }
  730. public boolean visit(NullLiteral nullLiteral, BlockScope scope) {
  731. return true; // do nothing by default, keep traversing
  732. }
  733. public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) {
  734. return true; // do nothing by default, keep traversing
  735. }
  736. public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) {
  737. return true; // do nothing by default, keep traversing
  738. }
  739. public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) {
  740. return true; // do nothing by default, keep traversing
  741. }
  742. public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) {
  743. return true; // do nothing by default, keep traversing
  744. }
  745. public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) {
  746. return true; // do nothing by default, keep traversing
  747. }
  748. public boolean visit(PostfixExpression postfixExpression, BlockScope scope) {
  749. return true; // do nothing by default, keep traversing
  750. }
  751. public boolean visit(PrefixExpression prefixExpression, BlockScope scope) {
  752. return true; // do nothing by default, keep traversing
  753. }
  754. public boolean visit(
  755. QualifiedAllocationExpression qualifiedAllocationExpression,
  756. BlockScope scope) {
  757. return true; // do nothing by default, keep traversing
  758. }
  759. public boolean visit(
  760. QualifiedNameReference qualifiedNameReference,
  761. BlockScope scope) {
  762. return true; // do nothing by default, keep traversing
  763. }
  764. public boolean visit(
  765. QualifiedNameReference qualifiedNameReference,
  766. ClassScope scope) {
  767. return true; // do nothing by default, keep traversing
  768. }
  769. public boolean visit(
  770. QualifiedSuperReference qualifiedSuperReference,
  771. BlockScope scope) {
  772. return true; // do nothing by default, keep traversing
  773. }
  774. public boolean visit(
  775. QualifiedSuperReference qualifiedSuperReference,
  776. ClassScope scope) {
  777. return true; // do nothing by default, keep traversing
  778. }
  779. public boolean visit(
  780. QualifiedThisReference qualifiedThisReference,
  781. BlockScope scope) {
  782. return true; // do nothing by default, keep traversing
  783. }
  784. public boolean visit(
  785. QualifiedThisReference qualifiedThisReference,
  786. ClassScope scope) {
  787. return true; // do nothing by default, keep traversing
  788. }
  789. public boolean visit(
  790. QualifiedTypeReference qualifiedTypeReference,
  791. BlockScope scope) {
  792. return true; // do nothing by default, keep traversing
  793. }
  794. public boolean visit(
  795. QualifiedTypeReference qualifiedTypeReference,
  796. ClassScope scope) {
  797. return true; // do nothing by default, keep traversing
  798. }
  799. public boolean visit(ReturnStatement returnStatement, BlockScope scope) {
  800. return true; // do nothing by default, keep traversing
  801. }
  802. /**
  803. * @param annotation
  804. * @param scope
  805. * @since 3.1
  806. */
  807. public boolean visit(SingleMemberAnnotation annotation, BlockScope scope) {
  808. return true;
  809. }
  810. public boolean visit(
  811. SingleNameReference singleNameReference,
  812. BlockScope scope) {
  813. return true; // do nothing by default, keep traversing
  814. }
  815. public boolean visit(
  816. SingleNameReference singleNameReference,
  817. ClassScope scope) {
  818. return true; // do nothing by default, keep traversing
  819. }
  820. public boolean visit(
  821. SingleTypeReference singleTypeReference,
  822. BlockScope scope) {
  823. return true; // do nothing by default, keep traversing
  824. }
  825. public boolean visit(
  826. SingleTypeReference singleTypeReference,
  827. ClassScope scope) {
  828. return true; // do nothing by default, keep traversing
  829. }
  830. public boolean visit(StringLiteral stringLiteral, BlockScope scope) {
  831. return true; // do nothing by default, keep traversing
  832. }
  833. public boolean visit(SuperReference superReference, BlockScope scope) {
  834. return true; // do nothing by default, keep traversing
  835. }
  836. public boolean visit(SwitchStatement switchStatement, BlockScope scope) {
  837. return true; // do nothing by default, keep traversing
  838. }
  839. public boolean visit(
  840. SynchronizedStatement synchronizedStatement,
  841. BlockScope scope) {
  842. return true; // do nothing by default, keep traversing
  843. }
  844. public boolean visit(ThisReference thisReference, BlockScope scope) {
  845. return true; // do nothing by default, keep traversing
  846. }
  847. public boolean visit(ThisReference thisReference, ClassScope scope) {
  848. return true; // do nothing by default, keep traversing
  849. }
  850. public boolean visit(ThrowStatement throwStatement, BlockScope scope) {
  851. return true; // do nothing by default, keep traversing
  852. }
  853. public boolean visit(TrueLiteral trueLiteral, BlockScope scope) {
  854. return true; // do nothing by default, keep traversing
  855. }
  856. public boolean visit(TryStatement tryStatement, BlockScope scope) {
  857. return true; // do nothing by default, keep traversing
  858. }
  859. public boolean visit(
  860. TypeDeclaration localTypeDeclaration,
  861. BlockScope scope) {
  862. return true; // do nothing by default, keep traversing
  863. }
  864. public boolean visit(
  865. TypeDeclaration memberTypeDeclaration,
  866. ClassScope scope) {
  867. return true; // do nothing by default, keep traversing
  868. }
  869. public boolean visit(
  870. TypeDeclaration typeDeclaration,
  871. CompilationUnitScope scope) {
  872. return true; // do nothing by default, keep traversing
  873. }
  874. public boolean visit(TypeParameter typeParameter, BlockScope scope) {
  875. return true; // do nothing by default, keep traversing
  876. }
  877. public boolean visit(TypeParameter typeParameter, ClassScope scope) {
  878. return true; // do nothing by default, keep traversing
  879. }
  880. public boolean visit(UnaryExpression unaryExpression, BlockScope scope) {
  881. return true; // do nothing by default, keep traversing
  882. }
  883. public boolean visit(WhileStatement whileStatement, BlockScope scope) {
  884. return true; // do nothing by default, keep traversing
  885. }
  886. public boolean visit(Wildcard wildcard, BlockScope scope) {
  887. return true; // do nothing by default, keep traversing
  888. }
  889. public boolean visit(Wildcard wildcard, ClassScope scope) {
  890. return true; // do nothing by default, keep traversing
  891. }
  892. }