The Object Constraint Language: Getting Your Models Ready for MDA (2nd Edition)

With so many operations available on an instance of a type, rules are needed to determine the precedence of the operations. Table 7-4 shows the OCL operations, starting with the highest precedence. In case of doubt, the use of parentheses () is always allowed to specify the precedence explicitly.

Table 7-4. Precedence for OCL operations (highest to lowest )

Name

Syntax

Pathname

::

Time expression

@pre

The dot, arrow, and message operations

., ->, ^, ^^

Unary operations

-, not

Multiplication and division

*, /

Addition and substraction

+, -

Relational operations

<, >, <=, >=, <>, =

Logical operations

and, or, xor

Logical implies

implies

Категории