1 package org.apache.velocity.runtime.parser;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.velocity.runtime.parser.node.ASTAddNode;
23 import org.apache.velocity.runtime.parser.node.ASTAndNode;
24 import org.apache.velocity.runtime.parser.node.ASTAssignment;
25 import org.apache.velocity.runtime.parser.node.ASTBlock;
26 import org.apache.velocity.runtime.parser.node.ASTComment;
27 import org.apache.velocity.runtime.parser.node.ASTDirective;
28 import org.apache.velocity.runtime.parser.node.ASTDivNode;
29 import org.apache.velocity.runtime.parser.node.ASTEQNode;
30 import org.apache.velocity.runtime.parser.node.ASTElseIfStatement;
31 import org.apache.velocity.runtime.parser.node.ASTElseStatement;
32 import org.apache.velocity.runtime.parser.node.ASTEscape;
33 import org.apache.velocity.runtime.parser.node.ASTEscapedDirective;
34 import org.apache.velocity.runtime.parser.node.ASTExpression;
35 import org.apache.velocity.runtime.parser.node.ASTFalse;
36 import org.apache.velocity.runtime.parser.node.ASTFloatingPointLiteral;
37 import org.apache.velocity.runtime.parser.node.ASTGENode;
38 import org.apache.velocity.runtime.parser.node.ASTGTNode;
39 import org.apache.velocity.runtime.parser.node.ASTIdentifier;
40 import org.apache.velocity.runtime.parser.node.ASTIfStatement;
41 import org.apache.velocity.runtime.parser.node.ASTIntegerLiteral;
42 import org.apache.velocity.runtime.parser.node.ASTIntegerRange;
43 import org.apache.velocity.runtime.parser.node.ASTLENode;
44 import org.apache.velocity.runtime.parser.node.ASTLTNode;
45 import org.apache.velocity.runtime.parser.node.ASTMap;
46 import org.apache.velocity.runtime.parser.node.ASTMethod;
47 import org.apache.velocity.runtime.parser.node.ASTModNode;
48 import org.apache.velocity.runtime.parser.node.ASTMulNode;
49 import org.apache.velocity.runtime.parser.node.ASTNENode;
50 import org.apache.velocity.runtime.parser.node.ASTNotNode;
51 import org.apache.velocity.runtime.parser.node.ASTObjectArray;
52 import org.apache.velocity.runtime.parser.node.ASTOrNode;
53 import org.apache.velocity.runtime.parser.node.ASTReference;
54 import org.apache.velocity.runtime.parser.node.ASTSetDirective;
55 import org.apache.velocity.runtime.parser.node.ASTStop;
56 import org.apache.velocity.runtime.parser.node.ASTStringLiteral;
57 import org.apache.velocity.runtime.parser.node.ASTSubtractNode;
58 import org.apache.velocity.runtime.parser.node.ASTText;
59 import org.apache.velocity.runtime.parser.node.ASTTrue;
60 import org.apache.velocity.runtime.parser.node.ASTWord;
61 import org.apache.velocity.runtime.parser.node.ASTprocess;
62 import org.apache.velocity.runtime.parser.node.SimpleNode;
63
64
65
66
67 public interface ParserVisitor
68 {
69
70
71
72
73
74 public Object visit(SimpleNode node, Object data);
75
76
77
78
79
80
81 public Object visit(ASTprocess node, Object data);
82
83
84
85
86
87
88 public Object visit(ASTEscapedDirective node, Object data);
89
90
91
92
93
94
95 public Object visit(ASTEscape node, Object data);
96
97
98
99
100
101
102 public Object visit(ASTComment node, Object data);
103
104
105
106
107
108
109 public Object visit(ASTFloatingPointLiteral node, Object data);
110
111
112
113
114
115
116 public Object visit(ASTIntegerLiteral node, Object data);
117
118
119
120
121
122
123 public Object visit(ASTStringLiteral node, Object data);
124
125
126
127
128
129
130 public Object visit(ASTIdentifier node, Object data);
131
132
133
134
135
136
137 public Object visit(ASTWord node, Object data);
138
139
140
141
142
143
144 public Object visit(ASTDirective node, Object data);
145
146
147
148
149
150
151 public Object visit(ASTBlock node, Object data);
152
153
154
155
156
157
158 public Object visit(ASTMap node, Object data);
159
160
161
162
163
164
165 public Object visit(ASTObjectArray node, Object data);
166
167
168
169
170
171
172 public Object visit(ASTIntegerRange node, Object data);
173
174
175
176
177
178
179 public Object visit(ASTMethod node, Object data);
180
181
182
183
184
185
186 public Object visit(ASTReference node, Object data);
187
188
189
190
191
192
193 public Object visit(ASTTrue node, Object data);
194
195
196
197
198
199
200 public Object visit(ASTFalse node, Object data);
201
202
203
204
205
206
207 public Object visit(ASTText node, Object data);
208
209
210
211
212
213
214 public Object visit(ASTIfStatement node, Object data);
215
216
217
218
219
220
221 public Object visit(ASTElseStatement node, Object data);
222
223
224
225
226
227
228 public Object visit(ASTElseIfStatement node, Object data);
229
230
231
232
233
234
235 public Object visit(ASTSetDirective node, Object data);
236
237
238
239
240
241
242 public Object visit(ASTStop node, Object data);
243
244
245
246
247
248
249 public Object visit(ASTExpression node, Object data);
250
251
252
253
254
255
256 public Object visit(ASTAssignment node, Object data);
257
258
259
260
261
262
263 public Object visit(ASTOrNode node, Object data);
264
265
266
267
268
269
270 public Object visit(ASTAndNode node, Object data);
271
272
273
274
275
276
277 public Object visit(ASTEQNode node, Object data);
278
279
280
281
282
283
284 public Object visit(ASTNENode node, Object data);
285
286
287
288
289
290
291 public Object visit(ASTLTNode node, Object data);
292
293
294
295
296
297
298 public Object visit(ASTGTNode node, Object data);
299
300
301
302
303
304
305 public Object visit(ASTLENode node, Object data);
306
307
308
309
310
311
312 public Object visit(ASTGENode node, Object data);
313
314
315
316
317
318
319 public Object visit(ASTAddNode node, Object data);
320
321
322
323
324
325
326 public Object visit(ASTSubtractNode node, Object data);
327
328
329
330
331
332
333 public Object visit(ASTMulNode node, Object data);
334
335
336
337
338
339
340 public Object visit(ASTDivNode node, Object data);
341
342
343
344
345
346
347 public Object visit(ASTModNode node, Object data);
348
349
350
351
352
353
354 public Object visit(ASTNotNode node, Object data);
355
356
357
358
359
360
361 }