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