com.ibm.etools.cobol.application.model.cobol

Interface IfThenElseStmt

  • All Superinterfaces:
    ASTNode, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, Stmt


    public interface IfThenElseStmt
    extends Stmt
    A representation of an IF statement in the PROCEDURE division. The END-IF keyword is not represented in the model.

    The following features are supported:

    See Also:
    COBOLPackage.getIfThenElseStmt()
    • Method Detail

      • getCondition

        ExprConditional getCondition()
        Returns the value of the 'Condition' containment reference.

        The value is the conditional expression following the IF keyword.

        Returns:
        the value of the 'Condition' containment reference.
        See Also:
        setCondition(ExprConditional), COBOLPackage.getIfThenElseStmt_Condition()
      • setCondition

        void setCondition(ExprConditional value)
        Sets the value of the 'Condition' containment reference.
        Parameters:
        value - the new value of the 'Condition' containment reference.
        See Also:
        getCondition()
      • getThen

        Branch getThen()
        Returns the value of the 'Then' containment reference.

        The value is a representation of the statements in the THEN clause, or NEXT SENTENCE.

        Returns:
        the value of the 'Then' containment reference.
        See Also:
        setThen(Branch), COBOLPackage.getIfThenElseStmt_Then()
      • setThen

        void setThen(Branch value)
        Sets the value of the 'Then' containment reference.
        Parameters:
        value - the new value of the 'Then' containment reference.
        See Also:
        getThen()
      • getElse

        Branch getElse()
        Returns the value of the 'Else' containment reference.

        The value is a representation of the statements in the ELSE clause, or NEXT SENTENCE.

        Returns:
        the value of the 'Else' containment reference.
        See Also:
        setElse(Branch), COBOLPackage.getIfThenElseStmt_Else()
      • setElse

        void setElse(Branch value)
        Sets the value of the 'Else' containment reference.
        Parameters:
        value - the new value of the 'Else' containment reference.
        See Also:
        getElse()
      • isEndIfUsed

        boolean isEndIfUsed()
        Returns the value of the 'End If Used' attribute.

        The value is true if END-IF is present; false otherwise.

        Returns:
        the value of the 'End If Used' attribute.
        See Also:
        setEndIfUsed(boolean), COBOLPackage.getIfThenElseStmt_EndIfUsed()
      • setEndIfUsed

        void setEndIfUsed(boolean value)
        Sets the value of the 'End If Used' attribute.
        Parameters:
        value - the new value of the 'End If Used' attribute.
        See Also:
        isEndIfUsed()