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 Global extends stmtType {
09: public String[] names;
10:
11: public Global(String[] names) {
12: this .names = names;
13: }
14:
15: public Global(String[] names, SimpleNode parent) {
16: this (names);
17: this .beginLine = parent.beginLine;
18: this .beginColumn = parent.beginColumn;
19: }
20:
21: public String toString() {
22: StringBuffer sb = new StringBuffer("Global[");
23: sb.append("names=");
24: sb.append(dumpThis(this .names));
25: sb.append("]");
26: return sb.toString();
27: }
28:
29: public void pickle(DataOutputStream ostream) throws IOException {
30: pickleThis(23, ostream);
31: pickleThis(this .names, ostream);
32: }
33:
34: public Object accept(VisitorIF visitor) throws Exception {
35: return visitor.visitGlobal(this );
36: }
37:
38: public void traverse(VisitorIF visitor) throws Exception {
39: }
40:
41: }
|