Static
ParserInternally used Parser. Exported to allow new operations. To add a new operator use:
ComplexQuery.Parser.prototype.operators[<name>] = <operator definition>
Normalized syntax tree of the query.
Static
findFunction to find matching ASTNodes in the AST.
query to parse
query options
name of operator to find
Optional
propertyName: stringname of property referenced by the operator
array of matching ASTNodes or an empty array if nothing is found.
Static
isFunction to test if a given query is a complex query.
expression
Optional
queryOptions: ComplexQueryOptionsoptions
true if the expression is a complex query, otherwise false.
Static
parseFactory method to create a ComplexQuery.
Optional
query: ComplexQueryExpressionOptional
queryOptions: ComplexQueryOptionsStatic
usesFunction to test if an operator is used within a given query.
a complex query expression
query options
name of operator to find
Optional
propertyName: stringname of property referenced by the operator
true if the operator is detected in the query.
Function to encode the AST back into a ComplexQuery object literal.
Function to encode the AST or a part of it with a custom encoder.
output of the encoder.
Generated using TypeDoc
Interpreter and test engine for ComplexQueryExpressions.
Example