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