Package edu.umd.cs.findbugs.util
Class RegexStringMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.util.RegexStringMatcher
-
- All Implemented Interfaces:
StringMatcher
public class RegexStringMatcher extends java.lang.Object implements StringMatcher
StringMatcher that matches based on a regular expression.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description RegexStringMatcher(java.lang.String patStr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String s)Return whether or not the given String matches.java.lang.StringtoString()
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String s)
Description copied from interface:StringMatcherReturn whether or not the given String matches.- Specified by:
matchesin interfaceStringMatcher- Parameters:
s- a String- Returns:
- true if the String matches, false if it does not match
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-