tryfinally.java

来自「无线通信的主要编程软件,是无线通信工作人员的必备工具,关天相关教程我会在后续传上」· Java 代码 · 共 60 行

JAVA
60
字号
// Autogenerated AST nodepackage org.python.parser.ast;import org.python.parser.SimpleNode;import java.io.DataOutputStream;import java.io.IOException;public class TryFinally extends stmtType {    public stmtType[] body;    public stmtType[] finalbody;    public TryFinally(stmtType[] body, stmtType[] finalbody) {        this.body = body;        this.finalbody = finalbody;    }    public TryFinally(stmtType[] body, stmtType[] finalbody, SimpleNode    parent) {        this(body, finalbody);        this.beginLine = parent.beginLine;        this.beginColumn = parent.beginColumn;    }    public String toString() {        StringBuffer sb = new StringBuffer("TryFinally[");        sb.append("body=");        sb.append(dumpThis(this.body));        sb.append(", ");        sb.append("finalbody=");        sb.append(dumpThis(this.finalbody));        sb.append("]");        return sb.toString();    }    public void pickle(DataOutputStream ostream) throws IOException {        pickleThis(18, ostream);        pickleThis(this.body, ostream);        pickleThis(this.finalbody, ostream);    }    public Object accept(VisitorIF visitor) throws Exception {        return visitor.visitTryFinally(this);    }    public void traverse(VisitorIF visitor) throws Exception {        if (body != null) {            for (int i = 0; i < body.length; i++) {                if (body[i] != null)                    body[i].accept(visitor);            }        }        if (finalbody != null) {            for (int i = 0; i < finalbody.length; i++) {                if (finalbody[i] != null)                    finalbody[i].accept(visitor);            }        }    }}

⌨️ 快捷键说明

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