Expression class

Represents expression object.

Index

Constructors

Public Properties

Public Accessors

Public Methods

Constructors


constructor

The default constructor. ⊕ new Expression(parent: ExpressionParent): Expression

Parameters:


Public Properties


_isDefaultValue

● _isDefaultValue: boolean = false


args

The list of arguments.

● args?: Expression[]


baseAttrId

The base attribute id.

● baseAttrId?: string


dataType

The data type.

● dataType: DataType = DataType.String


distinct

The distinct option. (e.g SELECT DISTINCT)

● distinct: boolean = false


func

The function.

● func?: string


kind

The data kind.

● kind: DataKind = DataKind.Scalar


sql

The sql expression.

● sql?: string


subQuery

The query.

● subQuery?: Query


tag

The tag.

● tag: ExprTag = ExprTag.Constant


Public Accessors


value

⇄ get value(): string

Returns string


Public Methods


getIndex

▸ getIndex(): number

Returns number


getModel

▸ getModel(): DataModel

Returns DataModel


getParent

▸ getParent(): ExpressionParent

Returns ExpressionParent


getText

▸ getText(): any

Returns any


hasText

▸ hasText(): boolean

Returns boolean


isEmpty

▸ isEmpty(): boolean

Returns boolean


loadFromData

Loads expression from its JSON representation object.

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

Parameters:

Returns void


saveToData

Saves expression from JSON representation object.

▸ saveToData(): ExpressionData

Returns ExpressionData - The JSON representation object.


setContent

▸ setContent(val: string,txt?: string,silent?: boolean): void

Parameters:

  • val: string
  • txt: string, Optional
  • silent: boolean, Default value = false

Returns void


setValue

▸ setValue(val: string,silent?: boolean): void

Parameters:

  • val: string
  • silent: boolean, Default value = false

Returns void


tryCopyValueFrom

▸ tryCopyValueFrom(expr: Expression): void

Parameters:

Returns void