⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listcomptype.java

📁 Python Development Environment (Python IDE plugin for Eclipse). Features editor, code completion, re
💻 JAVA
字号:
// Autogenerated AST node
package org.python.pydev.parser.jython.ast;
import java.io.DataOutputStream;
import java.io.IOException;

import org.python.pydev.parser.jython.SimpleNode;

public class listcompType extends SimpleNode {
	/**
     * 
     */
    private static final long serialVersionUID = 971434004466657577L;
    public exprType target;
	public exprType iter;
	public exprType[] ifs;

	public listcompType(exprType target, exprType iter, exprType[] ifs) {
		this.target = target;
		this.iter = iter;
		this.ifs = ifs;
	}

	public listcompType(exprType target, exprType iter, exprType[] ifs,
	SimpleNode parent) {
		this(target, iter, ifs);
		this.beginLine = parent.beginLine;
		this.beginColumn = parent.beginColumn;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer("listcomp[");
		sb.append("target=");
		sb.append(dumpThis(this.target));
		sb.append(", ");
		sb.append("iter=");
		sb.append(dumpThis(this.iter));
		sb.append(", ");
		sb.append("ifs=");
		sb.append(dumpThis(this.ifs));
		sb.append("]");
		return sb.toString();
	}

	public void pickle(DataOutputStream ostream) throws IOException {
		pickleThis(48, ostream);
		pickleThis(this.target, ostream);
		pickleThis(this.iter, ostream);
		pickleThis(this.ifs, ostream);
	}

	public Object accept(VisitorIF visitor) throws Exception {
		traverse(visitor);
		return null;
	}

	public void traverse(VisitorIF visitor) throws Exception {
		if (target != null)
			target.accept(visitor);
		if (iter != null)
			iter.accept(visitor);
		if (ifs != null) {
			for (int i = 0; i < ifs.length; i++) {
				if (ifs[i] != null)
					ifs[i].accept(visitor);
			}
		}
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -