list.java

来自「tinyos最新版」· Java 代码 · 共 54 行

JAVA
54
字号
// Autogenerated AST nodepackage org.python.parser.ast;import org.python.parser.SimpleNode;import java.io.DataOutputStream;import java.io.IOException;public class List extends exprType implements expr_contextType {    public exprType[] elts;    public int ctx;    public List(exprType[] elts, int ctx) {        this.elts = elts;        this.ctx = ctx;    }    public List(exprType[] elts, int ctx, SimpleNode parent) {        this(elts, ctx);        this.beginLine = parent.beginLine;        this.beginColumn = parent.beginColumn;    }    public String toString() {        StringBuffer sb = new StringBuffer("List[");        sb.append("elts=");        sb.append(dumpThis(this.elts));        sb.append(", ");        sb.append("ctx=");        sb.append(dumpThis(this.ctx,        expr_contextType.expr_contextTypeNames));        sb.append("]");        return sb.toString();    }    public void pickle(DataOutputStream ostream) throws IOException {        pickleThis(42, ostream);        pickleThis(this.elts, ostream);        pickleThis(this.ctx, ostream);    }    public Object accept(VisitorIF visitor) throws Exception {        return visitor.visitList(this);    }    public void traverse(VisitorIF visitor) throws Exception {        if (elts != null) {            for (int i = 0; i < elts.length; i++) {                if (elts[i] != null)                    elts[i].accept(visitor);            }        }    }}

⌨️ 快捷键说明

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