(.js)
laraImport("weaver.Selector");
(.lara)
import weaver.Selector;
new Selector([$baseJp = undefined], [inclusive = false])Selects join points according to their type and filter rules.
Symbol.iteratorGenerator function, allows Selector to be used in for..of statements.
Returns join points iteratively, as if .get() was called.
chain()children(type, [filter = {}], name)Search in the children of the previously selected nodes.
first()get()getFirst()Same as .first()
scope(name, [filter = {}])If previously select nodes have the concept of scope (e.g. if, loop), search the direct children of that scope.
search(type, [filter = {}], [traversal = TraversalType.PREORDER], name)