Interface IfStatementTree

All Superinterfaces:
ExplicitStatementTree, HasTextRange, JclTree, StatementTree

@Beta public interface IfStatementTree extends ExplicitStatementTree
An IF/THEN/ELSE/ENDIF statement.

See IBM Reference - IF/THEN/ELSE/ENDIF statement construct.

  • Method Details

    • conditionalExpression

      BooleanExpressionTree conditionalExpression()
      Returns:
      the statement condition.
    • thenKeyword

      SyntaxToken thenKeyword()
      Returns:
      the THEN keyword token.
    • thenStatements

      List<StatementTree> thenStatements()
      Returns:
      the list of statements in the THEN block.
    • elseStatement

      @Nullable ElseStatementTree elseStatement()
      Returns:
      the ELSE part of the statement, if present.
    • endIfStatement

      EndIfStatementTree endIfStatement()
      Returns:
      the ENDIF statement.