net.sourceforge.cobertura.util
Class RegexUtil
java.lang.Object
net.sourceforge.cobertura.util.RegexUtil
Abstract, not to be instantiated utility class for Regex functions.
- John Lewis (logic copied from MethodInstrumenter)
private static Logger | logger
|
private static Perl5Matcher | pm
|
static void | addRegex(Collection list, String regex)
|
static boolean | matches(Collection regexs, String str) -
Check to see if one of the regular expressions in a collection match
an input string.
|
logger
private static final Logger logger
pm
private static final Perl5Matcher pm
addRegex
public static void addRegex(Collection list,
String regex)
matches
public static boolean matches(Collection regexs,
String str)
Check to see if one of the regular expressions in a collection match
an input string.
regexs
- The collection of regular expressions.str
- The string to check for a match.
- True if a match is found.