Documentation Language: Swift

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:

This expression evaluates to the appropriate Swift collection type with the evaluated element values.

Topics

Operators

?
==(_:_:)

Equality comparison for collection literal expressions.

Initializers

?
init(collectionType:elements:)

Creates a new collection literal expression.

Instance Properties

V
collectionType

The type of collection (e.g., “Sequence”, “Set”, “Bag”).

V
elements

The expressions for the collection elements.

Instance Methods

F
evaluate(in:)

Evaluates the collection literal by creating the appropriate collection type and evaluating all element expressions.

F
hash(into:)

Hash computation for collection literal expressions.

Default Implementations

Relationships

Conforms To