001: // Autogenerated AST node
002: package org.python.parser.ast;
003:
004: import org.python.parser.SimpleNode;
005:
006: public abstract class VisitorBase implements VisitorIF {
007: public Object visitModule(Module node) throws Exception {
008: Object ret = unhandled_node(node);
009: traverse(node);
010: return ret;
011: }
012:
013: public Object visitInteractive(Interactive node) throws Exception {
014: Object ret = unhandled_node(node);
015: traverse(node);
016: return ret;
017: }
018:
019: public Object visitExpression(Expression node) throws Exception {
020: Object ret = unhandled_node(node);
021: traverse(node);
022: return ret;
023: }
024:
025: public Object visitSuite(Suite node) throws Exception {
026: Object ret = unhandled_node(node);
027: traverse(node);
028: return ret;
029: }
030:
031: public Object visitFunctionDef(FunctionDef node) throws Exception {
032: Object ret = unhandled_node(node);
033: traverse(node);
034: return ret;
035: }
036:
037: public Object visitClassDef(ClassDef node) throws Exception {
038: Object ret = unhandled_node(node);
039: traverse(node);
040: return ret;
041: }
042:
043: public Object visitReturn(Return node) throws Exception {
044: Object ret = unhandled_node(node);
045: traverse(node);
046: return ret;
047: }
048:
049: public Object visitYield(Yield node) throws Exception {
050: Object ret = unhandled_node(node);
051: traverse(node);
052: return ret;
053: }
054:
055: public Object visitDelete(Delete node) throws Exception {
056: Object ret = unhandled_node(node);
057: traverse(node);
058: return ret;
059: }
060:
061: public Object visitAssign(Assign node) throws Exception {
062: Object ret = unhandled_node(node);
063: traverse(node);
064: return ret;
065: }
066:
067: public Object visitAugAssign(AugAssign node) throws Exception {
068: Object ret = unhandled_node(node);
069: traverse(node);
070: return ret;
071: }
072:
073: public Object visitPrint(Print node) throws Exception {
074: Object ret = unhandled_node(node);
075: traverse(node);
076: return ret;
077: }
078:
079: public Object visitFor(For node) throws Exception {
080: Object ret = unhandled_node(node);
081: traverse(node);
082: return ret;
083: }
084:
085: public Object visitWhile(While node) throws Exception {
086: Object ret = unhandled_node(node);
087: traverse(node);
088: return ret;
089: }
090:
091: public Object visitIf(If node) throws Exception {
092: Object ret = unhandled_node(node);
093: traverse(node);
094: return ret;
095: }
096:
097: public Object visitRaise(Raise node) throws Exception {
098: Object ret = unhandled_node(node);
099: traverse(node);
100: return ret;
101: }
102:
103: public Object visitTryExcept(TryExcept node) throws Exception {
104: Object ret = unhandled_node(node);
105: traverse(node);
106: return ret;
107: }
108:
109: public Object visitTryFinally(TryFinally node) throws Exception {
110: Object ret = unhandled_node(node);
111: traverse(node);
112: return ret;
113: }
114:
115: public Object visitAssert(Assert node) throws Exception {
116: Object ret = unhandled_node(node);
117: traverse(node);
118: return ret;
119: }
120:
121: public Object visitImport(Import node) throws Exception {
122: Object ret = unhandled_node(node);
123: traverse(node);
124: return ret;
125: }
126:
127: public Object visitImportFrom(ImportFrom node) throws Exception {
128: Object ret = unhandled_node(node);
129: traverse(node);
130: return ret;
131: }
132:
133: public Object visitExec(Exec node) throws Exception {
134: Object ret = unhandled_node(node);
135: traverse(node);
136: return ret;
137: }
138:
139: public Object visitGlobal(Global node) throws Exception {
140: Object ret = unhandled_node(node);
141: traverse(node);
142: return ret;
143: }
144:
145: public Object visitExpr(Expr node) throws Exception {
146: Object ret = unhandled_node(node);
147: traverse(node);
148: return ret;
149: }
150:
151: public Object visitPass(Pass node) throws Exception {
152: Object ret = unhandled_node(node);
153: traverse(node);
154: return ret;
155: }
156:
157: public Object visitBreak(Break node) throws Exception {
158: Object ret = unhandled_node(node);
159: traverse(node);
160: return ret;
161: }
162:
163: public Object visitContinue(Continue node) throws Exception {
164: Object ret = unhandled_node(node);
165: traverse(node);
166: return ret;
167: }
168:
169: public Object visitBoolOp(BoolOp node) throws Exception {
170: Object ret = unhandled_node(node);
171: traverse(node);
172: return ret;
173: }
174:
175: public Object visitBinOp(BinOp node) throws Exception {
176: Object ret = unhandled_node(node);
177: traverse(node);
178: return ret;
179: }
180:
181: public Object visitUnaryOp(UnaryOp node) throws Exception {
182: Object ret = unhandled_node(node);
183: traverse(node);
184: return ret;
185: }
186:
187: public Object visitLambda(Lambda node) throws Exception {
188: Object ret = unhandled_node(node);
189: traverse(node);
190: return ret;
191: }
192:
193: public Object visitDict(Dict node) throws Exception {
194: Object ret = unhandled_node(node);
195: traverse(node);
196: return ret;
197: }
198:
199: public Object visitListComp(ListComp node) throws Exception {
200: Object ret = unhandled_node(node);
201: traverse(node);
202: return ret;
203: }
204:
205: public Object visitCompare(Compare node) throws Exception {
206: Object ret = unhandled_node(node);
207: traverse(node);
208: return ret;
209: }
210:
211: public Object visitCall(Call node) throws Exception {
212: Object ret = unhandled_node(node);
213: traverse(node);
214: return ret;
215: }
216:
217: public Object visitRepr(Repr node) throws Exception {
218: Object ret = unhandled_node(node);
219: traverse(node);
220: return ret;
221: }
222:
223: public Object visitNum(Num node) throws Exception {
224: Object ret = unhandled_node(node);
225: traverse(node);
226: return ret;
227: }
228:
229: public Object visitStr(Str node) throws Exception {
230: Object ret = unhandled_node(node);
231: traverse(node);
232: return ret;
233: }
234:
235: public Object visitUnicode(Unicode node) throws Exception {
236: Object ret = unhandled_node(node);
237: traverse(node);
238: return ret;
239: }
240:
241: public Object visitAttribute(Attribute node) throws Exception {
242: Object ret = unhandled_node(node);
243: traverse(node);
244: return ret;
245: }
246:
247: public Object visitSubscript(Subscript node) throws Exception {
248: Object ret = unhandled_node(node);
249: traverse(node);
250: return ret;
251: }
252:
253: public Object visitName(Name node) throws Exception {
254: Object ret = unhandled_node(node);
255: traverse(node);
256: return ret;
257: }
258:
259: public Object visitList(List node) throws Exception {
260: Object ret = unhandled_node(node);
261: traverse(node);
262: return ret;
263: }
264:
265: public Object visitTuple(Tuple node) throws Exception {
266: Object ret = unhandled_node(node);
267: traverse(node);
268: return ret;
269: }
270:
271: public Object visitEllipsis(Ellipsis node) throws Exception {
272: Object ret = unhandled_node(node);
273: traverse(node);
274: return ret;
275: }
276:
277: public Object visitSlice(Slice node) throws Exception {
278: Object ret = unhandled_node(node);
279: traverse(node);
280: return ret;
281: }
282:
283: public Object visitExtSlice(ExtSlice node) throws Exception {
284: Object ret = unhandled_node(node);
285: traverse(node);
286: return ret;
287: }
288:
289: public Object visitIndex(Index node) throws Exception {
290: Object ret = unhandled_node(node);
291: traverse(node);
292: return ret;
293: }
294:
295: abstract protected Object unhandled_node(SimpleNode node)
296: throws Exception;
297:
298: abstract public void traverse(SimpleNode node) throws Exception;
299: }
|