Class Units::ProgramDefinition

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

contains

true for a node that is contained within this program directly (not in a nested program)

getMetrics

Get the metrics for this unit

Inherited predicates

getASourceUnit

Get a source units belonging to this ProgramDefinition.

from ProgramDefinition_
getASuccessor

Get any possible successor in the progam’s control flow.

from AstNode
getDataDivision

Get the data division of this ProgramDefinition.

from ProgramDefinition_
getEnclosingText

Get the unit containing this element.

from AstNode
getEnclosingUnit

Get the unit containing this element.

from AstNode
getEnvironmentDivision

Get the environment division of this ProgramDefinition.

from ProgramDefinition_
getFirstSourceUnit

Get the first source units in the list.

from ProgramDefinition_
getHeader

Get the header of this Unit.

from Unit_
getIdentificationDivision

Get the identification division of this ProgramDefinition.

from ProgramDefinition_
getLastSourceUnit

Get the last source units in the list.

from ProgramDefinition_
getLocation

Get this element’s location.

from Locatable
getNumLines

Get the number of lines covered by this element.

from Locatable
getParentfrom Unit_
getProcedureDivision

Get the procedure division of this ProgramDefinition.

from ProgramDefinition_
getProgramDefinition

Get the program definition containing this unit. If the unit is a program definition, return the unit itself.

from Unit
getSourceUnit

Get the nth source units of this ProgramDefinition.

from ProgramDefinition_
getSourceUnitsList

Get the list of source units belonging to this ProgramDefinition.

from ProgramDefinition_
getSourceUnitsSize

Get the number of elements in the list of source units.

from ProgramDefinition_
hasAncestor

Does this AstNode have ‘other’ as a ancestor?

from AstNode
hasDescendant

Does this AstNode have ‘other’ as a descendant?

from AstNode
toStringfrom ProgramDefinition_