evaluatablenode.java

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

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

    /**
     * Evaluates 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.
     * @see Value
     */
    abstract Value evaluate(Environment env) throws InterpreterException;
}

⌨️ 快捷键说明

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