1
// Autogenerated AST node
2
package org.python.pydev.parser.jython.ast;
3
import org.python.pydev.parser.jython.SimpleNode;
4
import java.io.DataOutputStream;
5
import java.io.IOException;
7
public class Attribute extends exprType implements expr_contextType {
9
public NameTokType attr;
12
public Attribute(exprType value, NameTokType attr, int ctx) {
18
public Attribute(exprType value, NameTokType attr, int ctx, SimpleNode
20
this(value, attr, ctx);
21
this.beginLine = parent.beginLine;
22
this.beginColumn = parent.beginColumn;
25
public String toString() {
26
StringBuffer sb = new StringBuffer("Attribute[");
28
sb.append(dumpThis(this.value));
31
sb.append(dumpThis(this.attr));
34
sb.append(dumpThis(this.ctx,
35
expr_contextType.expr_contextTypeNames));
40
public void pickle(DataOutputStream ostream) throws IOException {
41
pickleThis(43, ostream);
42
pickleThis(this.value, ostream);
43
pickleThis(this.attr, ostream);
44
pickleThis(this.ctx, ostream);
47
public Object accept(VisitorIF visitor) throws Exception {
48
return visitor.visitAttribute(this);
51
public void traverse(VisitorIF visitor) throws Exception {
53
value.accept(visitor);