Package org.meeuw.json.grep.matching
Class PathMatcherOrChain
- java.lang.Object
-
- org.meeuw.json.grep.matching.PathMatcherOrChain
-
- All Implemented Interfaces:
PathMatcher
public class PathMatcherOrChain extends Object implements PathMatcher
- Author:
- Michiel Meeuwissen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.meeuw.json.grep.matching.PathMatcher
PathMatcher.MatchResult
-
-
Constructor Summary
Constructors Constructor Description PathMatcherOrChain(PathMatcher... matchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathMatcher[]getMatchers()PathMatcher.MatchResultmatches(ParseEvent event)Predicate<Path>needsKeyCollection()Predicate<Path>needsObjectCollection()StringtoString()
-
-
-
Constructor Detail
-
PathMatcherOrChain
public PathMatcherOrChain(PathMatcher... matchers)
-
-
Method Detail
-
matches
public PathMatcher.MatchResult matches(ParseEvent event)
- Specified by:
matchesin interfacePathMatcher- Parameters:
event- The event to match
-
needsKeyCollection
public Predicate<Path> needsKeyCollection()
- Specified by:
needsKeyCollectionin interfacePathMatcher
-
needsObjectCollection
public Predicate<Path> needsObjectCollection()
- Specified by:
needsObjectCollectionin interfacePathMatcher
-
getMatchers
public PathMatcher[] getMatchers()
-
-