new KqlParser()
- Source:
Extends
Methods
accessor() → {module:kdljs.query.Accessor}
Consume an accessor
- Source:
Returns:
- Type
- module:kdljs.query.Accessor
accessorMatcher() → {module:kdljs.query.Matcher}
Consume a [accessor]-type matcher
- Source:
Returns:
- Type
- module:kdljs.query.Matcher
formatError(input, error, messageopt, optionsopt) → {string}
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
input |
string | Input KDL file (or fragment) |
|||||||||||
error |
Object | ||||||||||||
message |
string |
<optional> |
Override the error message |
||||||||||
options |
Object |
<optional> |
Further configuration Properties
|
- Overrides:
- Source:
Returns:
- Type
- string
identifier() → {string}
Consume an identifier
- Overrides:
- Source:
Returns:
- Type
- string
mapTuple() → {module:kdljs.query.Mapping}
Consume a mapping
- Source:
Returns:
- Type
- module:kdljs.query.Mapping
matcher() → {module:kdljs.query.Matcher}
Consume a matcher
- Source:
Returns:
- Type
- module:kdljs.query.Matcher
matcherOperator() → {string}
Consume an operator within matchers
- Source:
Returns:
- Type
- string
nodeFilter() → {module:kdljs.query.NodeFilter}
Consume a nodeFilter
- Source:
Returns:
- Type
- module:kdljs.query.NodeFilter
query() → {module:kdljs.query.Query}
Consume a query
- Source:
Returns:
- Type
- module:kdljs.query.Query
rawString() → {string}
Consume a raw string
- Overrides:
- Source:
Returns:
- Type
- string
selectionOperator() → {string}
Consume an operator within selectors
- Source:
Returns:
- Type
- string
selector() → {module:kdljs.query.Selector}
Consume a selector
- Source:
Returns:
- Type
- module:kdljs.query.Selector
string() → {string}
Consume a normal string
- Overrides:
- Source:
Returns:
- Type
- string
tag() → {string}
Consume a tag
- Overrides:
- Source:
Returns:
- Type
- string
value() → {module:kdljs~Value}
Consume a value
- Overrides:
- Source:
Returns:
- Type
- module:kdljs~Value