Class AffixedWord
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.AffixedWord
-
public final class AffixedWord extends java.lang.Object
An object representing the analysis result of a simple (non-compound) word
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AffixedWord.Affix
An object representing a prefix or a suffix applied to a word stem
-
Field Summary
Fields Modifier and Type Field Description private DictEntry
entry
private java.util.List<AffixedWord.Affix>
prefixes
private java.util.List<AffixedWord.Affix>
suffixes
private java.lang.String
word
-
Constructor Summary
Constructors Constructor Description AffixedWord(java.lang.String word, DictEntry entry, java.util.List<AffixedWord.Affix> prefixes, java.util.List<AffixedWord.Affix> suffixes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
DictEntry
getDictEntry()
java.util.List<AffixedWord.Affix>
getPrefixes()
java.util.List<AffixedWord.Affix>
getSuffixes()
java.lang.String
getWord()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
word
private final java.lang.String word
-
entry
private final DictEntry entry
-
prefixes
private final java.util.List<AffixedWord.Affix> prefixes
-
suffixes
private final java.util.List<AffixedWord.Affix> suffixes
-
-
Constructor Detail
-
AffixedWord
AffixedWord(java.lang.String word, DictEntry entry, java.util.List<AffixedWord.Affix> prefixes, java.util.List<AffixedWord.Affix> suffixes)
-
-
Method Detail
-
getWord
public java.lang.String getWord()
- Returns:
- the word being analyzed
-
getDictEntry
public DictEntry getDictEntry()
- Returns:
- the dictionary entry for the stem in this analysis
-
getPrefixes
public java.util.List<AffixedWord.Affix> getPrefixes()
- Returns:
- the list of prefixes applied to the stem, at most two, outermost first
-
getSuffixes
public java.util.List<AffixedWord.Affix> getSuffixes()
- Returns:
- the list of suffixes applied to the stem, at most two, outermost first
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-