|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.util.BasicMatcher
This StringMatcher tests whether strings match a given regular expression. Supported wildcards are
| Constructor Summary | |
BasicMatcher(String regularExpression)
Creates a new BasicMatcher without extra wildcard matching characters. |
|
BasicMatcher(String regularExpression,
char[] wildcardCharacters,
char[] extendedWildcardCharacters,
char[] specialWildcardCharacters)
Creates a new BasicMatcher. |
|
| Method Summary | |
static void |
main(String[] args)
A main method for testing string matching. |
boolean |
matches(String string)
Checks whether the given string matches. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicMatcher(String regularExpression)
regularExpression - the regular expression against which strings
will be matched.
public BasicMatcher(String regularExpression,
char[] wildcardCharacters,
char[] extendedWildcardCharacters,
char[] specialWildcardCharacters)
regularExpression - the regular expression against which strings
will be matched.wildcardCharacters - an optional extra list of wildcard matching
characters.| Method Detail |
public boolean matches(String string)
StringMatcher
matches in interface StringMatcherstring - the string to match.
public static void main(String[] args)
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||