Skip to main content

Class: Literal<T>

Defined in: packages/core/src/plan/operators/item/literal.ts:7

A compile-time constant value embedded in a Calculation.

Type Parameters

Type ParameterDefault type
Tunknown

Implements

Constructors

Constructor

new Literal<T>(lang, value): Literal<T>

Defined in: packages/core/src/plan/operators/item/literal.ts:11

Parameters

ParameterTypeDescription
langLowercase<string>PlanOperator.lang
valueTThe constant value produced by this literal.

Returns

Literal<T>

Properties

[CalcIntermediate]

[CalcIntermediate]: boolean = true

Defined in: packages/core/src/plan/operators/item/literal.ts:9

Marks this as a CalcIntermediate sub-operator of a Calculation.


lang

lang: Lowercase<string>

Defined in: packages/core/src/plan/operators/item/literal.ts:13

PlanOperator.lang

Implementation of

PlanOperator.lang


value

value: T

Defined in: packages/core/src/plan/operators/item/literal.ts:15

The constant value produced by this literal.

Methods

accept()

accept<Ret, Arg>(visitors, arg?): Ret

Defined in: packages/core/src/plan/operators/item/literal.ts:19

PlanOperator.accept

Type Parameters

Type Parameter
Ret
Arg

Parameters

ParameterType
visitorsRecord<string, PlanVisitor<Ret, Arg>>
arg?Arg

Returns

Ret

Implementation of

PlanOperator.accept


clone()

clone(meta?): Literal<T>

Defined in: packages/core/src/plan/operators/item/literal.ts:39

Clone this FnCall

Parameters

ParameterTypeDescription
meta?ArgMeta[]provided by cloned Calculation, should be modified in-place to reflect new locations of arguments

Returns

Literal<T>

Implementation of

PlanOperator.clone


getChildren()

getChildren(): PlanOperator[]

Defined in: packages/core/src/plan/operators/item/literal.ts:30

PlanOperator.getChildren

Returns

PlanOperator[]

Implementation of

PlanOperator.getChildren


getDependencies()

getDependencies(): IdSet

Defined in: packages/core/src/plan/operators/item/literal.ts:44

PlanOperator.getDependencies

Returns

IdSet

Implementation of

PlanOperator.getDependencies


replaceChild()

replaceChild(current, replacement): void

Defined in: packages/core/src/plan/operators/item/literal.ts:26

PlanOperator.replaceChild

Parameters

ParameterType
currentPlanOperator
replacementPlanOperator

Returns

void

Implementation of

PlanOperator.replaceChild