软件包  jdk.nashorn.api.tree

Interface NewTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",            forRemoval=true)public interface NewTreeextends 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.
    用于声明类的新实例的树节点。 例如:
      new identifier ( )   new identifier ( arguments ) 
    从以下版本开始:
    9
    • 方法详细信息

      • getConstructorExpression

        ExpressionTree getConstructorExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此“new”表达式的构造函数表达式。
        结果
        the constructor expression of this 'new' expression