001: /**
002: * Speedo: an implementation of JDO compliant personality on top of JORM generic
003: * I/O sub-system.
004: * Copyright (C) 2001-2006 France Telecom
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2 of the License, or (at your option) any later version.
010: *
011: * This library 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 GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: * Contact: speedo@objectweb.org
021: *
022: * Authors: A. Lefebvre
023: */package org.objectweb.speedo.query.ejb.parser;
024:
025: import java.util.Stack;
026:
027: import org.objectweb.speedo.query.ejb.parser.SimpleNode;
028: import org.objectweb.speedo.query.lib.SpeedoQueryHelper;
029:
030: /**
031: * @author Alexandre Lefebvre
032: */
033: public class EJBQLAbstractVisitor extends SpeedoQueryHelper implements
034: EJBQLVisitor {
035:
036: /**
037: * ********************* VISITOR METHODS ***********************************
038: */
039:
040: /**
041: * Visit method to call from constructor.
042: * Child node visitors get a <code>java.util.Stack</code> as data parameter.
043: * @throws java.lang.Exception any nested exception thrown from other visit method
044: */
045: public Object visit(SimpleNode node) {
046: return visit(node, new Stack());
047: }
048:
049: /**
050: * Generic visit method that traverses all child nodes
051: */
052: public Object visit(SimpleNode node, Object data) {
053: return node.childrenAccept(this , data);
054: }
055:
056: public Object visit(ASTEJBQL node, Object data) {
057: return null;
058: }
059:
060: public Object visit(ASTSelectStatement node, Object data) {
061: return null;
062: }
063:
064: public Object visit(ASTUpdateStatement node, Object data) {
065: return null;
066: }
067:
068: public Object visit(ASTDeleteStatement node, Object data) {
069: return null;
070: }
071:
072: public Object visit(ASTFromClause node, Object data) {
073: return null;
074: }
075:
076: public Object visit(ASTIdentificationVariableDeclaration node,
077: Object data) {
078: return null;
079: }
080:
081: public Object visit(ASTRangeVariableDeclaration node, Object data) {
082: return null;
083: }
084:
085: public Object visit(ASTJoin node, Object data) {
086: return null;
087: }
088:
089: public Object visit(ASTFetchJoin node, Object data) {
090: return null;
091: }
092:
093: public Object visit(ASTJoinSpec node, Object data) {
094: return null;
095: }
096:
097: public Object visit(ASTCollectionMemberDeclaration node, Object data) {
098: return null;
099: }
100:
101: public Object visit(ASTPathExpression node, Object data) {
102: return null;
103: }
104:
105: public Object visit(ASTUpdateClause node, Object data) {
106: return null;
107: }
108:
109: public Object visit(ASTUpdateItem node, Object data) {
110: return null;
111: }
112:
113: public Object visit(ASTNewValue node, Object data) {
114: return null;
115: }
116:
117: public Object visit(ASTDeleteClause node, Object data) {
118: return null;
119: }
120:
121: public Object visit(ASTSelectClause node, Object data) {
122: return null;
123: }
124:
125: public Object visit(ASTSelectExpression node, Object data) {
126: return null;
127: }
128:
129: public Object visit(ASTConstructorExpression node, Object data) {
130: return null;
131: }
132:
133: public Object visit(ASTConstructorItem node, Object data) {
134: return null;
135: }
136:
137: public Object visit(ASTConstructorName node, Object data) {
138: return null;
139: }
140:
141: public Object visit(ASTAggregateSelectExpression node, Object data) {
142: return null;
143: }
144:
145: public Object visit(ASTWhereClause node, Object data) {
146: return null;
147: }
148:
149: public Object visit(ASTGroupByClause node, Object data) {
150: return null;
151: }
152:
153: public Object visit(ASTGroupByItem node, Object data) {
154: return null;
155: }
156:
157: public Object visit(ASTHavingClause node, Object data) {
158: return null;
159: }
160:
161: public Object visit(ASTOrderByClause node, Object data) {
162: return null;
163: }
164:
165: public Object visit(ASTOrderByItem node, Object data) {
166: return null;
167: }
168:
169: public Object visit(ASTSubQuery node, Object data) {
170: return null;
171: }
172:
173: public Object visit(ASTSubqueryFromClause node, Object data) {
174: return null;
175: }
176:
177: public Object visit(
178: ASTSubselectIdentificationVariableDeclaration node,
179: Object data) {
180: return null;
181: }
182:
183: public Object visit(ASTSimpleSelectClause node, Object data) {
184: return null;
185: }
186:
187: public Object visit(ASTSimpleSelectExpression node, Object data) {
188: return null;
189: }
190:
191: public Object visit(ASTConditionalExpression node, Object data) {
192: return null;
193: }
194:
195: public Object visit(ASTConditionalTerm node, Object data) {
196: return null;
197: }
198:
199: public Object visit(ASTConditionalFactor node, Object data) {
200: return null;
201: }
202:
203: public Object visit(ASTConditionalPrimary node, Object data) {
204: return null;
205: }
206:
207: public Object visit(ASTSimpleCondExpression node, Object data) {
208: return null;
209: }
210:
211: public Object visit(ASTBetweenExpression node, Object data) {
212: return null;
213: }
214:
215: public Object visit(ASTInExpression node, Object data) {
216: return null;
217: }
218:
219: public Object visit(ASTInItem node, Object data) {
220: return null;
221: }
222:
223: public Object visit(ASTLikeExpression node, Object data) {
224: return null;
225: }
226:
227: public Object visit(ASTNullComparisonExpression node, Object data) {
228: return null;
229: }
230:
231: public Object visit(ASTEmptyCollectionComparisonExpression node,
232: Object data) {
233: return null;
234: }
235:
236: public Object visit(ASTCollectionMemberExpression node, Object data) {
237: return null;
238: }
239:
240: public Object visit(ASTExistsExpression node, Object data) {
241: return null;
242: }
243:
244: public Object visit(ASTAllOrAnyExpression node, Object data) {
245: return null;
246: }
247:
248: public Object visit(ASTComparisonExpression node, Object data) {
249: return null;
250: }
251:
252: public Object visit(ASTComparisonOperator node, Object data) {
253: return null;
254: }
255:
256: public Object visit(ASTArithmeticExpression node, Object data) {
257: return null;
258: }
259:
260: public Object visit(ASTSimpleArithmeticExpression node, Object data) {
261: return null;
262: }
263:
264: public Object visit(ASTArithmeticTerm node, Object data) {
265: return null;
266: }
267:
268: public Object visit(ASTArithmeticFactor node, Object data) {
269: return null;
270: }
271:
272: public Object visit(ASTArithmeticPrimary node, Object data) {
273: return null;
274: }
275:
276: public Object visit(ASTStringExpression node, Object data) {
277: return null;
278: }
279:
280: public Object visit(ASTStringPrimary node, Object data) {
281: return null;
282: }
283:
284: public Object visit(ASTDatetimeExpression node, Object data) {
285: return null;
286: }
287:
288: public Object visit(ASTDatetimePrimary node, Object data) {
289: return null;
290: }
291:
292: public Object visit(ASTBooleanExpression node, Object data) {
293: return null;
294: }
295:
296: public Object visit(ASTBooleanPrimary node, Object data) {
297: return null;
298: }
299:
300: public Object visit(ASTEntityExpression node, Object data) {
301: return null;
302: }
303:
304: public Object visit(ASTFunctionsReturningNumerics node, Object data) {
305: return null;
306: }
307:
308: public Object visit(ASTFunctionsReturningDateTime node, Object data) {
309: return null;
310: }
311:
312: public Object visit(ASTFunctionsReturningStrings node, Object data) {
313: return null;
314: }
315:
316: public Object visit(ASTTrimSpecification node, Object data) {
317: return null;
318: }
319:
320: public Object visit(ASTTrimCharacter node, Object data) {
321: return null;
322: }
323:
324: public Object visit(ASTPatternValue node, Object data) {
325: return null;
326: }
327:
328: public Object visit(ASTEscapeCharacter node, Object data) {
329: return null;
330: }
331:
332: public Object visit(ASTAbstractSchemaName node, Object data) {
333: return null;
334: }
335:
336: public Object visit(ASTIdentificationVariable node, Object data) {
337: return null;
338: }
339:
340: public Object visit(ASTLiteral node, Object data) {
341: return null;
342: }
343:
344: public Object visit(ASTStringLiteral node, Object data) {
345: return null;
346: }
347:
348: public Object visit(ASTNumericLiteral node, Object data) {
349: return null;
350: }
351:
352: public Object visit(ASTIntegerLiteral node, Object data) {
353: return null;
354: }
355:
356: public Object visit(ASTFloatingPointLiteral node, Object data) {
357: return null;
358: }
359:
360: public Object visit(ASTBooleanLiteral node, Object data) {
361: return null;
362: }
363:
364: public Object visit(ASTInputParameter node, Object data) {
365: return null;
366: }
367:
368: public Object visit(ASTPositionalParameter node, Object data) {
369: return null;
370: }
371:
372: public Object visit(ASTNamedParameter node, Object data) {
373: return null;
374: }
375:
376: }
|