Package edu.umd.cs.findbugs.util
Class RegexStringMatcher
java.lang.Object
edu.umd.cs.findbugs.util.RegexStringMatcher
- All Implemented Interfaces:
StringMatcher
StringMatcher that matches based on a regular expression.
- Author:
- David Hovemeyer
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RegexStringMatcher
Constructor.- Parameters:
patStr
- a String defining the regular expression pattern to match
-
-
Method Details
-
matches
Description copied from interface:StringMatcher
Return whether or not the given String matches.- Specified by:
matches
in interfaceStringMatcher
- Parameters:
s
- a String- Returns:
- true if the String matches, false if it does not match
-
toString
-