|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILexicon
Method Summary | |
---|---|
java.util.Iterator<java.lang.String> |
iterator()
Return an iterator over all words stored in the lexicon. |
void |
load(java.util.ArrayList<java.lang.String> list)
Clear a lexicon and store all values read from the list for subsequent querying. |
void |
load(java.util.Scanner s)
Clear a lexicon and store all values read from the scanner for subsequent querying. |
int |
size()
Returns number of words stored in the lexicon (as from last call to load, for example). |
LexStatus |
wordStatus(java.lang.String s)
Similar to wordStatus that takes a
StringBuilder parameter, but works with a String. |
LexStatus |
wordStatus(java.lang.StringBuilder s)
Returns value specifying whether is is in the lexicon: WORD, is the prefix of a word in the lexicon: PREFIX, or is not a prefix and not a word: NOT_WORD. |
Method Detail |
---|
void load(java.util.Scanner s)
s
- is the source of words for the lexiconvoid load(java.util.ArrayList<java.lang.String> list)
list
- is the source of words for the lexiconLexStatus wordStatus(java.lang.StringBuilder s)
s
- represents the word/sequence queried
LexStatus wordStatus(java.lang.String s)
wordStatus
that takes a
StringBuilder parameter, but works with a String.
s
- is the string queried
java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
int size()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |