public class RegexStringFilter extends Object implements Filter<String>
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)
.
Modifier and Type | Field and Description |
---|---|
protected String |
endsWith |
protected Pattern |
pattern |
protected String |
regex |
Constructor and Description |
---|
RegexStringFilter(String regex) |
Copyright © 2002–2017 PMD. All rights reserved.