Documentation Language: Swift

Structure

AQLUnaryExpression

Represents unary operations in AQL (logical negation, numeric negation).

struct AQLUnaryExpression

Overview

Unary expressions apply a single operator to one operand to produce a result.

Supported Operators

Logical

Arithmetic

Example Usage

// Logical negation: not isActive
let notExpr = AQLUnaryExpression(
    op: .not,
    operand: isActiveExpr
)

// Numeric negation: -10
let negateExpr = AQLUnaryExpression(
    op: .negate,
    operand: AQLLiteralExpression(value: 10)
)

Topics

Initializers

?
init(op:operand:)

Creates a unary expression.

Instance Properties

V
op

The operator to apply.

V
operand

The operand expression.

Instance Methods

F
evaluate(in:)

Evaluates the expression within the specified execution context.

Enumerations

E
AQLUnaryExpression.Operator

Unary operator type.

Relationships

Conforms To