Package net.sourceforge.pmd.util.filter
Class RegexStringFilter
- java.lang.Object
-
- net.sourceforge.pmd.util.filter.RegexStringFilter
-
@Deprecated public class RegexStringFilter extends Object implements Filter<String>
Deprecated.SeeFilter
A filter which uses a regular expression to match Strings. Invalid regular expressions will match nothing.Because regular expression matching is slow, and a common usage is to match some sort of relative file path, the regular expression is checked to see if it can be evaluated using much faster calls to
String.endsWith(String)
.
-
-
Constructor Summary
Constructors Constructor Description RegexStringFilter(String regex)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
filter(String obj)
Deprecated.String
getEndsWith()
Deprecated.String
getRegex()
Deprecated.protected void
optimize()
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
RegexStringFilter
public RegexStringFilter(String regex)
Deprecated.
-
-