Documentation Language: Swift

Structure

ATLBinaryExpression

Represents binary operation expressions in ATL.

struct ATLBinaryExpression

Overview

Binary operation expressions support arithmetic, logical, comparison, and collection operations between two operand expressions. They provide the computational foundation for complex transformation logic and conditional evaluation.

Overview

Supported operation categories include:

Example Usage

// Arithmetic operation
let addition = ATLBinaryExpression(
    left: ATLVariableExpression(name: "x"),
    operator: .plus,
    right: ATLLiteralExpression(value: 10)
)

// Comparison operation
let comparison = ATLBinaryExpression(
    left: ATLVariableExpression(name: "age"),
    operator: .greaterThan,
    right: ATLLiteralExpression(value: 18)
)

Topics

Operators

Initializers

?
init(left:operator:right:)

Creates a new binary operation expression.

Instance Properties

V
left

The left operand expression.

V
operator

The binary operator to apply.

V
right

The right operand expression.

Instance Methods

F
evaluate(in:)

Evaluates the expression within the specified execution context.

Default Implementations

Relationships

Conforms To