Documentation Language: Swift

Structure

ATLCalledRule

Represents an ATL called rule for imperative transformation.

struct ATLCalledRule

Overview

Called rules provide imperative control flow within ATL’s primarily declarative framework. They are executed explicitly through rule invocation expressions and support parameterised transformations that cannot be expressed through pattern matching alone.

Overview

Called rules offer several capabilities:

Example Usage

let createPersonRule = ATLCalledRule(
    name: "CreatePerson",
    parameters: [
        ATLParameter(name: "member", type: "Families!Member"),
        ATLParameter(name: "isMale", type: "Boolean")
    ],
    targetPatterns: [
        ATLTargetPattern(
            variableName: "person",
            type: "Persons!Person",
            bindings: ["name": nameExpression]
        )
    ],
    body: [assignmentStatement, conditionalStatement]
)

Topics

Operators

Initializers

?
init(name:parameters:targetPatterns:body:)

Creates a new ATL called rule.

Instance Properties

V
body

The imperative statements executed by the called rule.

V
name

The name of the called rule.

V
parameters

The parameters accepted by the called rule.

V
targetPatterns

The target patterns that define the output specifications.

Instance Methods

Default Implementations

Relationships

Conforms To

See Also

Modules and Rules

S
ATLModule

Represents an ATL (Atlas Transformation Language) module.

S
ATLMatchedRule

Represents an ATL matched rule for declarative transformation.

S
ATLHelper

Represents an ATL helper function.