软件包  jdk.nashorn.api.tree

Interface BinaryTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",
                forRemoval=true)
    public interface BinaryTree
    extends ExpressionTree
    Deprecated, for removal: This API element is subject to removal in a future version.
    Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
    二进制表达式的树节点。 使用getKind确定运算符的类型。 例如:
      leftOperand operator rightOperand 
    从以下版本开始:
    9
    • 方法详细信息

      • getLeftOperand

        ExpressionTree getLeftOperand()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此二进制表达式的左侧(LHS)。
        结果
        该二进制表达式的左侧(LHS)
      • getRightOperand

        ExpressionTree getRightOperand()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此二进制表达式的右侧(RHS)。
        结果
        这个二进制表达式的右侧(RHS)