Structure
ATLNavigationExpression
Represents property navigation expressions in ATL.
struct ATLNavigationExpression
Overview
Navigation expressions provide access to object properties and references, enabling traversal of model structures according to metamodel specifications. They support both single-valued and multi-valued property access with automatic collection handling.
Overview
Navigation expressions handle several navigation patterns:
-
Attribute access: Simple property value retrieval
-
Reference navigation: Traversal of object relationships
-
Collection navigation: Access to multi-valued properties
-
Opposite navigation: Reverse reference traversal
-
Meta-property access: Reflection-based property queries
Example Usage
// Navigate to firstName property
let firstNameExpr = ATLNavigationExpression(
source: ATLVariableExpression(name: "member"),
property: "firstName"
)
// Navigate to family reference
let familyExpr = ATLNavigationExpression(
source: ATLVariableExpression(name: "member"),
property: "family"
)
Topics
Operators
Initializers
Creates a new navigation expression.
Instance Properties
Instance Methods
Evaluates the expression within the specified execution context.
Default Implementations
Relationships
Conforms To
See Also
Expressions
Protocol for ATL expressions that can be evaluated within transformation contexts.
Represents an ATL collection operation expression.
Represents literal value expressions in ATL.