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()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 java.util.List getContent()
          Returns the value of the 'Content' containment reference list.
 Declaratives getDeclaratives()
          Returns the value of the 'Declaratives' containment reference.
 ProcedureDivisionHeader getHeader()
          Returns the value of the 'Header' containment reference.
 java.util.List getSections()
          Deprecated. Use getContent() instead.
 void setDeclaratives(Declaratives value)
          Sets the value of the 'Declaratives' containment reference.
 void setHeader(ProcedureDivisionHeader value)
          Sets the value of the 'Header' containment reference.
 
Methods inherited from interface com.ibm.etools.cobol.application.model.cobol.ASTNode
getBeginColumn, getBeginFile, getBeginLine, getEndColumn, getEndFile, getEndLine, getParent, getTag, setBeginColumn, setBeginFile, setBeginLine, setEndColumn, setEndFile, setEndLine, setParent, setTag
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
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()