Package sk.antons.json.match.wild
Class WildMatcher
- java.lang.Object
-
- sk.antons.json.match.wild.WildMatcher
-
public class WildMatcher extends Object
Match string with pattern. Pattern can use wild cards '*' and '?'. Character '?' stands for any character (exactly one). Character '*' stands for sequence of characters (possibly empty sequence).- Author:
- antons
-
-
Constructor Summary
Constructors Constructor Description WildMatcher(String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WildMatcherinstance(String pattern)booleanmatch(String text)booleantryMatch(String text, int element, int offset)
-
-
-
Constructor Detail
-
WildMatcher
public WildMatcher(String pattern)
-
-
Method Detail
-
instance
public static WildMatcher instance(String pattern)
-
match
public boolean match(String text)
-
tryMatch
public boolean tryMatch(String text, int element, int offset)
-
-