(.js)
laraImport("weaver.Query");
(.lara)
import weaver.Query;
Classes:
Global Functions:
Query
Class for selection of join points. Provides an API similar to the keyword 'select'.
Search functions of this class return weaver.Selector objects, please refer to that class for more details regarding available functions and search options.
childrenFrom($baseJp, type, [filter = {}])
Search the direct children of the given $baseJp.
root()
Returns the root node of the current AST.
scopeFrom($baseJp, type, [filter = {}])
If $baseJp has the concept of scope (e.g. if, loop), search the direct children of that scope.
search(type, [filter = {}], [traversal = TraversalType.PREORDER])
The same as Query.searchFrom(), but uses the root node as $baseJp.
searchFrom($baseJp, type, [filter = {}], [traversal = TraversalType.PREORDER])
In-depth search of nodes of the given type, starting from a base node (exclusive).
searchFromInclusive($baseJp, type, [filter = {}], [traversal = TraversalType.PREORDER])
The same as Query.searchFrom(), but $baseJp is included in the search.
search(type, [filter = {}], [traversal = TraversalType.PREORDER])
The same as Query.search(), but available as a global function.
searchFrom($baseJp, type, [filter = {}], [traversal = TraversalType.PREORDER])
The same as Query.searchFrom(), but available as a global function.
searchFromInclusive($baseJp, type, [filter = {}], [traversal = TraversalType.PREORDER])
The same as Query.searchFromInclusive(), but available as a global function.