Documentation Language: Swift

Structure

ATLHelperCallExpression

Represents helper function invocation expressions in ATL.

struct ATLHelperCallExpression

Overview

Helper call expressions enable invocation of custom functions defined within ATL modules, providing extensibility beyond the standard OCL library. They support both contextual and context-free helper invocation with parameter passing.

Example Usage

// Call context-free helper
let utilityCall = ATLHelperCallExpression(
    helperName: "formatName",
    arguments: [firstNameExpr, lastNameExpr]
)

// Call contextual helper (context provided by execution environment)
let contextualCall = ATLHelperCallExpression(
    helperName: "familyName",
    arguments: []
)

Topics

Operators

Initializers

?
init(helperName:arguments:)

Creates a new helper call expression.

Instance Properties

V
arguments

The argument expressions to pass to the helper function.

V
helperName

The name of the helper function to invoke.

Instance Methods

F
evaluate(in:)

Evaluates the expression within the specified execution context.

Default Implementations

Relationships

Conforms To