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 518001 2007-03-14 04:29:22Z wglass $
28   */
29  public interface ParserVisitor
30  {
31    /**
32     * @param node
33     * @param data
34     * @return The object rendered by this node.
35     */
36    public Object visit(SimpleNode node, Object data);
37  
38    /**
39     * @param node
40     * @param data
41     * @return The object rendered by this node.
42     */
43    public Object visit(ASTprocess node, Object data);
44  
45    /**
46     * @param node
47     * @param data
48     * @return The object rendered by this node.
49     */
50    public Object visit(ASTEscapedDirective node, Object data);
51  
52    /**
53     * @param node
54     * @param data
55     * @return The object rendered by this node.
56     */
57    public Object visit(ASTEscape node, Object data);
58  
59    /**
60     * @param node
61     * @param data
62     * @return The object rendered by this node.
63     */
64    public Object visit(ASTComment node, Object data);
65  
66    /**
67     * @param node
68     * @param data
69     * @return The object rendered by this node.
70     */
71    public Object visit(ASTFloatingPointLiteral node, Object data);
72  
73    /**
74     * @param node
75     * @param data
76     * @return The object rendered by this node.
77     */
78    public Object visit(ASTIntegerLiteral node, Object data);
79  
80    /**
81     * @param node
82     * @param data
83     * @return The object rendered by this node.
84     */
85    public Object visit(ASTStringLiteral node, Object data);
86  
87    /**
88     * @param node
89     * @param data
90     * @return The object rendered by this node.
91     */
92    public Object visit(ASTIdentifier node, Object data);
93  
94    /**
95     * @param node
96     * @param data
97     * @return The object rendered by this node.
98     */
99    public Object visit(ASTWord node, Object data);
100 
101   /**
102    * @param node
103    * @param data
104    * @return The object rendered by this node.
105    */
106   public Object visit(ASTDirective node, Object data);
107 
108   /**
109    * @param node
110    * @param data
111    * @return The object rendered by this node.
112    */
113   public Object visit(ASTBlock node, Object data);
114 
115   /**
116    * @param node
117    * @param data
118    * @return The object rendered by this node.
119    */
120   public Object visit(ASTMap node, Object data);
121 
122   /**
123    * @param node
124    * @param data
125    * @return The object rendered by this node.
126    */
127   public Object visit(ASTObjectArray node, Object data);
128 
129   /**
130    * @param node
131    * @param data
132    * @return The object rendered by this node.
133    */
134   public Object visit(ASTIntegerRange node, Object data);
135 
136   /**
137    * @param node
138    * @param data
139    * @return The object rendered by this node.
140    */
141   public Object visit(ASTMethod node, Object data);
142 
143   /**
144    * @param node
145    * @param data
146    * @return The object rendered by this node.
147    */
148   public Object visit(ASTReference node, Object data);
149 
150   /**
151    * @param node
152    * @param data
153    * @return The object rendered by this node.
154    */
155   public Object visit(ASTTrue node, Object data);
156 
157   /**
158    * @param node
159    * @param data
160    * @return The object rendered by this node.
161    */
162   public Object visit(ASTFalse node, Object data);
163 
164   /**
165    * @param node
166    * @param data
167    * @return The object rendered by this node.
168    */
169   public Object visit(ASTText node, Object data);
170 
171   /**
172    * @param node
173    * @param data
174    * @return The object rendered by this node.
175    */
176   public Object visit(ASTIfStatement node, Object data);
177 
178   /**
179    * @param node
180    * @param data
181    * @return The object rendered by this node.
182    */
183   public Object visit(ASTElseStatement node, Object data);
184 
185   /**
186    * @param node
187    * @param data
188    * @return The object rendered by this node.
189    */
190   public Object visit(ASTElseIfStatement node, Object data);
191 
192   /**
193    * @param node
194    * @param data
195    * @return The object rendered by this node.
196    */
197   public Object visit(ASTSetDirective node, Object data);
198 
199   /**
200    * @param node
201    * @param data
202    * @return The object rendered by this node.
203    */
204   public Object visit(ASTStop node, Object data);
205 
206   /**
207    * @param node
208    * @param data
209    * @return The object rendered by this node.
210    */
211   public Object visit(ASTExpression node, Object data);
212 
213   /**
214    * @param node
215    * @param data
216    * @return The object rendered by this node.
217    */
218   public Object visit(ASTAssignment node, Object data);
219 
220   /**
221    * @param node
222    * @param data
223    * @return The object rendered by this node.
224    */
225   public Object visit(ASTOrNode node, Object data);
226 
227   /**
228    * @param node
229    * @param data
230    * @return The object rendered by this node.
231    */
232   public Object visit(ASTAndNode node, Object data);
233 
234   /**
235    * @param node
236    * @param data
237    * @return The object rendered by this node.
238    */
239   public Object visit(ASTEQNode node, Object data);
240 
241   /**
242    * @param node
243    * @param data
244    * @return The object rendered by this node.
245    */
246   public Object visit(ASTNENode node, Object data);
247 
248   /**
249    * @param node
250    * @param data
251    * @return The object rendered by this node.
252    */
253   public Object visit(ASTLTNode node, Object data);
254 
255   /**
256    * @param node
257    * @param data
258    * @return The object rendered by this node.
259    */
260   public Object visit(ASTGTNode node, Object data);
261 
262   /**
263    * @param node
264    * @param data
265    * @return The object rendered by this node.
266    */
267   public Object visit(ASTLENode node, Object data);
268 
269   /**
270    * @param node
271    * @param data
272    * @return The object rendered by this node.
273    */
274   public Object visit(ASTGENode node, Object data);
275 
276   /**
277    * @param node
278    * @param data
279    * @return The object rendered by this node.
280    */
281   public Object visit(ASTAddNode node, Object data);
282 
283   /**
284    * @param node
285    * @param data
286    * @return The object rendered by this node.
287    */
288   public Object visit(ASTSubtractNode node, Object data);
289 
290   /**
291    * @param node
292    * @param data
293    * @return The object rendered by this node.
294    */
295   public Object visit(ASTMulNode node, Object data);
296 
297   /**
298    * @param node
299    * @param data
300    * @return The object rendered by this node.
301    */
302   public Object visit(ASTDivNode node, Object data);
303 
304   /**
305    * @param node
306    * @param data
307    * @return The object rendered by this node.
308    */
309   public Object visit(ASTModNode node, Object data);
310 
311   /**
312    * @param node
313    * @param data
314    * @return The object rendered by this node.
315    */
316   public Object visit(ASTNotNode node, Object data);
317 
318   /**
319    * @param node
320    * @param data
321    * @return The object rendered by this node.
322    */
323 }