public class TokenWithIndex extends CommonToken
Modifier and Type | Field and Description |
---|---|
(package private) int |
index
Index into token array indicating position in input stream
|
col, line, text
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
Constructor and Description |
---|
TokenWithIndex() |
TokenWithIndex(int i,
String t) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
void |
setIndex(int i) |
String |
toString() |
getColumn, getLine, getText, setColumn, setLine, setText
getFilename, getType, setFilename, setType
public TokenWithIndex()
public TokenWithIndex(int i, String t)
public void setIndex(int i)
public int getIndex()
public String toString()
toString
in class CommonToken