Class: BuildingExpression

BuildingExpression(parent)

new BuildingExpression(parent)

Helper class to build jsDataQuery
Parameters:
Name Type Description
parent BuildingExpression
Source:

Methods

addOperand(expr)

Parameters:
Name Type Description
expr BuildingExpression
Source:

appendExpression(op) → {BuildingExpression}

Parameters:
Name Type Description
op OperatorDescriptor
Source:
Returns:
Type
BuildingExpression

build() → {sqlFun|null}

Source:
Returns:
Type
sqlFun | null

createChildExpression()

creates a new expression as a child of this one, so that the new expression is an operand of the current one. Useful if operator is we have a+b+c+d and then comes *, or we have a < b and then comes + i.e. if evaluation order of new operator is less than the current one The new expression has last operand as first operand, so the result is (a+b+c+(d*... Returns the new created child expression, in this example d*
Source:

createList(parent)

Creates an operation into a parent expression
Parameters:
Name Type Description
parent BuildingExpression
Source:

createParentesizedExpression(child)

Creates an operation in parentheses into a parent expression
Parameters:
Name Type Description
child BuildingExpression
Source:

nextParentList()

Gets the root expression
Source:

outerExpression() → {BuildingExpression}

Source:
Returns:
Type
BuildingExpression