软件包  jdk.nashorn.api.tree

Interface ConditionalExpressionTree

  • All Superinterfaces:
    ExpressionTree

    @Deprecated(since="11",            forRemoval=true)public interface ConditionalExpressionTreeextends 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.
    条件运算符的树节点? :。 例如:
      condition ? trueExpression : falseExpression 
    从以下版本开始:
    9
    • 方法详细信息

      • getCondition

        ExpressionTree getCondition()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此三元表达式的条件表达式。
        结果
        条件表达式
      • getTrueExpression

        ExpressionTree getTrueExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此三元表达式的真实部分。
        结果
        '真实'部分表达
      • getFalseExpression

        ExpressionTree getFalseExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此三元表达式的false部分。
        结果
        '假'部分表达