01: //Created by hand from Str instead of generated. This should be revisited
02: //and hopefully added to the grammar.
03: package org.python.parser.ast;
04:
05: import org.python.parser.SimpleNode;
06: import java.io.DataOutputStream;
07: import java.io.IOException;
08:
09: public class Unicode extends Str {
10:
11: public Unicode(String s) {
12: super (s);
13: }
14:
15: public Unicode(String s, SimpleNode parent) {
16: super (s, parent);
17: }
18:
19: public String toString() {
20: StringBuffer sb = new StringBuffer("Unicode[");
21: sb.append("s=");
22: sb.append(dumpThis(this .s));
23: sb.append("]");
24: return sb.toString();
25: }
26:
27: public void pickle(DataOutputStream ostream) throws IOException {
28: pickleThis(38, ostream);
29: pickleThis(this .s, ostream);
30: }
31:
32: public Object accept(VisitorIF visitor) throws Exception {
33: return visitor.visitUnicode(this );
34: }
35:
36: public void traverse(VisitorIF visitor) throws Exception {
37: }
38:
39: }
|