public class StringMatcher
extends java.lang.Object
String
against a prefix pattern. The matching algorithm
will return true
if the tested string starts with the given pattern.
The pattern supports wildcards such as *
and ?
.Constructor and Description |
---|
StringMatcher(java.lang.String pattern,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
protected java.util.regex.Pattern |
getPattern() |
boolean |
match(java.lang.String text) |
protected java.lang.String |
translatePattern(java.lang.String pattern) |