Class ASTConditionalExpression

    • Method Detail

      • isTernary

        @Deprecated
        public boolean isTernary()
        Deprecated.
        To be removed in 7.0.0
        This method always returns true.
      • getGuardExpressionNode

        @Deprecated
        public Node getGuardExpressionNode()
        Deprecated.
        Returns the node that represents the guard of this conditional. That is the expression before the '?'.
      • getCondition

        public Node getCondition()
        Returns the node that represents the guard of this conditional. That is the expression before the '?'.
      • getTrueAlternative

        public ASTExpression getTrueAlternative()
        Returns the node that represents the expression that will be evaluated if the guard evaluates to true.
      • getFalseAlternative

        public Node getFalseAlternative()
        Returns the node that represents the expression that will be evaluated if the guard evaluates to false.