|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.tools.tokenizer.output.Token
This represents a token with its type and surface image.
Constructor Summary | |
Token()
This creates a new instance of Token . |
|
Token(int aStartIndex,
int anEndIndex,
java.lang.String aType,
java.lang.String anImage)
This creates a new instance of Token with the given
start index, end index, type and surface image of the token. |
Method Summary | |
int |
getEndIndex()
This returns the end index of the token. |
java.lang.String |
getImage()
This returns the surface image of the token. |
int |
getStartIndex()
This returns the start index of the token. |
java.lang.String |
getType()
This returns the type of the token. |
void |
setEndIndex(int anEndIndex)
This sets the end index of the token to anEndIndex . |
void |
setImage(java.lang.String anImage)
This sets the surface image of the token to anImage . |
void |
setStartIndex(int aStartIndex)
This sets the start index of the token to aStartIndex . |
void |
setType(java.lang.String aType)
This sets the type of the token to aType . |
java.lang.String |
toString()
This returns a string representation of the token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Token()
Token
.
public Token(int aStartIndex, int anEndIndex, java.lang.String aType, java.lang.String anImage)
Token
with the given
start index, end index, type and surface image of the token.
aStartIndex
- a int
with the start indexanEndIndex
- a int
with the end indexaType
- a String
with the typeanImage
- a String
with the surface imageMethod Detail |
public int getStartIndex()
int
public void setStartIndex(int aStartIndex)
aStartIndex
.
aStartIndex
- an int
public int getEndIndex()
int
public void setEndIndex(int anEndIndex)
anEndIndex
.
anEndIndex
- an int
public java.lang.String getType()
String
public void setType(java.lang.String aType)
aType
.
aType
- a String
public java.lang.String getImage()
String
public void setImage(java.lang.String anImage)
anImage
.
anImage
- a String
public java.lang.String toString()
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |