Skip to content

Expression class

Represents expression object.


The default constructor. ⊕ new Expression(): Expression



The list of arguments.

● args?: Expression[]


The base attribute id.

● baseAttrId?: string


The data type.

● dataType: DataType = DataType.String


The distinct option. (e.g SELECT DISTINCT)

● distinct: boolean = false


The function.

● func?: string


The id.

● id: string = null


The data kind.

● kind: DataKind = DataKind.Scalar


The query.

● query?: Query


The sql expression.

● sql?: string


The tag.

● tag: ExprTag = ExprTag.Constant


The text.

● text: string = ""


The value.

● value: string | any = ""



Loads expression from its JSON representation object.

▸ loadFromData(model: DataModel,data: ExpressionData): void

Returns void


Saves expression from JSON representation object.

▸ saveToData(): ExpressionData

Returns ExpressionData - The JSON representation object.