|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectYaspToken
Class representing a token.
A token can be
| Field Summary | |
static char |
END_OF_POEM
|
static char |
STANZA_SEPARATOR
|
static char |
UNDEF
|
static char |
VERSE_SEPARATOR
|
static char |
WORD
|
| Constructor Summary | |
YaspToken()
Create an instance of YaspToken. |
|
YaspToken(char type)
Create an instance of YaspToken. |
|
YaspToken(java.lang.String word)
Create an instance of YaspToken. |
|
| Method Summary | |
char |
getType()
Return the type of this YaspToken. |
java.lang.String |
getWord()
Return the value of this YaspToken. |
boolean |
isWord()
Return whether this YaspToken is a word. |
void |
setType(char type)
Set the type of this YaspToken. |
void |
setWord(java.lang.String word)
Set the value of this YaspToken. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final char WORD
public static final char VERSE_SEPARATOR
public static final char STANZA_SEPARATOR
public static final char END_OF_POEM
public static final char UNDEF
| Constructor Detail |
public YaspToken()
public YaspToken(char type)
public YaspToken(java.lang.String word)
| Method Detail |
public boolean isWord()
public char getType()
public void setType(char type)
type - valid chars are w,n,s,e,?public java.lang.String getWord()
public void setWord(java.lang.String word)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||