软件包  jdk.nashorn.api.tree

Interface ClassExpressionTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",            forRemoval=true)public interface ClassExpressionTreeextends 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.
    表示 class expression的树节点。
    从以下版本开始:
    9
    • 方法详细信息

      • getName

        IdentifierTree getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        类标识符。 可选的。
        结果
        类标识符
      • getClassHeritage

        ExpressionTree getClassHeritage()
        Deprecated, for removal: This API element is subject to removal in a future version.
        extends子句的表达式。 可选的。
        结果
        阶级遗产
      • getConstructor

        PropertyTree getConstructor()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取构造函数方法定义。
        结果
        构造函数
      • getClassElements

        List<? extends PropertyTree> getClassElements()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取除构造函数之外的其他属性定义。
        结果
        the class elements