executablenode.java

来自「是有关解释器的.用JAVA编写.可以解释一般的JAVA程序.」· Java 代码 · 共 22 行

JAVA
22
字号
/**
 * Inherit from this class if your node is executable.
 * 
 * @see AbstractSyntaxNode
 * @see EvaluatableNode
 * @see Environment
 */
public abstract class ExecutableNode extends AbstractSyntaxNode {

    /**
     * Executes the node.
     * 
     * @param env
     *            the <code>Environment</code> (has to contain type
     *            information of all variables and methods visible to the node.
     * @throws InterpreterException
     *             if execution of the node generated a runtime error in the
     *             program.
     */
    abstract Environment run(Environment env) throws InterpreterException;
}

⌨️ 快捷键说明

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