View Javadoc

1   package org.apache.velocity.runtime.parser.node;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * Interface used in implementation of visitor pattern.  Based on
24   * code autogenerated by JavaCC. Formerly found in package
25   * org.apache.velocity.runtime.parser.
26   *
27   * @version $Id: ParserVisitor.java 747106 2009-02-23 19:25:14Z nbubna $
28   * @since 1.5
29   */
30  public interface ParserVisitor
31  {
32    /**
33     * @param node
34     * @param data
35     * @return The object rendered by this node.
36     */
37    public Object visit(SimpleNode node, Object data);
38  
39    /**
40     * @param node
41     * @param data
42     * @return The object rendered by this node.
43     */
44    public Object visit(ASTprocess node, Object data);
45  
46    /**
47     * @param node
48     * @param data
49     * @return The object rendered by this node.
50     */
51    public Object visit(ASTEscapedDirective node, Object data);
52  
53    /**
54     * @param node
55     * @param data
56     * @return The object rendered by this node.
57     */
58    public Object visit(ASTEscape node, Object data);
59  
60    /**
61     * @param node
62     * @param data
63     * @return The object rendered by this node.
64     */
65    public Object visit(ASTComment node, Object data);
66  
67    /**
68     * @param node
69     * @param data
70     * @return The object rendered by this node.
71     */
72    public Object visit(ASTFloatingPointLiteral node, Object data);
73  
74    /**
75     * @param node
76     * @param data
77     * @return The object rendered by this node.
78     */
79    public Object visit(ASTIntegerLiteral node, Object data);
80  
81    /**
82     * @param node
83     * @param data
84     * @return The object rendered by this node.
85     */
86    public Object visit(ASTStringLiteral node, Object data);
87  
88    /**
89     * @param node
90     * @param data
91     * @return The object rendered by this node.
92     */
93    public Object visit(ASTIdentifier node, Object data);
94  
95    /**
96     * @param node
97     * @param data
98     * @return The object rendered by this node.
99     */
100   public Object visit(ASTWord node, Object data);
101 
102   /**
103    * @param node
104    * @param data
105    * @return The object rendered by this node.
106    */
107   public Object visit(ASTDirective node, Object data);
108 
109   /**
110    * @param node
111    * @param data
112    * @return The object rendered by this node.
113    */
114   public Object visit(ASTBlock node, Object data);
115 
116   /**
117    * @param node
118    * @param data
119    * @return The object rendered by this node.
120    */
121   public Object visit(ASTMap node, Object data);
122 
123   /**
124    * @param node
125    * @param data
126    * @return The object rendered by this node.
127    */
128   public Object visit(ASTObjectArray node, Object data);
129 
130   /**
131    * @param node
132    * @param data
133    * @return The object rendered by this node.
134    */
135   public Object visit(ASTIntegerRange node, Object data);
136 
137   /**
138    * @param node
139    * @param data
140    * @return The object rendered by this node.
141    */
142   public Object visit(ASTMethod node, Object data);
143 
144   /**
145    * @param node
146    * @param data
147    * @return The object rendered by this node.
148    */
149   public Object visit(ASTReference node, Object data);
150 
151   /**
152    * @param node
153    * @param data
154    * @return The object rendered by this node.
155    */
156   public Object visit(ASTTrue node, Object data);
157 
158   /**
159    * @param node
160    * @param data
161    * @return The object rendered by this node.
162    */
163   public Object visit(ASTFalse node, Object data);
164 
165   /**
166    * @param node
167    * @param data
168    * @return The object rendered by this node.
169    */
170   public Object visit(ASTText node, Object data);
171 
172   /**
173    * @param node
174    * @param data
175    * @return The object rendered by this node.
176    */
177   public Object visit(ASTIfStatement node, Object data);
178 
179   /**
180    * @param node
181    * @param data
182    * @return The object rendered by this node.
183    */
184   public Object visit(ASTElseStatement node, Object data);
185 
186   /**
187    * @param node
188    * @param data
189    * @return The object rendered by this node.
190    */
191   public Object visit(ASTElseIfStatement node, Object data);
192 
193   /**
194    * @param node
195    * @param data
196    * @return The object rendered by this node.
197    */
198   public Object visit(ASTSetDirective node, Object data);
199 
200   /**
201    * @param node
202    * @param data
203    * @return The object rendered by this node.
204    */
205   public Object visit(ASTExpression node, Object data);
206 
207   /**
208    * @param node
209    * @param data
210    * @return The object rendered by this node.
211    */
212   public Object visit(ASTAssignment node, Object data);
213 
214   /**
215    * @param node
216    * @param data
217    * @return The object rendered by this node.
218    */
219   public Object visit(ASTOrNode node, Object data);
220 
221   /**
222    * @param node
223    * @param data
224    * @return The object rendered by this node.
225    */
226   public Object visit(ASTAndNode node, Object data);
227 
228   /**
229    * @param node
230    * @param data
231    * @return The object rendered by this node.
232    */
233   public Object visit(ASTEQNode node, Object data);
234 
235   /**
236    * @param node
237    * @param data
238    * @return The object rendered by this node.
239    */
240   public Object visit(ASTNENode node, Object data);
241 
242   /**
243    * @param node
244    * @param data
245    * @return The object rendered by this node.
246    */
247   public Object visit(ASTLTNode node, Object data);
248 
249   /**
250    * @param node
251    * @param data
252    * @return The object rendered by this node.
253    */
254   public Object visit(ASTGTNode node, Object data);
255 
256   /**
257    * @param node
258    * @param data
259    * @return The object rendered by this node.
260    */
261   public Object visit(ASTLENode node, Object data);
262 
263   /**
264    * @param node
265    * @param data
266    * @return The object rendered by this node.
267    */
268   public Object visit(ASTGENode node, Object data);
269 
270   /**
271    * @param node
272    * @param data
273    * @return The object rendered by this node.
274    */
275   public Object visit(ASTAddNode node, Object data);
276 
277   /**
278    * @param node
279    * @param data
280    * @return The object rendered by this node.
281    */
282   public Object visit(ASTSubtractNode node, Object data);
283 
284   /**
285    * @param node
286    * @param data
287    * @return The object rendered by this node.
288    */
289   public Object visit(ASTMulNode node, Object data);
290 
291   /**
292    * @param node
293    * @param data
294    * @return The object rendered by this node.
295    */
296   public Object visit(ASTDivNode node, Object data);
297 
298   /**
299    * @param node
300    * @param data
301    * @return The object rendered by this node.
302    */
303   public Object visit(ASTModNode node, Object data);
304 
305   /**
306    * @param node
307    * @param data
308    * @return The object rendered by this node.
309    */
310   public Object visit(ASTNotNode node, Object data);
311 
312   /**
313    * @param node
314    * @param data
315    * @return The object rendered by this node.
316    */
317 }