01: // Autogenerated AST node
02: package org.python.parser.ast;
03:
04: import org.python.parser.SimpleNode;
05: import java.io.DataOutputStream;
06: import java.io.IOException;
07:
08: public class Raise extends stmtType {
09: public exprType type;
10: public exprType inst;
11: public exprType tback;
12:
13: public Raise(exprType type, exprType inst, exprType tback) {
14: this .type = type;
15: this .inst = inst;
16: this .tback = tback;
17: }
18:
19: public Raise(exprType type, exprType inst, exprType tback,
20: SimpleNode parent) {
21: this (type, inst, tback);
22: this .beginLine = parent.beginLine;
23: this .beginColumn = parent.beginColumn;
24: }
25:
26: public String toString() {
27: StringBuffer sb = new StringBuffer("Raise[");
28: sb.append("type=");
29: sb.append(dumpThis(this .type));
30: sb.append(", ");
31: sb.append("inst=");
32: sb.append(dumpThis(this .inst));
33: sb.append(", ");
34: sb.append("tback=");
35: sb.append(dumpThis(this .tback));
36: sb.append("]");
37: return sb.toString();
38: }
39:
40: public void pickle(DataOutputStream ostream) throws IOException {
41: pickleThis(16, ostream);
42: pickleThis(this .type, ostream);
43: pickleThis(this .inst, ostream);
44: pickleThis(this .tback, ostream);
45: }
46:
47: public Object accept(VisitorIF visitor) throws Exception {
48: return visitor.visitRaise(this );
49: }
50:
51: public void traverse(VisitorIF visitor) throws Exception {
52: if (type != null)
53: type.accept(visitor);
54: if (inst != null)
55: inst.accept(visitor);
56: if (tback != null)
57: tback.accept(visitor);
58: }
59:
60: }
|