软件包  jdk.nashorn.api.tree

Interface IdentifierTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",
                forRemoval=true)
    public interface IdentifierTree
    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.
    标识符表达式的树节点。 例如:
      name 
    从以下版本开始:
    9
    • 嵌套类汇总

      • Nested classes/interfaces declared in interface jdk.nashorn.api.tree.

        Tree.Kind
    • 方法摘要

      所有方法  实例方法 抽象方法  弃用的方法 
      变量和类型 方法 描述
      String getName()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      返回此标识符的名称。
      boolean isDefault()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是模块导出条目中使用的“默认”吗?
      boolean isRestParameter()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是数组的函数或rest元素的rest参数吗?
      boolean isStar()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      模块导出条目中是否使用了“*”?
      boolean isStarDefaultStar()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是模块导出条目中使用的“* default *”吗?
      boolean isSuper()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是超级标识符吗?
      boolean isThis()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是'这个'标识符吗?
    • 方法详细信息

      • getName

        String getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此标识符的名称。
        结果
        此标识符的名称
      • isRestParameter

        boolean isRestParameter()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是数组的函数或rest元素的rest参数吗?
        结果
        如果这是rest参数,则返回true
      • isSuper

        boolean isSuper()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是超级标识符吗?
        结果
        如果这是超级标识符,则为true
      • isThis

        boolean isThis()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是'这个'标识符吗?
        结果
        如果这是'this'标识符,则为true
      • isStar

        boolean isStar()
        Deprecated, for removal: This API element is subject to removal in a future version.
        模块导出条目中是否使用了“*”?
        结果
        如果模块导出条目中使用了“*”,则为true吗?
      • isDefault

        boolean isDefault()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是模块导出条目中使用的“默认”吗?
        结果
        如果模块导出条目中使用了'default',则为true吗?
      • isStarDefaultStar

        boolean isStarDefaultStar()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是模块导出条目中使用的“* default *”吗?
        结果
        true if this '*default*' used in module export entry?