KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > parser > ast > Repr


1 // Autogenerated AST node
2
package org.python.parser.ast;
3 import org.python.parser.SimpleNode;
4 import java.io.DataOutputStream JavaDoc;
5 import java.io.IOException JavaDoc;
6
7 public class Repr extends exprType {
8     public exprType value;
9
10     public Repr(exprType value) {
11         this.value = value;
12     }
13
14     public Repr(exprType value, SimpleNode parent) {
15         this(value);
16         this.beginLine = parent.beginLine;
17         this.beginColumn = parent.beginColumn;
18     }
19
20     public String JavaDoc toString() {
21         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("Repr[");
22         sb.append("value=");
23         sb.append(dumpThis(this.value));
24         sb.append("]");
25         return sb.toString();
26     }
27
28     public void pickle(DataOutputStream JavaDoc ostream) throws IOException JavaDoc {
29         pickleThis(36, ostream);
30         pickleThis(this.value, ostream);
31     }
32
33     public Object JavaDoc accept(VisitorIF visitor) throws Exception JavaDoc {
34         return visitor.visitRepr(this);
35     }
36
37     public void traverse(VisitorIF visitor) throws Exception JavaDoc {
38         if (value != null)
39             value.accept(visitor);
40     }
41
42 }
43
Popular Tags