public abstract class AdvancedWordRepeatRule extends Rule
| Constructor and Description |
|---|
AdvancedWordRepeatRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Pattern |
getExcludedNonWordsPattern() |
protected abstract Pattern |
getExcludedPos() |
protected abstract Set<String> |
getExcludedWordsPattern() |
protected abstract String |
getMessage() |
protected abstract String |
getShortMessage() |
RuleMatch[] |
match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
void |
reset()
If a rule keeps its state over more than the check of one sentence, this
must be implemented so the internal state is reset.
|
addExamplePair, getCategory, getCorrectExamples, getDescription, getId, getIncorrectExamples, getLocQualityIssueType, getUrl, isDefaultOff, isDictionaryBasedSpellingRule, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic AdvancedWordRepeatRule(ResourceBundle messages)
protected abstract Pattern getExcludedNonWordsPattern()
protected abstract Pattern getExcludedPos()
protected abstract String getMessage()
protected abstract String getShortMessage()
public final RuleMatch[] match(AnalyzedSentence sentence)
Rule