public static class RobustTokenizer.WordToken extends 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 String |
mWord
The lexem
|
Constructor and Description |
---|
WordToken(String w,
int s,
int e) |
WordToken(String w,
int s,
int e,
int nl) |
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
int |
getNewLineCount() |
int |
getStart() |
String |
getWord() |
void |
setEnd(int i) |
void |
setNewLineCount(int i) |
void |
setStart(int i) |
void |
setWord(String w) |
String |
toString() |
protected int mStart
protected int mEnd
protected int mNewLineCount
protected String mWord
public WordToken(String w, int s, int e)
public WordToken(String w, int s, int e, int nl)
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 String getWord()
public void setWord(String w)