Package org.languagetool.rules.patterns
Class PatternRuleMatcher
- java.lang.Object
-
- org.languagetool.rules.patterns.AbstractPatternRulePerformer
-
- org.languagetool.rules.patterns.PatternRuleMatcher
-
- All Implemented Interfaces:
RuleMatcher
public final class PatternRuleMatcher extends AbstractPatternRulePerformer implements RuleMatcher
Matches a pattern rule against text.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MISTAKE
-
Fields inherited from class org.languagetool.rules.patterns.AbstractPatternRulePerformer
prevMatched, rule, unifiedTokens, unifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,Integer>
getCurrentRules()
RuleMatch[]
match(AnalyzedSentence sentence)
-
Methods inherited from class org.languagetool.rules.patterns.AbstractPatternRulePerformer
createElementMatchers, getMinOccurrenceCorrection, skipMaxTokens, testAllReadings, testUnificationAndGroups
-
-
-
-
Field Detail
-
MISTAKE
public static final String MISTAKE
- See Also:
- Constant Field Values
-
-
Method Detail
-
match
public RuleMatch[] match(AnalyzedSentence sentence) throws IOException
- Specified by:
match
in interfaceRuleMatcher
- Throws:
IOException
-
-