Skip to main content

Class: ConditionalExpression

Extends

Constructors

new ConditionalExpression()

new ConditionalExpression(expression, filters, condition, alternative): ConditionalExpression

Parameters

expression: Expression

filters: ExpressionFilter[] = []

condition: Expression = NIL

alternative: Expression = NIL

Returns

ConditionalExpression

Overrides

FilteredExpression.constructor

Defined in

src/expression.ts:529

Properties

alternative

readonly alternative: Expression = NIL

Defined in

src/expression.ts:533


condition

readonly condition: Expression = NIL

Defined in

src/expression.ts:532


expression

readonly expression: Expression

Inherited from

FilteredExpression.expression

Defined in

src/expression.ts:530


filters

readonly filters: ExpressionFilter[] = []

Inherited from

FilteredExpression.filters

Defined in

src/expression.ts:531

Methods

applyFilters()

protected applyFilters(left, filters, context): Promise<unknown>

Parameters

left: unknown

filters: ExpressionFilter[]

context: RenderContext

Returns

Promise<unknown>

Inherited from

FilteredExpression.applyFilters

Defined in

src/expression.ts:443


applyFiltersSync()

protected applyFiltersSync(left, filters, context): unknown

Parameters

left: unknown

filters: ExpressionFilter[]

context: RenderContext

Returns

unknown

Inherited from

FilteredExpression.applyFiltersSync

Defined in

src/expression.ts:472


children()

children(): Expression[]

Returns

Expression[]

Overrides

FilteredExpression.children

Defined in

src/expression.ts:599


equals()

equals(other): boolean

Parameters

other: unknown

Returns

boolean

Overrides

FilteredExpression.equals

Defined in

src/expression.ts:538


evaluate()

evaluate(context): Promise<unknown>

Parameters

context: RenderContext

Returns

Promise<unknown>

Overrides

FilteredExpression.evaluate

Defined in

src/expression.ts:567


evaluateSync()

evaluateSync(context): unknown

Parameters

context: RenderContext

Returns

unknown

Overrides

FilteredExpression.evaluateSync

Defined in

src/expression.ts:583


toString()

toString(): string

Returns

string

Overrides

FilteredExpression.toString

Defined in

src/expression.ts:548