001: /*
002: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
003: *
004: * Licensed under the Aduna BSD-style license.
005: */
006: package org.openrdf.query.parser.serql;
007:
008: import org.openrdf.query.parser.serql.ast.ASTAnd;
009: import org.openrdf.query.parser.serql.ast.ASTBNode;
010: import org.openrdf.query.parser.serql.ast.ASTBasicPathExpr;
011: import org.openrdf.query.parser.serql.ast.ASTBasicPathExprTail;
012: import org.openrdf.query.parser.serql.ast.ASTBooleanConstant;
013: import org.openrdf.query.parser.serql.ast.ASTBound;
014: import org.openrdf.query.parser.serql.ast.ASTCompOperator;
015: import org.openrdf.query.parser.serql.ast.ASTCompare;
016: import org.openrdf.query.parser.serql.ast.ASTCompareAll;
017: import org.openrdf.query.parser.serql.ast.ASTCompareAny;
018: import org.openrdf.query.parser.serql.ast.ASTConstruct;
019: import org.openrdf.query.parser.serql.ast.ASTConstructQuery;
020: import org.openrdf.query.parser.serql.ast.ASTDatatype;
021: import org.openrdf.query.parser.serql.ast.ASTEdge;
022: import org.openrdf.query.parser.serql.ast.ASTExists;
023: import org.openrdf.query.parser.serql.ast.ASTFrom;
024: import org.openrdf.query.parser.serql.ast.ASTFunctionCall;
025: import org.openrdf.query.parser.serql.ast.ASTGraphIntersect;
026: import org.openrdf.query.parser.serql.ast.ASTGraphMinus;
027: import org.openrdf.query.parser.serql.ast.ASTGraphUnion;
028: import org.openrdf.query.parser.serql.ast.ASTIn;
029: import org.openrdf.query.parser.serql.ast.ASTIsBNode;
030: import org.openrdf.query.parser.serql.ast.ASTIsLiteral;
031: import org.openrdf.query.parser.serql.ast.ASTIsResource;
032: import org.openrdf.query.parser.serql.ast.ASTIsURI;
033: import org.openrdf.query.parser.serql.ast.ASTLabel;
034: import org.openrdf.query.parser.serql.ast.ASTLang;
035: import org.openrdf.query.parser.serql.ast.ASTLike;
036: import org.openrdf.query.parser.serql.ast.ASTLimit;
037: import org.openrdf.query.parser.serql.ast.ASTLiteral;
038: import org.openrdf.query.parser.serql.ast.ASTLocalName;
039: import org.openrdf.query.parser.serql.ast.ASTNamespace;
040: import org.openrdf.query.parser.serql.ast.ASTNamespaceDecl;
041: import org.openrdf.query.parser.serql.ast.ASTNode;
042: import org.openrdf.query.parser.serql.ast.ASTNodeElem;
043: import org.openrdf.query.parser.serql.ast.ASTNot;
044: import org.openrdf.query.parser.serql.ast.ASTNull;
045: import org.openrdf.query.parser.serql.ast.ASTOffset;
046: import org.openrdf.query.parser.serql.ast.ASTOptPathExpr;
047: import org.openrdf.query.parser.serql.ast.ASTOptPathExprTail;
048: import org.openrdf.query.parser.serql.ast.ASTOr;
049: import org.openrdf.query.parser.serql.ast.ASTProjectionElem;
050: import org.openrdf.query.parser.serql.ast.ASTQName;
051: import org.openrdf.query.parser.serql.ast.ASTQueryBody;
052: import org.openrdf.query.parser.serql.ast.ASTQueryContainer;
053: import org.openrdf.query.parser.serql.ast.ASTReifiedStat;
054: import org.openrdf.query.parser.serql.ast.ASTSelect;
055: import org.openrdf.query.parser.serql.ast.ASTSelectQuery;
056: import org.openrdf.query.parser.serql.ast.ASTString;
057: import org.openrdf.query.parser.serql.ast.ASTTupleIntersect;
058: import org.openrdf.query.parser.serql.ast.ASTTupleMinus;
059: import org.openrdf.query.parser.serql.ast.ASTTupleUnion;
060: import org.openrdf.query.parser.serql.ast.ASTURI;
061: import org.openrdf.query.parser.serql.ast.ASTVar;
062: import org.openrdf.query.parser.serql.ast.ASTWhere;
063: import org.openrdf.query.parser.serql.ast.SimpleNode;
064: import org.openrdf.query.parser.serql.ast.SyntaxTreeBuilderVisitor;
065: import org.openrdf.query.parser.serql.ast.VisitorException;
066:
067: public abstract class ASTVisitorBase implements
068: SyntaxTreeBuilderVisitor {
069:
070: public Object visit(SimpleNode node, Object data)
071: throws VisitorException {
072: return node.childrenAccept(this , data);
073: }
074:
075: public Object visit(ASTQueryContainer node, Object data)
076: throws VisitorException {
077: return node.childrenAccept(this , data);
078: }
079:
080: public Object visit(ASTNamespaceDecl node, Object data)
081: throws VisitorException {
082: return node.childrenAccept(this , data);
083: }
084:
085: public Object visit(ASTTupleUnion node, Object data)
086: throws VisitorException {
087: return node.childrenAccept(this , data);
088: }
089:
090: public Object visit(ASTTupleMinus node, Object data)
091: throws VisitorException {
092: return node.childrenAccept(this , data);
093: }
094:
095: public Object visit(ASTTupleIntersect node, Object data)
096: throws VisitorException {
097: return node.childrenAccept(this , data);
098: }
099:
100: public Object visit(ASTGraphUnion node, Object data)
101: throws VisitorException {
102: return node.childrenAccept(this , data);
103: }
104:
105: public Object visit(ASTGraphMinus node, Object data)
106: throws VisitorException {
107: return node.childrenAccept(this , data);
108: }
109:
110: public Object visit(ASTGraphIntersect node, Object data)
111: throws VisitorException {
112: return node.childrenAccept(this , data);
113: }
114:
115: public Object visit(ASTSelectQuery node, Object data)
116: throws VisitorException {
117: return node.childrenAccept(this , data);
118: }
119:
120: public Object visit(ASTSelect node, Object data)
121: throws VisitorException {
122: return node.childrenAccept(this , data);
123: }
124:
125: public Object visit(ASTProjectionElem node, Object data)
126: throws VisitorException {
127: return node.childrenAccept(this , data);
128: }
129:
130: public Object visit(ASTConstructQuery node, Object data)
131: throws VisitorException {
132: return node.childrenAccept(this , data);
133: }
134:
135: public Object visit(ASTConstruct node, Object data)
136: throws VisitorException {
137: return node.childrenAccept(this , data);
138: }
139:
140: public Object visit(ASTQueryBody node, Object data)
141: throws VisitorException {
142: return node.childrenAccept(this , data);
143: }
144:
145: public Object visit(ASTFrom node, Object data)
146: throws VisitorException {
147: return node.childrenAccept(this , data);
148: }
149:
150: public Object visit(ASTWhere node, Object data)
151: throws VisitorException {
152: return node.childrenAccept(this , data);
153: }
154:
155: public Object visit(ASTLimit node, Object data)
156: throws VisitorException {
157: return node.childrenAccept(this , data);
158: }
159:
160: public Object visit(ASTOffset node, Object data)
161: throws VisitorException {
162: return node.childrenAccept(this , data);
163: }
164:
165: public Object visit(ASTBasicPathExpr node, Object data)
166: throws VisitorException {
167: return node.childrenAccept(this , data);
168: }
169:
170: public Object visit(ASTOptPathExpr node, Object data)
171: throws VisitorException {
172: return node.childrenAccept(this , data);
173: }
174:
175: public Object visit(ASTBasicPathExprTail node, Object data)
176: throws VisitorException {
177: return node.childrenAccept(this , data);
178: }
179:
180: public Object visit(ASTOptPathExprTail node, Object data)
181: throws VisitorException {
182: return node.childrenAccept(this , data);
183: }
184:
185: public Object visit(ASTEdge node, Object data)
186: throws VisitorException {
187: return node.childrenAccept(this , data);
188: }
189:
190: public Object visit(ASTNodeElem node, Object data)
191: throws VisitorException {
192: return node.childrenAccept(this , data);
193: }
194:
195: public Object visit(ASTNode node, Object data)
196: throws VisitorException {
197: return node.childrenAccept(this , data);
198: }
199:
200: public Object visit(ASTReifiedStat node, Object data)
201: throws VisitorException {
202: return node.childrenAccept(this , data);
203: }
204:
205: public Object visit(ASTOr node, Object data)
206: throws VisitorException {
207: return node.childrenAccept(this , data);
208: }
209:
210: public Object visit(ASTAnd node, Object data)
211: throws VisitorException {
212: return node.childrenAccept(this , data);
213: }
214:
215: public Object visit(ASTBooleanConstant node, Object data)
216: throws VisitorException {
217: return node.childrenAccept(this , data);
218: }
219:
220: public Object visit(ASTNot node, Object data)
221: throws VisitorException {
222: return node.childrenAccept(this , data);
223: }
224:
225: public Object visit(ASTBound node, Object data)
226: throws VisitorException {
227: return node.childrenAccept(this , data);
228: }
229:
230: public Object visit(ASTIsResource node, Object data)
231: throws VisitorException {
232: return node.childrenAccept(this , data);
233: }
234:
235: public Object visit(ASTIsLiteral node, Object data)
236: throws VisitorException {
237: return node.childrenAccept(this , data);
238: }
239:
240: public Object visit(ASTIsURI node, Object data)
241: throws VisitorException {
242: return node.childrenAccept(this , data);
243: }
244:
245: public Object visit(ASTIsBNode node, Object data)
246: throws VisitorException {
247: return node.childrenAccept(this , data);
248: }
249:
250: public Object visit(ASTExists node, Object data)
251: throws VisitorException {
252: return node.childrenAccept(this , data);
253: }
254:
255: public Object visit(ASTCompare node, Object data)
256: throws VisitorException {
257: return node.childrenAccept(this , data);
258: }
259:
260: public Object visit(ASTCompareAny node, Object data)
261: throws VisitorException {
262: return node.childrenAccept(this , data);
263: }
264:
265: public Object visit(ASTCompareAll node, Object data)
266: throws VisitorException {
267: return node.childrenAccept(this , data);
268: }
269:
270: public Object visit(ASTLike node, Object data)
271: throws VisitorException {
272: return node.childrenAccept(this , data);
273: }
274:
275: public Object visit(ASTIn node, Object data)
276: throws VisitorException {
277: return node.childrenAccept(this , data);
278: }
279:
280: public Object visit(ASTCompOperator node, Object data)
281: throws VisitorException {
282: return node.childrenAccept(this , data);
283: }
284:
285: public Object visit(ASTVar node, Object data)
286: throws VisitorException {
287: return node.childrenAccept(this , data);
288: }
289:
290: public Object visit(ASTDatatype node, Object data)
291: throws VisitorException {
292: return node.childrenAccept(this , data);
293: }
294:
295: public Object visit(ASTLang node, Object data)
296: throws VisitorException {
297: return node.childrenAccept(this , data);
298: }
299:
300: public Object visit(ASTLabel node, Object data)
301: throws VisitorException {
302: return node.childrenAccept(this , data);
303: }
304:
305: public Object visit(ASTNamespace node, Object data)
306: throws VisitorException {
307: return node.childrenAccept(this , data);
308: }
309:
310: public Object visit(ASTLocalName node, Object data)
311: throws VisitorException {
312: return node.childrenAccept(this , data);
313: }
314:
315: public Object visit(ASTFunctionCall node, Object data)
316: throws VisitorException {
317: return node.childrenAccept(this , data);
318: }
319:
320: public Object visit(ASTURI node, Object data)
321: throws VisitorException {
322: return node.childrenAccept(this , data);
323: }
324:
325: public Object visit(ASTQName node, Object data)
326: throws VisitorException {
327: return node.childrenAccept(this , data);
328: }
329:
330: public Object visit(ASTBNode node, Object data)
331: throws VisitorException {
332: return node.childrenAccept(this , data);
333: }
334:
335: public Object visit(ASTLiteral node, Object data)
336: throws VisitorException {
337: return node.childrenAccept(this , data);
338: }
339:
340: public Object visit(ASTString node, Object data)
341: throws VisitorException {
342: return node.childrenAccept(this , data);
343: }
344:
345: public Object visit(ASTNull node, Object data)
346: throws VisitorException {
347: return node.childrenAccept(this, data);
348: }
349: }
|