public class AntPatternTreeMatcher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AntPatternTreeMatcher.ScanOption |
static interface |
AntPatternTreeMatcher.SearchCallback<T extends PathNode> |
| Constructor and Description |
|---|
AntPatternTreeMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends PathNode<T>> |
scan(T node,
java.util.Collection<java.lang.String> mixedRules,
AntPatternTreeMatcher.ScanOption... options)
Searches for necessary elements within the tree node using supplied collection of search rules.
|
static <T extends PathNode<T>> |
scan(T node,
java.util.Collection<java.lang.String> includeRules,
java.util.Collection<java.lang.String> excludeRules,
AntPatternTreeMatcher.ScanOption... options)
Searches for necessary elements within the tree node using supplied collections of include and exclude rules.
Exclude rules are applied first. |
static <T extends PathNode<T>> |
scanWithCallback(T node,
java.util.Collection<java.lang.String> mixedRules,
AntPatternTreeMatcher.SearchCallback<T> callback,
AntPatternTreeMatcher.ScanOption... options)
Searches for necessary elements within the tree node using supplied collection of search rules.
|
public static <T extends PathNode<T>> java.util.Collection<T> scan(@NotNull T node, @NotNull java.util.Collection<java.lang.String> includeRules, @NotNull java.util.Collection<java.lang.String> excludeRules, AntPatternTreeMatcher.ScanOption... options)
T - an implementation of PathNodenode - root nodeincludeRules - set of include rules (without leading +:)excludeRules - set of exclude rules (without leading -:)options - set of options from AntPatternTreeMatcher.ScanOptionpublic static <T extends PathNode<T>> java.util.Collection<T> scan(@NotNull T node, @NotNull java.util.Collection<java.lang.String> mixedRules, AntPatternTreeMatcher.ScanOption... options)
T - an implementation of PathNodenode - root nodemixedRules - set of rulesoptions - set of options from AntPatternTreeMatcher.ScanOptionpublic static <T extends PathNode<T>> java.util.Collection<T> scanWithCallback(@NotNull T node, @NotNull java.util.Collection<java.lang.String> mixedRules, @Nullable AntPatternTreeMatcher.SearchCallback<T> callback, AntPatternTreeMatcher.ScanOption... options)
T - an implementation of PathNodenode - root nodemixedRules - set of rulescallback - callback to call, when matching node is found.options - set of options from AntPatternTreeMatcher.ScanOption