软件包  jdk.nashorn.api.tree

Interface PropertyTree

  • All Superinterfaces:

    @Deprecated(since="11",
                forRemoval=true)
    public interface PropertyTree
    extends 
    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.
    表示对象文字树中的属性设置。
    从以下版本开始:
    9
    • 嵌套类汇总

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

        Tree.Kind
    • 方法摘要

      所有方法  实例方法 抽象方法  弃用的方法 
      变量和类型 方法 描述
      FunctionExpressionTree getGetter()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      如果这是一个访问器属性,则返回此属性的setter函数。
      ExpressionTree getKey()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      返回此属性的名称。
      FunctionExpressionTree getSetter()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      如果这是一个访问器属性,则返回此属性的getter函数。
      ExpressionTree getValue()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      返回此属性的值。
      boolean isComputed()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是计算属性吗?
      boolean isStatic()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      这是一个类静态属性吗?
    • 方法详细信息

      • getKey

        ExpressionTree getKey()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此属性的名称。
        结果
        财产的名称
      • getValue

        ExpressionTree getValue()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此属性的值。 对于访问者属性,这是null。
        结果
        财产的价值
      • getGetter

        FunctionExpressionTree getGetter()
        Deprecated, for removal: This API element is subject to removal in a future version.
        如果这是一个访问器属性,则返回此属性的setter函数。 对于数据属性,这是null。
        结果
        属性的setter函数
      • getSetter

        FunctionExpressionTree getSetter()
        Deprecated, for removal: This API element is subject to removal in a future version.
        如果这是一个访问器属性,则返回此属性的getter函数。 对于数据属性,这是null。
        结果
        属性的getter函数
      • isStatic

        boolean isStatic()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是一个类静态属性吗?
        结果
        如果这是一个静态属性,则为true
      • isComputed

        boolean isComputed()
        Deprecated, for removal: This API element is subject to removal in a future version.
        这是计算属性吗?
        结果
        如果这是计算属性,则返回true