Class: Expression

Expression

new Expression(params)

Expression class
Parameters:
Name Type Description
params object Initial parameters
Source:

Methods

compile(context, tableid, defcols) → {string}

Compile AST to JavaScript expression
This:
  • ExpressionStatement
Parameters:
Name Type Description
context string Context string, e.g. 'p','g', or 'x'
tableid string Default table name
defcols object Default columns dictionary
Source:
Returns:
JavaScript expression
Type
string

findAggregator(query)

Find aggregator in AST subtree
This:
  • ExpressionStatement
Parameters:
Name Type Description
query object Query object
Source:

toJavaScript(context, tableid, defcols) → {string}

Convert AST to JavaScript expression
This:
  • ExpressionStatement
Parameters:
Name Type Description
context string Context string, e.g. 'p','g', or 'x'
tableid string Default table name
defcols object Default columns dictionary
Source:
Returns:
JavaScript expression
Type
string

toString() → {string}

Convert AST to string
This:
  • ExpressionStatement
Source:
Returns:
Type
string