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 Exec extends stmtType {
09: public exprType body;
10: public exprType globals;
11: public exprType locals;
12:
13: public Exec(exprType body, exprType globals, exprType locals) {
14: this .body = body;
15: this .globals = globals;
16: this .locals = locals;
17: }
18:
19: public Exec(exprType body, exprType globals, exprType locals,
20: SimpleNode parent) {
21: this (body, globals, locals);
22: this .beginLine = parent.beginLine;
23: this .beginColumn = parent.beginColumn;
24: }
25:
26: public String toString() {
27: StringBuffer sb = new StringBuffer("Exec[");
28: sb.append("body=");
29: sb.append(dumpThis(this .body));
30: sb.append(", ");
31: sb.append("globals=");
32: sb.append(dumpThis(this .globals));
33: sb.append(", ");
34: sb.append("locals=");
35: sb.append(dumpThis(this .locals));
36: sb.append("]");
37: return sb.toString();
38: }
39:
40: public void pickle(DataOutputStream ostream) throws IOException {
41: pickleThis(22, ostream);
42: pickleThis(this .body, ostream);
43: pickleThis(this .globals, ostream);
44: pickleThis(this .locals, ostream);
45: }
46:
47: public Object accept(VisitorIF visitor) throws Exception {
48: return visitor.visitExec(this );
49: }
50:
51: public void traverse(VisitorIF visitor) throws Exception {
52: if (body != null)
53: body.accept(visitor);
54: if (globals != null)
55: globals.accept(visitor);
56: if (locals != null)
57: locals.accept(visitor);
58: }
59:
60: }
|