1 package org.python.parser.ast; 3 import org.python.parser.SimpleNode; 4 5 public abstract class VisitorBase implements VisitorIF { 6 public Object visitModule(Module node) throws Exception { 7 Object ret = unhandled_node(node); 8 traverse(node); 9 return ret; 10 } 11 12 public Object visitInteractive(Interactive node) throws Exception { 13 Object ret = unhandled_node(node); 14 traverse(node); 15 return ret; 16 } 17 18 public Object visitExpression(Expression node) throws Exception { 19 Object ret = unhandled_node(node); 20 traverse(node); 21 return ret; 22 } 23 24 public Object visitSuite(Suite node) throws Exception { 25 Object ret = unhandled_node(node); 26 traverse(node); 27 return ret; 28 } 29 30 public Object visitFunctionDef(FunctionDef node) throws Exception { 31 Object ret = unhandled_node(node); 32 traverse(node); 33 return ret; 34 } 35 36 public Object visitClassDef(ClassDef node) throws Exception { 37 Object ret = unhandled_node(node); 38 traverse(node); 39 return ret; 40 } 41 42 public Object visitReturn(Return node) throws Exception { 43 Object ret = unhandled_node(node); 44 traverse(node); 45 return ret; 46 } 47 48 public Object visitYield(Yield node) throws Exception { 49 Object ret = unhandled_node(node); 50 traverse(node); 51 return ret; 52 } 53 54 public Object visitDelete(Delete node) throws Exception { 55 Object ret = unhandled_node(node); 56 traverse(node); 57 return ret; 58 } 59 60 public Object visitAssign(Assign node) throws Exception { 61 Object ret = unhandled_node(node); 62 traverse(node); 63 return ret; 64 } 65 66 public Object visitAugAssign(AugAssign node) throws Exception { 67 Object ret = unhandled_node(node); 68 traverse(node); 69 return ret; 70 } 71 72 public Object visitPrint(Print node) throws Exception { 73 Object ret = unhandled_node(node); 74 traverse(node); 75 return ret; 76 } 77 78 public Object visitFor(For node) throws Exception { 79 Object ret = unhandled_node(node); 80 traverse(node); 81 return ret; 82 } 83 84 public Object visitWhile(While node) throws Exception { 85 Object ret = unhandled_node(node); 86 traverse(node); 87 return ret; 88 } 89 90 public Object visitIf(If node) throws Exception { 91 Object ret = unhandled_node(node); 92 traverse(node); 93 return ret; 94 } 95 96 public Object visitRaise(Raise node) throws Exception { 97 Object ret = unhandled_node(node); 98 traverse(node); 99 return ret; 100 } 101 102 public Object visitTryExcept(TryExcept node) throws Exception { 103 Object ret = unhandled_node(node); 104 traverse(node); 105 return ret; 106 } 107 108 public Object visitTryFinally(TryFinally node) throws Exception { 109 Object ret = unhandled_node(node); 110 traverse(node); 111 return ret; 112 } 113 114 public Object visitAssert(Assert node) throws Exception { 115 Object ret = unhandled_node(node); 116 traverse(node); 117 return ret; 118 } 119 120 public Object visitImport(Import node) throws Exception { 121 Object ret = unhandled_node(node); 122 traverse(node); 123 return ret; 124 } 125 126 public Object visitImportFrom(ImportFrom node) throws Exception { 127 Object ret = unhandled_node(node); 128 traverse(node); 129 return ret; 130 } 131 132 public Object visitExec(Exec node) throws Exception { 133 Object ret = unhandled_node(node); 134 traverse(node); 135 return ret; 136 } 137 138 public Object visitGlobal(Global node) throws Exception { 139 Object ret = unhandled_node(node); 140 traverse(node); 141 return ret; 142 } 143 144 public Object visitExpr(Expr node) throws Exception { 145 Object ret = unhandled_node(node); 146 traverse(node); 147 return ret; 148 } 149 150 public Object visitPass(Pass node) throws Exception { 151 Object ret = unhandled_node(node); 152 traverse(node); 153 return ret; 154 } 155 156 public Object visitBreak(Break node) throws Exception { 157 Object ret = unhandled_node(node); 158 traverse(node); 159 return ret; 160 } 161 162 public Object visitContinue(Continue node) throws Exception { 163 Object ret = unhandled_node(node); 164 traverse(node); 165 return ret; 166 } 167 168 public Object visitBoolOp(BoolOp node) throws Exception { 169 Object ret = unhandled_node(node); 170 traverse(node); 171 return ret; 172 } 173 174 public Object visitBinOp(BinOp node) throws Exception { 175 Object ret = unhandled_node(node); 176 traverse(node); 177 return ret; 178 } 179 180 public Object visitUnaryOp(UnaryOp node) throws Exception { 181 Object ret = unhandled_node(node); 182 traverse(node); 183 return ret; 184 } 185 186 public Object visitLambda(Lambda node) throws Exception { 187 Object ret = unhandled_node(node); 188 traverse(node); 189 return ret; 190 } 191 192 public Object visitDict(Dict node) throws Exception { 193 Object ret = unhandled_node(node); 194 traverse(node); 195 return ret; 196 } 197 198 public Object visitListComp(ListComp node) throws Exception { 199 Object ret = unhandled_node(node); 200 traverse(node); 201 return ret; 202 } 203 204 public Object visitCompare(Compare node) throws Exception { 205 Object ret = unhandled_node(node); 206 traverse(node); 207 return ret; 208 } 209 210 public Object visitCall(Call node) throws Exception { 211 Object ret = unhandled_node(node); 212 traverse(node); 213 return ret; 214 } 215 216 public Object visitRepr(Repr node) throws Exception { 217 Object ret = unhandled_node(node); 218 traverse(node); 219 return ret; 220 } 221 222 public Object visitNum(Num node) throws Exception { 223 Object ret = unhandled_node(node); 224 traverse(node); 225 return ret; 226 } 227 228 public Object visitStr(Str node) throws Exception { 229 Object ret = unhandled_node(node); 230 traverse(node); 231 return ret; 232 } 233 234 public Object visitAttribute(Attribute node) throws Exception { 235 Object ret = unhandled_node(node); 236 traverse(node); 237 return ret; 238 } 239 240 public Object visitSubscript(Subscript node) throws Exception { 241 Object ret = unhandled_node(node); 242 traverse(node); 243 return ret; 244 } 245 246 public Object visitName(Name node) throws Exception { 247 Object ret = unhandled_node(node); 248 traverse(node); 249 return ret; 250 } 251 252 public Object visitList(List node) throws Exception { 253 Object ret = unhandled_node(node); 254 traverse(node); 255 return ret; 256 } 257 258 public Object visitTuple(Tuple node) throws Exception { 259 Object ret = unhandled_node(node); 260 traverse(node); 261 return ret; 262 } 263 264 public Object visitEllipsis(Ellipsis node) throws Exception { 265 Object ret = unhandled_node(node); 266 traverse(node); 267 return ret; 268 } 269 270 public Object visitSlice(Slice node) throws Exception { 271 Object ret = unhandled_node(node); 272 traverse(node); 273 return ret; 274 } 275 276 public Object visitExtSlice(ExtSlice node) throws Exception { 277 Object ret = unhandled_node(node); 278 traverse(node); 279 return ret; 280 } 281 282 public Object visitIndex(Index node) throws Exception { 283 Object ret = unhandled_node(node); 284 traverse(node); 285 return ret; 286 } 287 288 abstract protected Object unhandled_node(SimpleNode node) throws 289 Exception ; 290 abstract public void traverse(SimpleNode node) throws Exception ; 291 } 292 | Popular Tags |