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[]
data
private Dictionary
dictionary
-
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) boolean
fullyMatches(java.util.List<IntsRef> words)
private boolean
match(java.util.List<IntsRef> words, int patternIndex, int wordIndex, boolean fully)
(package private) boolean
mayMatch(java.util.List<IntsRef> words)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-