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