public class RegexAntiPatternFilter extends RegexRuleFilter
Constructor and Description |
---|
RegexAntiPatternFilter() |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedSentence sentenceObj,
Matcher patternMatcher)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
@Nullable public RuleMatch acceptRuleMatch(RuleMatch match, Map<String,String> arguments, AnalyzedSentence sentenceObj, Matcher patternMatcher)
RegexRuleFilter
null
if the rule match is filtered out.acceptRuleMatch
in class RegexRuleFilter
arguments
- the resolved argument from the args
attribute in the XML.null
if this rule match should be removed, or any other RuleMatch (e.g. the one from
the arguments) that properly describes the detected error