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

Interface Branch

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


    public interface Branch
    extends ASTNode
    A representation of the statements or NEXT SENTENCE in the ELSE and THEN clauses of an IF statement.

    The following features are supported:

    See Also:
    COBOLPackage.getBranch()
    • Method Detail

      • isNextSentence

        boolean isNextSentence()
        Returns the value of the 'Next Sentence' attribute.

        The value is true if NEXT SENTENCE is specified.

        Returns:
        the value of the 'Next Sentence' attribute.
        See Also:
        setNextSentence(boolean), COBOLPackage.getBranch_NextSentence()
      • setNextSentence

        void setNextSentence(boolean value)
        Sets the value of the 'Next Sentence' attribute.
        Parameters:
        value - the new value of the 'Next Sentence' attribute.
        See Also:
        isNextSentence()
      • getStatements

        java.util.List getStatements()
        Returns the value of the 'Statements' containment reference list. The list contents are of type Stmt.

        Returns:
        the value of the 'Statements' containment reference list.
        See Also:
        COBOLPackage.getBranch_Statements()