KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > ASTVisitor


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.eclipse.jdt.internal.compiler;
12
13 import org.eclipse.jdt.core.compiler.IProblem;
14 import org.eclipse.jdt.internal.compiler.ast.*;
15 import org.eclipse.jdt.internal.compiler.lookup.BlockScope;
16 import org.eclipse.jdt.internal.compiler.lookup.ClassScope;
17 import org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope;
18 import org.eclipse.jdt.internal.compiler.lookup.MethodScope;
19
20 /**
21  * A visitor for iterating through the parse tree.
22  */

23 public abstract class ASTVisitor {
24     public void acceptProblem(IProblem problem) {
25         // do nothing by default
26
}
27     public void endVisit(
28         AllocationExpression allocationExpression,
29         BlockScope scope) {
30         // do nothing by default
31
}
32     public void endVisit(AND_AND_Expression and_and_Expression, BlockScope scope) {
33         // do nothing by default
34
}
35     public void endVisit(
36             AnnotationMethodDeclaration annotationTypeDeclaration,
37             ClassScope classScope) {
38             // do nothing by default
39
}
40     public void endVisit(Argument argument, BlockScope scope) {
41         // do nothing by default
42
}
43     public void endVisit(Argument argument,ClassScope scope) {
44         // do nothing by default
45
}
46     public void endVisit(
47             ArrayAllocationExpression arrayAllocationExpression,
48             BlockScope scope) {
49         // do nothing by default
50
}
51     public void endVisit(ArrayInitializer arrayInitializer, BlockScope scope) {
52         // do nothing by default
53
}
54     public void endVisit(
55         ArrayQualifiedTypeReference arrayQualifiedTypeReference,
56         BlockScope scope) {
57         // do nothing by default
58
}
59     public void endVisit(
60         ArrayQualifiedTypeReference arrayQualifiedTypeReference,
61         ClassScope scope) {
62         // do nothing by default
63
}
64     public void endVisit(ArrayReference arrayReference, BlockScope scope) {
65         // do nothing by default
66
}
67     public void endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope) {
68         // do nothing by default
69
}
70     public void endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope) {
71         // do nothing by default
72
}
73     public void endVisit(AssertStatement assertStatement, BlockScope scope) {
74         // do nothing by default
75
}
76     public void endVisit(Assignment assignment, BlockScope scope) {
77         // do nothing by default
78
}
79     public void endVisit(BinaryExpression binaryExpression, BlockScope scope) {
80         // do nothing by default
81
}
82     public void endVisit(Block block, BlockScope scope) {
83         // do nothing by default
84
}
85     public void endVisit(BreakStatement breakStatement, BlockScope scope) {
86         // do nothing by default
87
}
88     public void endVisit(CaseStatement caseStatement, BlockScope scope) {
89         // do nothing by default
90
}
91     public void endVisit(CastExpression castExpression, BlockScope scope) {
92         // do nothing by default
93
}
94     public void endVisit(CharLiteral charLiteral, BlockScope scope) {
95         // do nothing by default
96
}
97     public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope) {
98         // do nothing by default
99
}
100     public void endVisit(Clinit clinit, ClassScope scope) {
101         // do nothing by default
102
}
103     public void endVisit(
104         CompilationUnitDeclaration compilationUnitDeclaration,
105         CompilationUnitScope scope) {
106         // do nothing by default
107
}
108     public void endVisit(CompoundAssignment compoundAssignment, BlockScope scope) {
109         // do nothing by default
110
}
111     public void endVisit(
112             ConditionalExpression conditionalExpression,
113             BlockScope scope) {
114         // do nothing by default
115
}
116     public void endVisit(
117         ConstructorDeclaration constructorDeclaration,
118         ClassScope scope) {
119         // do nothing by default
120
}
121     public void endVisit(ContinueStatement continueStatement, BlockScope scope) {
122         // do nothing by default
123
}
124     public void endVisit(DoStatement doStatement, BlockScope scope) {
125         // do nothing by default
126
}
127     public void endVisit(DoubleLiteral doubleLiteral, BlockScope scope) {
128         // do nothing by default
129
}
130     public void endVisit(EmptyStatement emptyStatement, BlockScope scope) {
131         // do nothing by default
132
}
133     public void endVisit(EqualExpression equalExpression, BlockScope scope) {
134         // do nothing by default
135
}
136     public void endVisit(
137         ExplicitConstructorCall explicitConstructor,
138         BlockScope scope) {
139         // do nothing by default
140
}
141     public void endVisit(
142         ExtendedStringLiteral extendedStringLiteral,
143         BlockScope scope) {
144         // do nothing by default
145
}
146     public void endVisit(FalseLiteral falseLiteral, BlockScope scope) {
147         // do nothing by default
148
}
149     public void endVisit(FieldDeclaration fieldDeclaration, MethodScope scope) {
150         // do nothing by default
151
}
152     public void endVisit(FieldReference fieldReference, BlockScope scope) {
153         // do nothing by default
154
}
155     public void endVisit(FieldReference fieldReference, ClassScope scope) {
156         // do nothing by default
157
}
158     public void endVisit(FloatLiteral floatLiteral, BlockScope scope) {
159         // do nothing by default
160
}
161     public void endVisit(ForeachStatement forStatement, BlockScope scope) {
162         // do nothing by default
163
}
164     public void endVisit(ForStatement forStatement, BlockScope scope) {
165         // do nothing by default
166
}
167     public void endVisit(IfStatement ifStatement, BlockScope scope) {
168         // do nothing by default
169
}
170     public void endVisit(ImportReference importRef, CompilationUnitScope scope) {
171         // do nothing by default
172
}
173     public void endVisit(Initializer initializer, MethodScope scope) {
174         // do nothing by default
175
}
176     public void endVisit(
177             InstanceOfExpression instanceOfExpression,
178             BlockScope scope) {
179         // do nothing by default
180
}
181     public void endVisit(IntLiteral intLiteral, BlockScope scope) {
182         // do nothing by default
183
}
184     public void endVisit(Javadoc javadoc, BlockScope scope) {
185         // do nothing by default
186
}
187     public void endVisit(Javadoc javadoc, ClassScope scope) {
188         // do nothing by default
189
}
190     public void endVisit(JavadocAllocationExpression expression, BlockScope scope) {
191         // do nothing by default
192
}
193     public void endVisit(JavadocAllocationExpression expression, ClassScope scope) {
194         // do nothing by default
195
}
196     public void endVisit(JavadocArgumentExpression expression, BlockScope scope) {
197         // do nothing by default
198
}
199     public void endVisit(JavadocArgumentExpression expression, ClassScope scope) {
200         // do nothing by default
201
}
202     public void endVisit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) {
203         // do nothing by default
204
}
205     public void endVisit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) {
206         // do nothing by default
207
}
208     public void endVisit(JavadocArraySingleTypeReference typeRef, BlockScope scope) {
209         // do nothing by default
210
}
211     public void endVisit(JavadocArraySingleTypeReference typeRef, ClassScope scope) {
212         // do nothing by default
213
}
214     public void endVisit(JavadocFieldReference fieldRef, BlockScope scope) {
215         // do nothing by default
216
}
217     public void endVisit(JavadocFieldReference fieldRef, ClassScope scope) {
218         // do nothing by default
219
}
220     public void endVisit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) {
221         // do nothing by default
222
}
223     public void endVisit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) {
224         // do nothing by default
225
}
226     public void endVisit(JavadocMessageSend messageSend, BlockScope scope) {
227         // do nothing by default
228
}
229     public void endVisit(JavadocMessageSend messageSend, ClassScope scope) {
230         // do nothing by default
231
}
232     public void endVisit(JavadocQualifiedTypeReference typeRef, BlockScope scope) {
233         // do nothing by default
234
}
235     public void endVisit(JavadocQualifiedTypeReference typeRef, ClassScope scope) {
236         // do nothing by default
237
}
238     public void endVisit(JavadocReturnStatement statement, BlockScope scope) {
239         // do nothing by default
240
}
241     public void endVisit(JavadocReturnStatement statement, ClassScope scope) {
242         // do nothing by default
243
}
244     public void endVisit(JavadocSingleNameReference argument, BlockScope scope) {
245         // do nothing by default
246
}
247     public void endVisit(JavadocSingleNameReference argument, ClassScope scope) {
248         // do nothing by default
249
}
250     public void endVisit(JavadocSingleTypeReference typeRef, BlockScope scope) {
251         // do nothing by default
252
}
253     public void endVisit(JavadocSingleTypeReference typeRef, ClassScope scope) {
254         // do nothing by default
255
}
256     public void endVisit(LabeledStatement labeledStatement, BlockScope scope) {
257         // do nothing by default
258
}
259     public void endVisit(LocalDeclaration localDeclaration, BlockScope scope) {
260         // do nothing by default
261
}
262     public void endVisit(LongLiteral longLiteral, BlockScope scope) {
263         // do nothing by default
264
}
265     /**
266      * @param annotation
267      * @param scope
268      * @since 3.1
269      */

270     public void endVisit(MarkerAnnotation annotation, BlockScope scope) {
271         // do nothing by default
272
}
273     /**
274      * @param pair
275      * @param scope
276      */

277     public void endVisit(MemberValuePair pair, BlockScope scope) {
278         // do nothing by default
279
}
280     public void endVisit(MessageSend messageSend, BlockScope scope) {
281         // do nothing by default
282
}
283     public void endVisit(MethodDeclaration methodDeclaration, ClassScope scope) {
284         // do nothing by default
285
}
286     public void endVisit(StringLiteralConcatenation literal, BlockScope scope) {
287         // do nothing by default
288
}
289     /**
290      * @param annotation
291      * @param scope
292      * @since 3.1
293      */

294     public void endVisit(NormalAnnotation annotation, BlockScope scope) {
295         // do nothing by default
296
}
297     public void endVisit(NullLiteral nullLiteral, BlockScope scope) {
298         // do nothing by default
299
}
300     public void endVisit(OR_OR_Expression or_or_Expression, BlockScope scope) {
301         // do nothing by default
302
}
303     public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) {
304         // do nothing by default
305
}
306     public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) {
307         // do nothing by default
308
}
309     public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) {
310         // do nothing by default
311
}
312     public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) {
313         // do nothing by default
314
}
315     public void endVisit(PostfixExpression postfixExpression, BlockScope scope) {
316         // do nothing by default
317
}
318     public void endVisit(PrefixExpression prefixExpression, BlockScope scope) {
319         // do nothing by default
320
}
321     public void endVisit(
322             QualifiedAllocationExpression qualifiedAllocationExpression,
323             BlockScope scope) {
324         // do nothing by default
325
}
326     public void endVisit(
327         QualifiedNameReference qualifiedNameReference,
328         BlockScope scope) {
329         // do nothing by default
330
}
331     public void endVisit(
332             QualifiedNameReference qualifiedNameReference,
333             ClassScope scope) {
334         // do nothing by default
335
}
336     public void endVisit(
337             QualifiedSuperReference qualifiedSuperReference,
338             BlockScope scope) {
339         // do nothing by default
340
}
341     public void endVisit(
342             QualifiedSuperReference qualifiedSuperReference,
343             ClassScope scope) {
344         // do nothing by default
345
}
346     public void endVisit(
347             QualifiedThisReference qualifiedThisReference,
348             BlockScope scope) {
349         // do nothing by default
350
}
351     public void endVisit(
352             QualifiedThisReference qualifiedThisReference,
353             ClassScope scope) {
354         // do nothing by default
355
}
356     public void endVisit(
357             QualifiedTypeReference qualifiedTypeReference,
358             BlockScope scope) {
359         // do nothing by default
360
}
361     public void endVisit(
362             QualifiedTypeReference qualifiedTypeReference,
363             ClassScope scope) {
364         // do nothing by default
365
}
366     public void endVisit(ReturnStatement returnStatement, BlockScope scope) {
367         // do nothing by default
368
}
369     /**
370      * @param annotation
371      * @param scope
372      * @since 3.1
373      */

374     public void endVisit(SingleMemberAnnotation annotation, BlockScope scope) {
375         // do nothing by default
376
}
377     public void endVisit(
378             SingleNameReference singleNameReference,
379             BlockScope scope) {
380         // do nothing by default
381
}
382     public void endVisit(
383             SingleNameReference singleNameReference,
384             ClassScope scope) {
385             // do nothing by default
386
}
387     public void endVisit(
388             SingleTypeReference singleTypeReference,
389             BlockScope scope) {
390         // do nothing by default
391
}
392     public void endVisit(
393             SingleTypeReference singleTypeReference,
394             ClassScope scope) {
395         // do nothing by default
396
}
397     public void endVisit(StringLiteral stringLiteral, BlockScope scope) {
398         // do nothing by default
399
}
400     public void endVisit(SuperReference superReference, BlockScope scope) {
401         // do nothing by default
402
}
403     public void endVisit(SwitchStatement switchStatement, BlockScope scope) {
404         // do nothing by default
405
}
406     public void endVisit(
407         SynchronizedStatement synchronizedStatement,
408         BlockScope scope) {
409         // do nothing by default
410
}
411     public void endVisit(ThisReference thisReference, BlockScope scope) {
412         // do nothing by default
413
}
414     public void endVisit(ThisReference thisReference, ClassScope scope) {
415         // do nothing by default
416
}
417     public void endVisit(ThrowStatement throwStatement, BlockScope scope) {
418         // do nothing by default
419
}
420     public void endVisit(TrueLiteral trueLiteral, BlockScope scope) {
421         // do nothing by default
422
}
423     public void endVisit(TryStatement tryStatement, BlockScope scope) {
424         // do nothing by default
425
}
426     public void endVisit(
427         TypeDeclaration localTypeDeclaration,
428         BlockScope scope) {
429         // do nothing by default
430
}
431     public void endVisit(
432         TypeDeclaration memberTypeDeclaration,
433         ClassScope scope) {
434         // do nothing by default
435
}
436     public void endVisit(
437         TypeDeclaration typeDeclaration,
438         CompilationUnitScope scope) {
439         // do nothing by default
440
}
441     public void endVisit(TypeParameter typeParameter, BlockScope scope) {
442         // do nothing by default
443
}
444     public void endVisit(TypeParameter typeParameter, ClassScope scope) {
445         // do nothing by default
446
}
447     public void endVisit(UnaryExpression unaryExpression, BlockScope scope) {
448         // do nothing by default
449
}
450     public void endVisit(WhileStatement whileStatement, BlockScope scope) {
451         // do nothing by default
452
}
453     public void endVisit(Wildcard wildcard, BlockScope scope) {
454         // do nothing by default
455
}
456     public void endVisit(Wildcard wildcard, ClassScope scope) {
457         // do nothing by default
458
}
459     public boolean visit(
460             AllocationExpression allocationExpression,
461             BlockScope scope) {
462         return true; // do nothing by default, keep traversing
463
}
464     public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope) {
465         return true; // do nothing by default, keep traversing
466
}
467     public boolean visit(
468             AnnotationMethodDeclaration annotationTypeDeclaration,
469             ClassScope classScope) {
470         return true; // do nothing by default, keep traversing
471
}
472     public boolean visit(Argument argument, BlockScope scope) {
473         return true; // do nothing by default, keep traversing
474
}
475     public boolean visit(Argument argument, ClassScope scope) {
476         return true; // do nothing by default, keep traversing
477
}
478     public boolean visit(
479         ArrayAllocationExpression arrayAllocationExpression,
480         BlockScope scope) {
481         return true; // do nothing by default, keep traversing
482
}
483     public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) {
484         return true; // do nothing by default, keep traversing
485
}
486     public boolean visit(
487         ArrayQualifiedTypeReference arrayQualifiedTypeReference,
488         BlockScope scope) {
489         return true; // do nothing by default, keep traversing
490
}
491     public boolean visit(
492         ArrayQualifiedTypeReference arrayQualifiedTypeReference,
493         ClassScope scope) {
494         return true; // do nothing by default, keep traversing
495
}
496     public boolean visit(ArrayReference arrayReference, BlockScope scope) {
497         return true; // do nothing by default, keep traversing
498
}
499     public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope) {
500         return true; // do nothing by default, keep traversing
501
}
502     public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope) {
503         return true; // do nothing by default, keep traversing
504
}
505     public boolean visit(AssertStatement assertStatement, BlockScope scope) {
506         return true; // do nothing by default, keep traversing
507
}
508     public boolean visit(Assignment assignment, BlockScope scope) {
509         return true; // do nothing by default, keep traversing
510
}
511     public boolean visit(BinaryExpression binaryExpression, BlockScope scope) {
512         return true; // do nothing by default, keep traversing
513
}
514     public boolean visit(Block block, BlockScope scope) {
515         return true; // do nothing by default, keep traversing
516
}
517     public boolean visit(BreakStatement breakStatement, BlockScope scope) {
518         return true; // do nothing by default, keep traversing
519
}
520     public boolean visit(CaseStatement caseStatement, BlockScope scope) {
521         return true; // do nothing by default, keep traversing
522
}
523     public boolean visit(CastExpression castExpression, BlockScope scope) {
524         return true; // do nothing by default, keep traversing
525
}
526     public boolean visit(CharLiteral charLiteral, BlockScope scope) {
527         return true; // do nothing by default, keep traversing
528
}
529     public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) {
530         return true; // do nothing by default, keep traversing
531
}
532     public boolean visit(Clinit clinit, ClassScope scope) {
533         return true; // do nothing by default, keep traversing
534
}
535     public boolean visit(
536         CompilationUnitDeclaration compilationUnitDeclaration,
537         CompilationUnitScope scope) {
538         return true; // do nothing by default, keep traversing
539
}
540     public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope) {
541         return true; // do nothing by default, keep traversing
542
}
543     public boolean visit(
544             ConditionalExpression conditionalExpression,
545             BlockScope scope) {
546         return true; // do nothing by default, keep traversing
547
}
548     public boolean visit(
549         ConstructorDeclaration constructorDeclaration,
550         ClassScope scope) {
551         return true; // do nothing by default, keep traversing
552
}
553     public boolean visit(ContinueStatement continueStatement, BlockScope scope) {
554         return true; // do nothing by default, keep traversing
555
}
556     public boolean visit(DoStatement doStatement, BlockScope scope) {
557         return true; // do nothing by default, keep traversing
558
}
559     public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope) {
560         return true; // do nothing by default, keep traversing
561
}
562     public boolean visit(EmptyStatement emptyStatement, BlockScope scope) {
563         return true; // do nothing by default, keep traversing
564
}
565     public boolean visit(EqualExpression equalExpression, BlockScope scope) {
566         return true; // do nothing by default, keep traversing
567
}
568     public boolean visit(
569         ExplicitConstructorCall explicitConstructor,
570         BlockScope scope) {
571         return true; // do nothing by default, keep traversing
572
}
573     public boolean visit(
574         ExtendedStringLiteral extendedStringLiteral,
575         BlockScope scope) {
576         return true; // do nothing by default, keep traversing
577
}
578     public boolean visit(FalseLiteral falseLiteral, BlockScope scope) {
579         return true; // do nothing by default, keep traversing
580
}
581     public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) {
582         return true; // do nothing by default, keep traversing
583
}
584     public boolean visit(FieldReference fieldReference, BlockScope scope) {
585         return true; // do nothing by default, keep traversing
586
}
587     public boolean visit(FieldReference fieldReference, ClassScope scope) {
588         return true; // do nothing by default, keep traversing
589
}
590     public boolean visit(FloatLiteral floatLiteral, BlockScope scope) {
591         return true; // do nothing by default, keep traversing
592
}
593     public boolean visit(ForeachStatement forStatement, BlockScope scope) {
594         return true; // do nothing by default, keep traversing
595
}
596     public boolean visit(ForStatement forStatement, BlockScope scope) {
597         return true; // do nothing by default, keep traversing
598
}
599     public boolean visit(IfStatement ifStatement, BlockScope scope) {
600         return true; // do nothing by default, keep traversing
601
}
602     public boolean visit(ImportReference importRef, CompilationUnitScope scope) {
603         return true; // do nothing by default, keep traversing
604
}
605     public boolean visit(Initializer initializer, MethodScope scope) {
606         return true; // do nothing by default, keep traversing
607
}
608     public boolean visit(
609             InstanceOfExpression instanceOfExpression,
610             BlockScope scope) {
611         return true; // do nothing by default, keep traversing
612
}
613     public boolean visit(IntLiteral intLiteral, BlockScope scope) {
614         return true; // do nothing by default, keep traversing
615
}
616     public boolean visit(Javadoc javadoc, BlockScope scope) {
617         return true; // do nothing by default, keep traversing
618
}
619     public boolean visit(Javadoc javadoc, ClassScope scope) {
620         return true; // do nothing by default, keep traversing
621
}
622     public boolean visit(JavadocAllocationExpression expression, BlockScope scope) {
623         return true; // do nothing by default, keep traversing
624
}
625     public boolean visit(JavadocAllocationExpression expression, ClassScope scope) {
626         return true; // do nothing by default, keep traversing
627
}
628     public boolean visit(JavadocArgumentExpression expression, BlockScope scope) {
629         return true; // do nothing by default, keep traversing
630
}
631     public boolean visit(JavadocArgumentExpression expression, ClassScope scope) {
632         return true; // do nothing by default, keep traversing
633
}
634     public boolean visit(JavadocArrayQualifiedTypeReference typeRef, BlockScope scope) {
635         return true; // do nothing by default, keep traversing
636
}
637     public boolean visit(JavadocArrayQualifiedTypeReference typeRef, ClassScope scope) {
638         return true; // do nothing by default, keep traversing
639
}
640     public boolean visit(JavadocArraySingleTypeReference typeRef, BlockScope scope) {
641         return true; // do nothing by default, keep traversing
642
}
643     public boolean visit(JavadocArraySingleTypeReference typeRef, ClassScope scope) {
644         return true; // do nothing by default, keep traversing
645
}
646     public boolean visit(JavadocFieldReference fieldRef, BlockScope scope) {
647         return true; // do nothing by default, keep traversing
648
}
649     public boolean visit(JavadocFieldReference fieldRef, ClassScope scope) {
650         return true; // do nothing by default, keep traversing
651
}
652     public boolean visit(JavadocImplicitTypeReference implicitTypeReference, BlockScope scope) {
653         return true; // do nothing by default, keep traversing
654
}
655     public boolean visit(JavadocImplicitTypeReference implicitTypeReference, ClassScope scope) {
656         return true; // do nothing by default, keep traversing
657
}
658     public boolean visit(JavadocMessageSend messageSend, BlockScope scope) {
659         return true; // do nothing by default, keep traversing
660
}
661     public boolean visit(JavadocMessageSend messageSend, ClassScope scope) {
662         return true; // do nothing by default, keep traversing
663
}
664     public boolean visit(JavadocQualifiedTypeReference typeRef, BlockScope scope) {
665         return true; // do nothing by default, keep traversing
666
}
667     public boolean visit(JavadocQualifiedTypeReference typeRef, ClassScope scope) {
668         return true; // do nothing by default, keep traversing
669
}
670     public boolean visit(JavadocReturnStatement statement, BlockScope scope) {
671         return true; // do nothing by default, keep traversing
672
}
673     public boolean visit(JavadocReturnStatement statement, ClassScope scope) {
674         return true; // do nothing by default, keep traversing
675
}
676     public boolean visit(JavadocSingleNameReference argument, BlockScope scope) {
677         return true; // do nothing by default, keep traversing
678
}
679     public boolean visit(JavadocSingleNameReference argument, ClassScope scope) {
680         return true; // do nothing by default, keep traversing
681
}
682     public boolean visit(JavadocSingleTypeReference typeRef, BlockScope scope) {
683         return true; // do nothing by default, keep traversing
684
}
685     public boolean visit(JavadocSingleTypeReference typeRef, ClassScope scope) {
686         return true; // do nothing by default, keep traversing
687
}
688     public boolean visit(LabeledStatement labeledStatement, BlockScope scope) {
689         return true; // do nothing by default, keep traversing
690
}
691     public boolean visit(LocalDeclaration localDeclaration, BlockScope scope) {
692         return true; // do nothing by default, keep traversing
693
}
694     public boolean visit(LongLiteral longLiteral, BlockScope scope) {
695         return true; // do nothing by default, keep traversing
696
}
697     /**
698      * @param annotation
699      * @param scope
700      * @since 3.1
701      */

702     public boolean visit(MarkerAnnotation annotation, BlockScope scope) {
703         return true;
704     }
705     /**
706      * @param pair
707      * @param scope
708      * @since 3.1
709      */

710     public boolean visit(MemberValuePair pair, BlockScope scope) {
711         return true;
712     }
713     public boolean visit(MessageSend messageSend, BlockScope scope) {
714         return true; // do nothing by default, keep traversing
715
}
716     public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
717         return true; // do nothing by default, keep traversing
718
}
719     public boolean visit(
720             StringLiteralConcatenation literal,
721             BlockScope scope) {
722         return true; // do nothing by default, keep traversing
723
}
724     /**
725      * @param annotation
726      * @param scope
727      * @since 3.1
728      */

729     public boolean visit(NormalAnnotation annotation, BlockScope scope) {
730         return true;
731     }
732     public boolean visit(NullLiteral nullLiteral, BlockScope scope) {
733         return true; // do nothing by default, keep traversing
734
}
735     public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) {
736         return true; // do nothing by default, keep traversing
737
}
738     public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope) {
739         return true; // do nothing by default, keep traversing
740
}
741     public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope) {
742         return true; // do nothing by default, keep traversing
743
}
744     public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope) {
745         return true; // do nothing by default, keep traversing
746
}
747     public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope) {
748         return true; // do nothing by default, keep traversing
749
}
750     public boolean visit(PostfixExpression postfixExpression, BlockScope scope) {
751         return true; // do nothing by default, keep traversing
752
}
753     public boolean visit(PrefixExpression prefixExpression, BlockScope scope) {
754         return true; // do nothing by default, keep traversing
755
}
756     public boolean visit(
757             QualifiedAllocationExpression qualifiedAllocationExpression,
758             BlockScope scope) {
759         return true; // do nothing by default, keep traversing
760
}
761     public boolean visit(
762             QualifiedNameReference qualifiedNameReference,
763             BlockScope scope) {
764         return true; // do nothing by default, keep traversing
765
}
766     public boolean visit(
767             QualifiedNameReference qualifiedNameReference,
768             ClassScope scope) {
769         return true; // do nothing by default, keep traversing
770
}
771     public boolean visit(
772             QualifiedSuperReference qualifiedSuperReference,
773             BlockScope scope) {
774         return true; // do nothing by default, keep traversing
775
}
776     public boolean visit(
777             QualifiedSuperReference qualifiedSuperReference,
778             ClassScope scope) {
779         return true; // do nothing by default, keep traversing
780
}
781     public boolean visit(
782             QualifiedThisReference qualifiedThisReference,
783             BlockScope scope) {
784         return true; // do nothing by default, keep traversing
785
}
786     public boolean visit(
787             QualifiedThisReference qualifiedThisReference,
788             ClassScope scope) {
789         return true; // do nothing by default, keep traversing
790
}
791     public boolean visit(
792             QualifiedTypeReference qualifiedTypeReference,
793             BlockScope scope) {
794         return true; // do nothing by default, keep traversing
795
}
796     public boolean visit(
797             QualifiedTypeReference qualifiedTypeReference,
798             ClassScope scope) {
799         return true; // do nothing by default, keep traversing
800
}
801     public boolean visit(ReturnStatement returnStatement, BlockScope scope) {
802         return true; // do nothing by default, keep traversing
803
}
804     /**
805      * @param annotation
806      * @param scope
807      * @since 3.1
808      */

809     public boolean visit(SingleMemberAnnotation annotation, BlockScope scope) {
810         return true;
811     }
812     public boolean visit(
813         SingleNameReference singleNameReference,
814         BlockScope scope) {
815         return true; // do nothing by default, keep traversing
816
}
817     public boolean visit(
818             SingleNameReference singleNameReference,
819             ClassScope scope) {
820         return true; // do nothing by default, keep traversing
821
}
822     public boolean visit(
823             SingleTypeReference singleTypeReference,
824             BlockScope scope) {
825         return true; // do nothing by default, keep traversing
826
}
827     public boolean visit(
828             SingleTypeReference singleTypeReference,
829             ClassScope scope) {
830         return true; // do nothing by default, keep traversing
831
}
832     public boolean visit(StringLiteral stringLiteral, BlockScope scope) {
833         return true; // do nothing by default, keep traversing
834
}
835     public boolean visit(SuperReference superReference, BlockScope scope) {
836         return true; // do nothing by default, keep traversing
837
}
838     public boolean visit(SwitchStatement switchStatement, BlockScope scope) {
839         return true; // do nothing by default, keep traversing
840
}
841     public boolean visit(
842         SynchronizedStatement synchronizedStatement,
843         BlockScope scope) {
844         return true; // do nothing by default, keep traversing
845
}
846     public boolean visit(ThisReference thisReference, BlockScope scope) {
847         return true; // do nothing by default, keep traversing
848
}
849     public boolean visit(ThisReference thisReference, ClassScope scope) {
850         return true; // do nothing by default, keep traversing
851
}
852     public boolean visit(ThrowStatement throwStatement, BlockScope scope) {
853         return true; // do nothing by default, keep traversing
854
}
855     public boolean visit(TrueLiteral trueLiteral, BlockScope scope) {
856         return true; // do nothing by default, keep traversing
857
}
858     public boolean visit(TryStatement tryStatement, BlockScope scope) {
859         return true; // do nothing by default, keep traversing
860
}
861     public boolean visit(
862         TypeDeclaration localTypeDeclaration,
863         BlockScope scope) {
864         return true; // do nothing by default, keep traversing
865
}
866     public boolean visit(
867         TypeDeclaration memberTypeDeclaration,
868         ClassScope scope) {
869         return true; // do nothing by default, keep traversing
870
}
871     public boolean visit(
872         TypeDeclaration typeDeclaration,
873         CompilationUnitScope scope) {
874         return true; // do nothing by default, keep traversing
875
}
876     public boolean visit(TypeParameter typeParameter, BlockScope scope) {
877         return true; // do nothing by default, keep traversing
878
}
879     public boolean visit(TypeParameter typeParameter, ClassScope scope) {
880         return true; // do nothing by default, keep traversing
881
}
882     public boolean visit(UnaryExpression unaryExpression, BlockScope scope) {
883         return true; // do nothing by default, keep traversing
884
}
885     public boolean visit(WhileStatement whileStatement, BlockScope scope) {
886         return true; // do nothing by default, keep traversing
887
}
888     public boolean visit(Wildcard wildcard, BlockScope scope) {
889         return true; // do nothing by default, keep traversing
890
}
891     public boolean visit(Wildcard wildcard, ClassScope scope) {
892         return true; // do nothing by default, keep traversing
893
}
894 }
895
Popular Tags