Static
childrenSearch the direct children of the given $baseJp.
starting join point for the search.
Optional
type: Ttype of the join point to search.
Optional
filter: Filter_WrapperVariant<T>filter rules for the search.
The results of the search.
Search the direct children of the given $baseJp.
starting join point for the search.
Optional
type: stringtype of the join point to search.
Optional
filter: Filter_StringVariantfilter rules for the search.
The results of the search.
Static
rootReturns the root node of the current AST.
The root node
Static
scopeIf $baseJp has the concept of scope (e.g. if, loop), search the direct children of that scope.
starting join point for the search.
Optional
type: Ttype of the join point to search.
Optional
filter: Filter_WrapperVariant<T>filter rules for the search.
The results of the search.
If $baseJp has the concept of scope (e.g. if, loop), search the direct children of that scope.
starting join point for the search.
Optional
type: stringtype of the join point to search.
Optional
filter: Filter_StringVariantfilter rules for the search.
The results of the search.
Static
searchThe same as Query.searchFrom(), but uses the root node as $baseJp.
type of the join point to search.
Optional
filter: Filter_WrapperVariant<T>filter rules for the search. If the value is an object, each field of the object represents a rule that will be applied over the attribute that has the same name as the name of the field. If the value is not an object (e.g., String, Regex, Lambda), it is interpreted as a single rule that will be applied over the default attribute of the given type. E.g., if type is 'function', the value is a String 'foo' and the default attribute of function is 'name', this is equivalent as passing as value the object {'name':'foo'}. Rules can be a String (i.e., will match the value of the attribute against a string), a Regex (will match the value of the attribute against a regex) or a Function (i.e., function receives the value of the attribute and returns true if there is a match, or false otherwise).
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
The same as Query.searchFrom(), but uses the root node as $baseJp.
type of the join point to search.
Optional
filter: Filter_StringVariantfilter rules for the search. If the value is an object, each field of the object represents a rule that will be applied over the attribute that has the same name as the name of the field. If the value is not an object (e.g., String, Regex, Lambda), it is interpreted as a single rule that will be applied over the default attribute of the given type. E.g., if type is 'function', the value is a String 'foo' and the default attribute of function is 'name', this is equivalent as passing as value the object {'name':'foo'}. Rules can be a String (i.e., will match the value of the attribute against a string), a Regex (will match the value of the attribute against a regex) or a Function (i.e., function receives the value of the attribute and returns true if there is a match, or false otherwise).
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
Static
searchIn-depth search of nodes of the given type, starting from a base node (exclusive).
starting join point for the search.
Optional
type: Ttype of the join point to search.
Optional
filter: Filter_WrapperVariant<T>filter rules for the search. If the value is an object, each field of the object represents a rule that will be applied over the attribute that has the same name as the name of the field. If the value is not an object (e.g., String, Regex, Lambda), it is interpreted as a single rule that will be applied over the default attribute of the given type. E.g., if type is 'function', the value is a String 'foo' and the default attribute of function is 'name', this is equivalent as passing as value the object {'name':'foo'}. Rules can be a String (i.e., will match the value of the attribute against a string), a Regex (will match the value of the attribute against a regex) or a Function (i.e., function receives the value of the attribute and returns true if there is a match, or false otherwise).
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
In-depth search of nodes of the given type, starting from a base node (exclusive).
starting join point for the search.
Optional
type: stringtype of the join point to search.
Optional
filter: Filter_StringVariantfilter rules for the search. If the value is an object, each field of the object represents a rule that will be applied over the attribute that has the same name as the name of the field. If the value is not an object (e.g., String, Regex, Lambda), it is interpreted as a single rule that will be applied over the default attribute of the given type. E.g., if type is 'function', the value is a String 'foo' and the default attribute of function is 'name', this is equivalent as passing as value the object {'name':'foo'}. Rules can be a String (i.e., will match the value of the attribute against a string), a Regex (will match the value of the attribute against a regex) or a Function (i.e., function receives the value of the attribute and returns true if there is a match, or false otherwise).
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
Static
searchThe same as Query.searchFrom(), but $baseJp is included in the search.
starting join point for the search.
Optional
type: Ttype of the join point to search.
Optional
filter: Filter_WrapperVariant<T>filter rules for the search.
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
The same as Query.searchFrom(), but $baseJp is included in the search.
starting join point for the search.
Optional
type: stringtype of the join point to search.
Optional
filter: Filter_StringVariantfilter rules for the search.
Optional
traversal: TraversalTypeAST traversal type, according to weaver.TraversalType
The results of the search.
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.