Documentation Language: Swift

Structure

ATLOperationExpression

Represents an ATL operation call expression.

struct ATLOperationExpression

Overview

Operation expressions handle both contextual and context-free operation calls, supporting the full range of ATL/OCL operations including helper functions, built-in operations, and metamodel-specific operations.

Example Usage

// Context-free operation call
let helperCall = ATLOperationExpression(
    source: nil,
    operationName: "myHelper",
    arguments: [ATLLiteralExpression(value: "test")]
)

// Contextual operation call
let methodCall = ATLOperationExpression(
    source: ATLVariableExpression(name: "self"),
    operationName: "toString",
    arguments: []
)

Topics

Operators

Initializers

?
init(source:operationName:arguments:)

Creates a new operation expression.

Instance Properties

V
arguments

The argument expressions for the operation call.

V
operationName

The name of the operation to invoke.

V
source

The source expression (receiver) for the operation call.

Instance Methods

F
evaluate(in:)

Evaluates the expression within the specified execution context.

Default Implementations

Relationships

Conforms To