Expression class
Represents expression object.
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor. ⊕ new Expression(): Expression
Public Properties
Section titled “Public Properties”The list of arguments.
● args?: Expression[]
baseAttrId
Section titled “baseAttrId”The base attribute id.
● baseAttrId?: string
dataType
Section titled “dataType”The data type.
● dataType: DataType = DataType.String
distinct
Section titled “distinct”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
= ""
Public Methods
Section titled “Public Methods”loadFromData
Section titled “loadFromData”Loads expression from its JSON representation object.
▸ loadFromData(model: DataModel,data: ExpressionData): void
Parameters:
Section titled “Parameters:”- model: DataModel - The Data Model.
- data: ExpressionData - The JSON representation object.
Returns void
saveToData
Section titled “saveToData”Saves expression from JSON representation object.
▸ saveToData(): ExpressionData
Returns ExpressionData - The JSON representation object.