public abstract class RegexRuleFilter extends Object
filter
element.Constructor and Description |
---|
RegexRuleFilter() |
Modifier and Type | Method and Description |
---|---|
abstract 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 abstract RuleMatch acceptRuleMatch(RuleMatch match, Map<String,String> arguments, AnalyzedSentence sentenceObj, Matcher patternMatcher)
null
if the rule match is filtered out.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