Class AST_extended::SourceUnit

Direct supertypes

Indirect supertypes

Predicates

Inherited predicates

getASourceUnit

Get a source units belonging to this SourceUnit.

from SourceUnit_
getASuccessor

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

from AstNode
getEnclosingText

Get the unit containing this element.

from AstNode
getEnclosingUnit

Get the unit containing this element.

from AstNode
getFirstSourceUnit

Get the first source units in the list.

from SourceUnit_
getHeader

Get the header of this Unit.

from Unit_
getLastSourceUnit

Get the last source units in the list.

from SourceUnit_
getLocation

Get this element’s location.

from Locatable
getMetrics

Get the metrics for this unit

from Unit
getNumLines

Get the number of lines covered by this element.

from Locatable
getParentfrom Unit_
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 SourceUnit.

from SourceUnit_
getSourceUnitsList

Get the list of source units belonging to this SourceUnit.

from SourceUnit_
getSourceUnitsSize

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

from SourceUnit_
hasAncestor

Does this AstNode have ‘other’ as a ancestor?

from AstNode
hasDescendant

Does this AstNode have ‘other’ as a descendant?

from AstNode