Namespace: queryEngine

kdljs.queryEngine

Methods

(static) query(doc, queryString) → {any}

Parameters:
Name Type Description
doc module:kdljs~Document

Input KDL document

queryString module:kdljs~QueryString

Query for selecting and/or transforming results

Source:
Returns:
Type
any

Type Definitions

Accessor

Type:
  • Object
Properties:
Name Type Attributes Description
type string
parameter string | number <optional>
Source:

Mapping

Type:
Source:

Matcher

Type:
  • Object
Properties:
Name Type Attributes Description
accessor module:kdljs.queryEngine.Accessor <optional>
operator string <optional>
value module:kdljs~Value <optional>

comparison value

tag module:kdljs~string <optional>

comparison tag

Source:

NodeFilter

Type:
  • Object
Properties:
Name Type Attributes Description
matchers Array.<module:kdljs.queryEngine.Matcher>
operator string <optional>
Source:

Query

Type:
  • Object
Properties:
Name Type Attributes Description
alternatives Array.<module:kdljs.queryEngine.Selector>

Alternative selectors

mapping module:kdljs.queryEngine.Mapping <optional>

Mapping tuple

Source:

Selector

Type:
Source: