Documentation Language: Swift

Structure

MTLExpressionStatement

A statement that evaluates an expression and outputs the result.

struct MTLExpressionStatement

Overview

Expression statements allow dynamic content to be inserted into templates by evaluating AQL expressions and converting their results to strings.

Example Usage

let nameExpr = MTLExpression(AQLNavigationExpression(
    source: AQLVariableExpression(name: "model"),
    property: "name"
))
let exprStmt = MTLExpressionStatement(expression: nameExpr)

Topics

Initializers

?
init(expression:multiLines:newLineNeeded:)

Creates a new expression statement.

Instance Properties

V
expression

The expression to evaluate and output.

V
multiLines

Whether this statement spans multiple lines.

V
newLineNeeded

Whether a newline should be added after the expression result.

Instance Methods

F
execute(in:)

Executes the statement within the specified execution context.

Default Implementations

Relationships

Conforms To