|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.neu.ccs.demeter.Word
A terminal class for parsing a word. Put Word in a class dictionary to represent a word (any sequence of non-whitespace characters) in an input sentence.
| Constructor Summary | |
Word()
Construct an empty word. |
|
Word(Object obj)
Construct a Word from an Object by converting it to a String with Object.toString(). |
|
Word(String s)
Construct a Word from a String. |
|
| Method Summary | |
boolean |
equals(Object word)
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Word()
public Word(String s)
public Word(Object obj)
Object.toString(). Note that a Word created outside of
the parser is not constrained to be a single word.
| Method Detail |
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object word)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||