com.swabunga.spell.event
public class Word extends Object
Constructor Summary | |
---|---|
Word(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()
Evaluate the end of word position. |
int | getStart()
Evaluate the start of word position. |
String | getText()
Supply the text string representing the word |
int | length()
Evaluate the length of the word. |
void | setStart(int s)
Set the start index of the word.
|
void | setText(String s)
Set the text to a new string value.
|
String | toString()
Supply the text representing the word. |
Parameters: text the String representing the word. start the start index of the word.
Parameters: w the word object to clone.
Parameters: w the Word to copy.
Returns: the end index of the word.
Returns: the start index.
Returns: the String representing the word.
Returns: the length of the word.
Parameters: s the start index.
Parameters: s the new text
Returns: the text representing the word.