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 aliasType extends SimpleNode {
09: public String name;
10: public String asname;
11:
12: public aliasType(String name, String asname) {
13: this .name = name;
14: this .asname = asname;
15: }
16:
17: public aliasType(String name, String asname, SimpleNode parent) {
18: this (name, asname);
19: this .beginLine = parent.beginLine;
20: this .beginColumn = parent.beginColumn;
21: }
22:
23: public String toString() {
24: StringBuffer sb = new StringBuffer("alias[");
25: sb.append("name=");
26: sb.append(dumpThis(this .name));
27: sb.append(", ");
28: sb.append("asname=");
29: sb.append(dumpThis(this .asname));
30: sb.append("]");
31: return sb.toString();
32: }
33:
34: public void pickle(DataOutputStream ostream) throws IOException {
35: pickleThis(52, ostream);
36: pickleThis(this .name, ostream);
37: pickleThis(this .asname, 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: }
47:
48: }
|