Single-Element Functions : List of Functions : stm_r_xx_definition_type

stm_r_xx_definition_type
Returns the definition type of the specified textual element.
Note the following:

You can call this function without indicating the specific element type, as follows:

stm_r_definition_type (id, status)

The enumerated type that reflects whether the textual element has a form. The nature of the definition field in the form is stm_definition_type, whose values are as follows:

stm_reference—The element has no form.
stm_primitive—The definition field is empty.
stm_compound—The definition field contains a compound expression.
stm_constant—The definition field contains a constant.
stm_alias—The definition field contains an identifier, a bit array, a component, or a slice (relevant for di only).
stm_explicit—The info_flow has a form.
stm_predefined—Predefined function.

Note that these types are not explicitly specified, but derived from the specification.

Function type
INTEGER
For elements
Syntax
stm_r_xx_definition_type (xx_id, status)
Arguments
Status Codes
Return Values
Although the return value of this function is of type INTEGER, the Documentor enables you to reference this value by name. The name is defined internally as a predefined constant in DGL. The following table lists the possible values for each Statemate element sub type: