Methods
parseBaseExpression(operator) → {Object}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
operator |
String |
Returns:
- Type
- Object
parseConditionExpression() → {Object}
- Description:
Parse conditions ([word/string] [operator] [word/string])
- Source:
Returns:
- Type
- Object
parseExpressionsRecursively() → {Object}
- Description:
Wrapper function ; parse the source
- Source:
Returns:
- Type
- Object
parseGroupExpression(operator) → {Object}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
operator |
String |
Returns:
- Type
- Object
parseLogicalExpression() → {Object}
- Description:
Parse logical expressions (AND/OR)
- Source:
Returns:
- Type
- Object
parseSelectExistsSubQuery() → {Array.<Object>}
- Source:
Returns:
- Type
- Array.<Object>
parseSelectIn(startAstNode, isSelectStatement) → {Object}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
startAstNode |
any | |
isSelectStatement |
Boolean |
Returns:
- Type
- Object
parseWordExpression() → {Object}
- Source:
Returns:
- Type
- Object
readNextToken() → {Object}
- Description:
Read the next token (skip empty tokens)
- Source:
Returns:
- Type
- Object
(static) createNotOperatorAstLogic(left, right, compOp) → {Object}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Object | |
right |
Object | |
compOp |
String |
Returns:
- Type
- Object
(static) createWhereBetweenAstLogic(leftNode, rightNode) → {Object}
- Description:
Modify AST for BETWEEN logic. Create two comparisons connected with AND/OR (AND - BETWEEN, OR - NOT BETWEEN)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
leftNode |
Object | contains field to compare AND the low value. |
rightNode |
Object | contains high value. |
Returns:
- AST with logic and terms for comparison.
- Type
- Object
(static) groupBracketIncrementer(inCurrentToken) → {Number}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
inCurrentToken |
Object |
Returns:
- Type
- Number
(static) negateOperator(operator) → {String}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
operator |
String |
Returns:
- Type
- String
(static) parse(source) → {Object}
- Description:
Parse a string
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
source |
String |
Returns:
- Type
- Object