Package org.meeuw.json.grep.matching
Class ArrayIndexMatch
- java.lang.Object
-
- org.meeuw.json.grep.matching.AbstractKeyPattern
-
- org.meeuw.json.grep.matching.ArrayEntryMatch
-
- org.meeuw.json.grep.matching.ArrayIndexMatch
-
- All Implemented Interfaces:
KeyPattern,KeysPattern
public class ArrayIndexMatch extends ArrayEntryMatch
a precise key pattern matches only if the key exactly equals to a certain value.
-
-
Constructor Summary
Constructors Constructor Description ArrayIndexMatch(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(PathEntry key)StringtoString()-
Methods inherited from class org.meeuw.json.grep.matching.AbstractKeyPattern
matchCounts
-
-
-
-
Method Detail
-
matches
public boolean matches(PathEntry key)
- Specified by:
matchesin interfaceKeyPattern- Overrides:
matchesin classArrayEntryMatch
-
toString
public String toString()
- Overrides:
toStringin classArrayEntryMatch
-
-