Structure
ATLCollectionLiteralExpression
Represents an ATL collection literal expression.
struct ATLCollectionLiteralExpression
Overview
Collection literals create collections with explicit element values, supporting the standard OCL collection types: Sequence, Set, and Bag.
In ATL, collection literals are expressed using the syntax:
-
Sequence{elements}for ordered collections -
Set{elements}for unique collections -
Bag{elements}for multiset collections
This expression evaluates to the appropriate Swift collection type with the evaluated element values.
Topics
Operators
Equality comparison for collection literal expressions.
Initializers
Creates a new collection literal expression.
Instance Properties
The type of collection (e.g., “Sequence”, “Set”, “Bag”).
The expressions for the collection elements.
Instance Methods
Evaluates the collection literal by creating the appropriate collection type and evaluating all element expressions.
Hash computation for collection literal expressions.