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