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