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.SeeFilterA 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 booleanfilter(String obj)Deprecated.StringgetEndsWith()Deprecated.StringgetRegex()Deprecated.protected voidoptimize()Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
RegexStringFilter
public RegexStringFilter(String regex)
Deprecated.
-
-