public static class RobustTokenizer.WordToken
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
mEnd
End position
|
protected int |
mNewLineCount
Counts how many new lines appear between this token and the previous one in the stream
|
protected int |
mStart
Start position
|
protected java.lang.String |
mWord
The lexem
|
Constructor and Description |
---|
WordToken(java.lang.String w,
int s,
int e) |
WordToken(java.lang.String w,
int s,
int e,
int nl) |
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
int |
getNewLineCount() |
int |
getStart() |
java.lang.String |
getWord() |
void |
setEnd(int i) |
void |
setNewLineCount(int i) |
void |
setStart(int i) |
void |
setWord(java.lang.String w) |
java.lang.String |
toString() |
protected int mStart
protected int mEnd
protected int mNewLineCount
protected java.lang.String mWord
public WordToken(java.lang.String w, int s, int e)
public WordToken(java.lang.String w, int s, int e, int nl)
public java.lang.String toString()
toString
in class java.lang.Object
public int getStart()
public void setStart(int i)
public int getEnd()
public void setEnd(int i)
public int getNewLineCount()
public void setNewLineCount(int i)
public java.lang.String getWord()
public void setWord(java.lang.String w)