net.sourceforge.cobertura.util
Class RegexUtil

java.lang.Object
  extended bynet.sourceforge.cobertura.util.RegexUtil

public abstract class RegexUtil
extends java.lang.Object

Abstract, not to be instantiated utility class for Regex functions.

Author:
John Lewis (logic copied from MethodInstrumenter)

Field Summary
private static org.apache.log4j.Logger logger
           
private static org.apache.oro.text.regex.Perl5Matcher pm
           
 
Constructor Summary
RegexUtil()
           
 
Method Summary
static void addRegex(java.util.Collection list, java.lang.String regex)
           
static boolean matches(java.util.Collection regexs, java.lang.String str)
           Check to see if one of the regular expressions in a collection match an input string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

pm

private static final org.apache.oro.text.regex.Perl5Matcher pm
Constructor Detail

RegexUtil

public RegexUtil()
Method Detail

matches

public static boolean matches(java.util.Collection regexs,
                              java.lang.String str)

Check to see if one of the regular expressions in a collection match an input string.

Parameters:
regexs - The collection of regular expressions.
str - The string to check for a match.
Returns:
True if a match is found.

addRegex

public static void addRegex(java.util.Collection list,
                            java.lang.String regex)