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

Interface ProcedureDivision

  • All Superinterfaces:
    ASTNode, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, com.ibm.etools.cobol.application.model.cobol.ProcedureDivisionOrEntryStmt


    public interface ProcedureDivision
    extends ASTNode, com.ibm.etools.cobol.application.model.cobol.ProcedureDivisionOrEntryStmt
    A representation of the PROCEDURE division.

    The following features are supported:

    See Also:
    COBOLPackage.getProcedureDivision()
    • Method Detail

      • getHeader

        ProcedureDivisionHeader getHeader()
        Returns the value of the 'Header' containment reference.

        The value is a representation of the contents of the RETURNING and USING clauses.

        Returns:
        the value of the 'Header' containment reference.
        See Also:
        setHeader(ProcedureDivisionHeader), COBOLPackage.getProcedureDivision_Header()
      • setHeader

        void setHeader(ProcedureDivisionHeader value)
        Sets the value of the 'Header' containment reference.
        Parameters:
        value - the new value of the 'Header' containment reference.
        See Also:
        getHeader()
      • getSections

        java.util.List getSections()
        Deprecated. Use getContent() instead.
        Returns the value of the 'Sections' containment reference list. The list contents are of type Section.

        If there are no sections in the procedure division, a default section is created with no name (the getName() method returns null), so the returned list is never empty.

        Returns:
        the value of the 'Sections' containment reference list.
        See Also:
        COBOLPackage.getProcedureDivision_Sections()
      • getContent

        java.util.List getContent()
        Returns the value of the 'Content' containment reference list. The list contents are of type ProcedureDivisionContent.

        The content of the procedure division consists of sections, paragraphs, or sentences.

        Returns:
        the value of the 'Content' containment reference list.
        See Also:
        COBOLPackage.getProcedureDivision_Content()
      • getDeclaratives

        Declaratives getDeclaratives()
        Returns the value of the 'Declaratives' containment reference.

        Returns:
        the value of the 'Declaratives' containment reference.
        See Also:
        setDeclaratives(Declaratives), COBOLPackage.getProcedureDivision_Declaratives()
      • setDeclaratives

        void setDeclaratives(Declaratives value)
        Sets the value of the 'Declaratives' containment reference.
        Parameters:
        value - the new value of the 'Declaratives' containment reference.
        See Also:
        getDeclaratives()