Interface ConditionalExpressionTree

All Superinterfaces:
ExpressionTree, Tree

public interface ConditionalExpressionTree extends ExpressionTree
A tree node for the conditional operator ? :. For example:
   condition ? trueExpression : falseExpression
 
See Java Language Specification:
15.25 Conditional Operator ? :
Since:
1.6
  • Method Details Link icon

    • getCondition Link icon

      ExpressionTree getCondition()
      Returns the condition.
      Returns:
      the condition
    • getTrueExpression Link icon

      ExpressionTree getTrueExpression()
      Returns the expression to be evaluated if the condition is true.
      Returns:
      the expression to be evaluated if the condition is true
    • getFalseExpression Link icon

      ExpressionTree getFalseExpression()
      Returns the expression to be evaluated if the condition is false.
      Returns:
      the expression to be evaluated if the condition is false