Class HunspellWord
java.lang.Object
org.apache.lucene.analysis.hunspell.HunspellWord
A dictionary (.dic) entry with its associated flags.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HunspellWord with no associated flagsHunspellWord(char[] flags) Constructs a new HunspellWord with the given flags -
Method Summary
-
Constructor Details
-
HunspellWord
public HunspellWord()Creates a new HunspellWord with no associated flags -
HunspellWord
public HunspellWord(char[] flags) Constructs a new HunspellWord with the given flags- Parameters:
flags- Flags to associate with the word
-
-
Method Details
-
hasFlag
public boolean hasFlag(char flag) Checks whether the word has the given flag associated with it- Parameters:
flag- Flag to check whether it is associated with the word- Returns:
trueif the flag is associated,falseotherwise
-
getFlags
public char[] getFlags()Returns the flags associated with the word- Returns:
- Flags associated with the word
-