You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Filter defines a predicate of the form of a `matches` method that
34
34
returns `true` if an element has to be selected in the filtering operation.
35
-
A Filter is given as parameter to `CtElement#getElement(Filter)` ()or `CtQueryable#filterChildren(Filter)`) which implements a depth-first search algorithm. During AST traversal, the elements satisfying the matching predicate are selected by the filter.
35
+
A Filter is given as parameter to `CtElement#getElement(Filter)` (or `CtQueryable#filterChildren(Filter)`) which implements a depth-first search algorithm. During AST traversal, the elements satisfying the matching predicate are selected by the filter.
36
36
37
37
Here are code examples about the usage of filters. The first example returns all AST nodes of type `CtAssignment`.
0 commit comments