|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.swabunga.spell.event.Word
Constructor Summary | |
Word(java.lang.String text,
int start)
Creates a new Word object. |
|
Word(Word w)
Creates a new Word object by cloning an existing Word object. |
Method Summary | |
void |
copy(Word w)
Sets the value of this Word to be a copy of another. |
int |
getEnd()
|
int |
getStart()
|
java.lang.String |
getText()
|
int |
length()
|
void |
setStart(int s)
Set the start index of the word. |
void |
setText(java.lang.String s)
Set the text to a new string value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Word(java.lang.String text, int start)
text
- the String representing the word.start
- the start index of the word.public Word(Word w)
w
- the word object to clone.Method Detail |
public int getEnd()
public void setStart(int s)
s
- the start index.public int getStart()
public void setText(java.lang.String s)
s
- the new textpublic java.lang.String getText()
public void copy(Word w)
w
- the Word to copy.public int length()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |