1
// Autogenerated AST node
2
package org.python.pydev.parser.jython.ast;
3
import java.io.DataOutputStream;
4
import java.io.IOException;
6
import org.python.pydev.parser.jython.SimpleNode;
8
public class listcompType extends SimpleNode {
12
private static final long serialVersionUID = 971434004466657577L;
13
public exprType target;
15
public exprType[] ifs;
17
public listcompType(exprType target, exprType iter, exprType[] ifs) {
23
public listcompType(exprType target, exprType iter, exprType[] ifs,
25
this(target, iter, ifs);
26
this.beginLine = parent.beginLine;
27
this.beginColumn = parent.beginColumn;
30
public String toString() {
31
StringBuffer sb = new StringBuffer("listcomp[");
33
sb.append(dumpThis(this.target));
36
sb.append(dumpThis(this.iter));
39
sb.append(dumpThis(this.ifs));
44
public void pickle(DataOutputStream ostream) throws IOException {
45
pickleThis(48, ostream);
46
pickleThis(this.target, ostream);
47
pickleThis(this.iter, ostream);
48
pickleThis(this.ifs, ostream);
51
public Object accept(VisitorIF visitor) throws Exception {
56
public void traverse(VisitorIF visitor) throws Exception {
58
target.accept(visitor);
62
for (int i = 0; i < ifs.length; i++) {
64
ifs[i].accept(visitor);