|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.tools.tokenizer.output.TextUnit
This represents a text unit with its tokens.
Constructor Summary | |
TextUnit()
This creates a new instance of TextUnit . |
|
TextUnit(java.util.List someTokens)
This creates a new instance of TextUnit that
contains the given tokens. |
Method Summary | |
int |
getEndIndex()
This returns the end index of the text unit. |
int |
getStartIndex()
This returns the start index of the text unit. |
java.util.List |
getTokens()
This returns the list with the tokens of the text unit. |
void |
setEndIndex(int anEndIndex)
This sets the end index of the text unit to anEndIndex . |
void |
setStartIndex(int aStartIndex)
This sets the start index of the text unit to aStartIndex . |
void |
setTokens(java.util.List someTokens)
This sets the tokens of the text unit to someTokens . |
java.lang.String |
toString()
This returns a string representation of the text unit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextUnit()
TextUnit
.
public TextUnit(java.util.List someTokens)
TextUnit
that
contains the given tokens.
someTokens
- a List
with Token
sMethod 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.util.List getTokens()
List
public void setTokens(java.util.List someTokens)
someTokens
. As a side effect, it adjusts the start
index and end index of the text unit to the start index of the
first token and the end index of the last token.
someTokens
- a List
public java.lang.String toString()
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |