Class CompoundRule
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.CompoundRule
-
class CompoundRule extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private char[]dataprivate Dictionarydictionary
-
Constructor Summary
Constructors Constructor Description CompoundRule(java.lang.String rule, Dictionary dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanfullyMatches(java.util.List<IntsRef> words)private booleanmatch(java.util.List<IntsRef> words, int patternIndex, int wordIndex, boolean fully)(package private) booleanmayMatch(java.util.List<IntsRef> words)java.lang.StringtoString()
-
-
-
Field Detail
-
data
private final char[] data
-
dictionary
private final Dictionary dictionary
-
-
Constructor Detail
-
CompoundRule
CompoundRule(java.lang.String rule, Dictionary dictionary)
-
-
Method Detail
-
mayMatch
boolean mayMatch(java.util.List<IntsRef> words)
-
fullyMatches
boolean fullyMatches(java.util.List<IntsRef> words)
-
match
private boolean match(java.util.List<IntsRef> words, int patternIndex, int wordIndex, boolean fully)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-