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