KickJava   Java API By Example, From Geeks To Geeks.

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


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