cmu.tawc.data
Class Word.ComboWord
java.lang.Object
cmu.tawc.data.Word.WordStub
cmu.tawc.data.Word.ComboWord
- All Implemented Interfaces:
- Word
- Direct Known Subclasses:
- Word.DashWord
- Enclosing interface:
- Word
public static class Word.ComboWord
- extends Word.WordStub
Comes in as an array of words.
Field Summary |
protected java.lang.String[] |
comboWords
|
Constructor Summary |
Word.ComboWord(java.lang.String descriptiveWord,
java.lang.String[] comboWords,
java.util.Vector<Category> categories)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
comboWords
protected java.lang.String[] comboWords
Word.ComboWord
public Word.ComboWord(java.lang.String descriptiveWord,
java.lang.String[] comboWords,
java.util.Vector<Category> categories)
getWordPublicName
public java.lang.String getWordPublicName()
matchesWord
public boolean matchesWord(java.lang.String word)
- Returns:
- number of times the Word matches the passed in sentence
matchesWord
public boolean matchesWord(java.lang.String[] words,
int index)
- Description copied from interface:
Word
- Does this match a word in a sentence? Can match combo words, starting in one place.
- Returns: