net.sourceforge.pmd.rules.regex
public class RegexHelper extends Object
Method Summary | |
---|---|
static List<Pattern> | compilePatternsFromList(List<String> list)
Compiles a list of regex into a list of patterns. |
static boolean | isMatch(Pattern pattern, String subject)
Simple commodity method (also designed to increase readability of source code,
and to decrease import in the calling class).
|
Parameters: list the regex list
Returns: the pattern list
Parameters: pattern a compiled regex pattern subject a String to match
Returns: {@code true} if there is a match; {@code false} otherwise