软件包  jdk.nashorn.api.tree

Interface UnaryTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",
                forRemoval=true)
    public interface UnaryTree
    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确定运算符的类型。 例如:
      operator expression
    
       expression operator 
    从以下版本开始:
    9
    • 方法详细信息

      • getExpression

        ExpressionTree getExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回由一元运算符操作的表达式。
        结果
        The expression operated by the unary operator.