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