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
-
not- Boolean negation
Arithmetic
-
-- Numeric negation (unary minus)
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
Instance Methods
F
evaluate(in:)
Evaluates the expression within the specified execution context.
Enumerations
E
AQLUnaryExpression.Operator
Unary operator type.