Class ASTIfStatement

    • Method Detail

      • hasElse

        public boolean hasElse()
        Returns true if this statement has an else clause.
      • getGuardExpressionNode

        @Deprecated
        public ASTExpression getGuardExpressionNode()
        Deprecated.
        Returns the node that represents the guard of this conditional. This may be any expression of type boolean.
      • getCondition

        public ASTExpression getCondition()
        Returns the node that represents the guard of this conditional. This may be any expression of type boolean.
      • getThenBranch

        public ASTStatement getThenBranch()
        Returns the statement that will be run if the guard evaluates to true.
      • getElseBranch

        public ASTStatement getElseBranch()
        Returns the statement of the else clause, if any.