instance method SpahQL.Token.PathComponent#evaluate
SpahQL.Token.PathComponent#evaluate(rootData, scopeData, path) → Array
-
pathComponent
(Object
) – A path component object as generated by the query parser -
rootData
(Object
) – The entire root-level data structure being queried -
scopeData
(Object
) – The data for the scope at which this query is being executed. -
path
(String
) – The string path for the root of the scopeData argument.
Evaluates this path pomponent and returns a set of query results. Used primarily in Token.SelectionQuery#evaluate to map each path component to a set of results, allowing the query process to be effectively forked or halted.