Package org.meeuw.json.grep.matching
Class ObjectHasKeyMatcher
- java.lang.Object
-
- org.meeuw.json.grep.matching.ObjectHasKeyMatcher
-
- All Implemented Interfaces:
PathMatcher
public class ObjectHasKeyMatcher extends Object
- Since:
- ...
- 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 ObjectHasKeyMatcher(String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathMatcher.MatchResultmatches(ParseEvent event)protected PathMatcher.MatchResultmatchesObject(ParseEvent event)Predicate<Path>needsKeyCollection()Predicate<Path>needsObjectCollection()StringtoString()
-
-
-
Constructor Detail
-
ObjectHasKeyMatcher
public ObjectHasKeyMatcher(String key)
-
-
Method Detail
-
matchesObject
protected PathMatcher.MatchResult matchesObject(ParseEvent event)
-
matches
public final PathMatcher.MatchResult matches(ParseEvent event)
- Specified by:
matchesin interfacePathMatcher- Parameters:
event- The event to match
-
-