001: /*
002: * Copyright (C) 2007 Júlio Vilmar Gesser.
003: *
004: * This file is part of Java 1.5 parser and Abstract Syntax Tree.
005: *
006: * Java 1.5 parser and Abstract Syntax Tree is free software: you can redistribute it and/or modify
007: * it under the terms of the GNU Lesser General Public License as published by
008: * the Free Software Foundation, either version 3 of the License, or
009: * (at your option) any later version.
010: *
011: * Java 1.5 parser and Abstract Syntax Tree is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public License
017: * along with Java 1.5 parser and Abstract Syntax Tree. If not, see <http://www.gnu.org/licenses/>.
018: */
019: /*
020: * Created on 05/10/2006
021: */
022: package japa.parser.ast.visitor;
023:
024: import japa.parser.ast.CompilationUnit;
025: import japa.parser.ast.ImportDeclaration;
026: import japa.parser.ast.Node;
027: import japa.parser.ast.PackageDeclaration;
028: import japa.parser.ast.TypeParameter;
029: import japa.parser.ast.body.AnnotationDeclaration;
030: import japa.parser.ast.body.AnnotationMemberDeclaration;
031: import japa.parser.ast.body.ClassOrInterfaceDeclaration;
032: import japa.parser.ast.body.ConstructorDeclaration;
033: import japa.parser.ast.body.EmptyMemberDeclaration;
034: import japa.parser.ast.body.EmptyTypeDeclaration;
035: import japa.parser.ast.body.EnumConstantDeclaration;
036: import japa.parser.ast.body.EnumDeclaration;
037: import japa.parser.ast.body.FieldDeclaration;
038: import japa.parser.ast.body.InitializerDeclaration;
039: import japa.parser.ast.body.MethodDeclaration;
040: import japa.parser.ast.body.Parameter;
041: import japa.parser.ast.body.VariableDeclarator;
042: import japa.parser.ast.body.VariableDeclaratorId;
043: import japa.parser.ast.expr.ArrayAccessExpr;
044: import japa.parser.ast.expr.ArrayCreationExpr;
045: import japa.parser.ast.expr.ArrayInitializerExpr;
046: import japa.parser.ast.expr.AssignExpr;
047: import japa.parser.ast.expr.BinaryExpr;
048: import japa.parser.ast.expr.BooleanLiteralExpr;
049: import japa.parser.ast.expr.CastExpr;
050: import japa.parser.ast.expr.CharLiteralExpr;
051: import japa.parser.ast.expr.ClassExpr;
052: import japa.parser.ast.expr.ConditionalExpr;
053: import japa.parser.ast.expr.DoubleLiteralExpr;
054: import japa.parser.ast.expr.EnclosedExpr;
055: import japa.parser.ast.expr.FieldAccessExpr;
056: import japa.parser.ast.expr.InstanceOfExpr;
057: import japa.parser.ast.expr.IntegerLiteralExpr;
058: import japa.parser.ast.expr.IntegerLiteralMinValueExpr;
059: import japa.parser.ast.expr.LongLiteralExpr;
060: import japa.parser.ast.expr.LongLiteralMinValueExpr;
061: import japa.parser.ast.expr.MarkerAnnotationExpr;
062: import japa.parser.ast.expr.MemberValuePair;
063: import japa.parser.ast.expr.MethodCallExpr;
064: import japa.parser.ast.expr.NameExpr;
065: import japa.parser.ast.expr.NormalAnnotationExpr;
066: import japa.parser.ast.expr.NullLiteralExpr;
067: import japa.parser.ast.expr.ObjectCreationExpr;
068: import japa.parser.ast.expr.QualifiedNameExpr;
069: import japa.parser.ast.expr.SingleMemberAnnotationExpr;
070: import japa.parser.ast.expr.StringLiteralExpr;
071: import japa.parser.ast.expr.SuperExpr;
072: import japa.parser.ast.expr.SuperMemberAccessExpr;
073: import japa.parser.ast.expr.ThisExpr;
074: import japa.parser.ast.expr.UnaryExpr;
075: import japa.parser.ast.expr.VariableDeclarationExpr;
076: import japa.parser.ast.stmt.AssertStmt;
077: import japa.parser.ast.stmt.BlockStmt;
078: import japa.parser.ast.stmt.BreakStmt;
079: import japa.parser.ast.stmt.CatchClause;
080: import japa.parser.ast.stmt.ContinueStmt;
081: import japa.parser.ast.stmt.DoStmt;
082: import japa.parser.ast.stmt.EmptyStmt;
083: import japa.parser.ast.stmt.ExplicitConstructorInvocationStmt;
084: import japa.parser.ast.stmt.ExpressionStmt;
085: import japa.parser.ast.stmt.ForStmt;
086: import japa.parser.ast.stmt.ForeachStmt;
087: import japa.parser.ast.stmt.IfStmt;
088: import japa.parser.ast.stmt.LabeledStmt;
089: import japa.parser.ast.stmt.ReturnStmt;
090: import japa.parser.ast.stmt.SwitchEntryStmt;
091: import japa.parser.ast.stmt.SwitchStmt;
092: import japa.parser.ast.stmt.SynchronizedStmt;
093: import japa.parser.ast.stmt.ThrowStmt;
094: import japa.parser.ast.stmt.TryStmt;
095: import japa.parser.ast.stmt.TypeDeclarationStmt;
096: import japa.parser.ast.stmt.WhileStmt;
097: import japa.parser.ast.type.ClassOrInterfaceType;
098: import japa.parser.ast.type.PrimitiveType;
099: import japa.parser.ast.type.ReferenceType;
100: import japa.parser.ast.type.VoidType;
101: import japa.parser.ast.type.WildcardType;
102:
103: /**
104: * @author Julio Vilmar Gesser
105: */
106: public interface VoidVisitor<A> {
107:
108: public void visit(Node n, A arg);
109:
110: //- Compilation Unit ----------------------------------
111:
112: public void visit(CompilationUnit n, A arg);
113:
114: public void visit(PackageDeclaration n, A arg);
115:
116: public void visit(ImportDeclaration n, A arg);
117:
118: public void visit(TypeParameter n, A arg);
119:
120: //- Body ----------------------------------------------
121:
122: public void visit(ClassOrInterfaceDeclaration n, A arg);
123:
124: public void visit(EnumDeclaration n, A arg);
125:
126: public void visit(EmptyTypeDeclaration n, A arg);
127:
128: public void visit(EnumConstantDeclaration n, A arg);
129:
130: public void visit(AnnotationDeclaration n, A arg);
131:
132: public void visit(AnnotationMemberDeclaration n, A arg);
133:
134: public void visit(FieldDeclaration n, A arg);
135:
136: public void visit(VariableDeclarator n, A arg);
137:
138: public void visit(VariableDeclaratorId n, A arg);
139:
140: public void visit(ConstructorDeclaration n, A arg);
141:
142: public void visit(MethodDeclaration n, A arg);
143:
144: public void visit(Parameter n, A arg);
145:
146: public void visit(EmptyMemberDeclaration n, A arg);
147:
148: public void visit(InitializerDeclaration n, A arg);
149:
150: //- Type ----------------------------------------------
151:
152: public void visit(ClassOrInterfaceType n, A arg);
153:
154: public void visit(PrimitiveType n, A arg);
155:
156: public void visit(ReferenceType n, A arg);
157:
158: public void visit(VoidType n, A arg);
159:
160: public void visit(WildcardType n, A arg);
161:
162: //- Expression ----------------------------------------
163:
164: public void visit(ArrayAccessExpr n, A arg);
165:
166: public void visit(ArrayCreationExpr n, A arg);
167:
168: public void visit(ArrayInitializerExpr n, A arg);
169:
170: public void visit(AssignExpr n, A arg);
171:
172: public void visit(BinaryExpr n, A arg);
173:
174: public void visit(CastExpr n, A arg);
175:
176: public void visit(ClassExpr n, A arg);
177:
178: public void visit(ConditionalExpr n, A arg);
179:
180: public void visit(EnclosedExpr n, A arg);
181:
182: public void visit(FieldAccessExpr n, A arg);
183:
184: public void visit(InstanceOfExpr n, A arg);
185:
186: public void visit(StringLiteralExpr n, A arg);
187:
188: public void visit(IntegerLiteralExpr n, A arg);
189:
190: public void visit(LongLiteralExpr n, A arg);
191:
192: public void visit(IntegerLiteralMinValueExpr n, A arg);
193:
194: public void visit(LongLiteralMinValueExpr n, A arg);
195:
196: public void visit(CharLiteralExpr n, A arg);
197:
198: public void visit(DoubleLiteralExpr n, A arg);
199:
200: public void visit(BooleanLiteralExpr n, A arg);
201:
202: public void visit(NullLiteralExpr n, A arg);
203:
204: public void visit(MethodCallExpr n, A arg);
205:
206: public void visit(NameExpr n, A arg);
207:
208: public void visit(ObjectCreationExpr n, A arg);
209:
210: public void visit(QualifiedNameExpr n, A arg);
211:
212: public void visit(SuperMemberAccessExpr n, A arg);
213:
214: public void visit(ThisExpr n, A arg);
215:
216: public void visit(SuperExpr n, A arg);
217:
218: public void visit(UnaryExpr n, A arg);
219:
220: public void visit(VariableDeclarationExpr n, A arg);
221:
222: public void visit(MarkerAnnotationExpr n, A arg);
223:
224: public void visit(SingleMemberAnnotationExpr n, A arg);
225:
226: public void visit(NormalAnnotationExpr n, A arg);
227:
228: public void visit(MemberValuePair n, A arg);
229:
230: //- Statements ----------------------------------------
231:
232: public void visit(ExplicitConstructorInvocationStmt n, A arg);
233:
234: public void visit(TypeDeclarationStmt n, A arg);
235:
236: public void visit(AssertStmt n, A arg);
237:
238: public void visit(BlockStmt n, A arg);
239:
240: public void visit(LabeledStmt n, A arg);
241:
242: public void visit(EmptyStmt n, A arg);
243:
244: public void visit(ExpressionStmt n, A arg);
245:
246: public void visit(SwitchStmt n, A arg);
247:
248: public void visit(SwitchEntryStmt n, A arg);
249:
250: public void visit(BreakStmt n, A arg);
251:
252: public void visit(ReturnStmt n, A arg);
253:
254: public void visit(IfStmt n, A arg);
255:
256: public void visit(WhileStmt n, A arg);
257:
258: public void visit(ContinueStmt n, A arg);
259:
260: public void visit(DoStmt n, A arg);
261:
262: public void visit(ForeachStmt n, A arg);
263:
264: public void visit(ForStmt n, A arg);
265:
266: public void visit(ThrowStmt n, A arg);
267:
268: public void visit(SynchronizedStmt n, A arg);
269:
270: public void visit(TryStmt n, A arg);
271:
272: public void visit(CatchClause n, A arg);
273:
274: }
|