Documentation Language: Swift

Structure

ATLLetExpression

Represents let expressions in ATL/OCL for local variable bindings.

struct ATLLetExpression

Overview

Let expressions introduce local variable bindings that are visible within the in expression scope, following the OCL syntax:

let varName : Type = initExpression in bodyExpression

Example Usage

let letExpr = ATLLetExpression(
    variableName: "avgPages",
    variableType: "Real",
    initExpression: ATLBinaryExpression(...),
    inExpression: bodyExpression
)

Topics

Operators

Initializers

Instance Properties

V
inExpression

The body expression evaluated with the variable binding in scope.

V
initExpression

The initialisation expression for the variable.

V
variableName

The variable name for the let binding.

V
variableType

The optional type annotation for the variable.

Instance Methods

F
evaluate(in:)

Evaluates the expression within the specified execution context.

Default Implementations

Relationships

Conforms To