|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.Token
antlr.CommonToken
antlr.TokenWithIndex
This token knows what index 0..n-1 it is from beginning of stream. Designed to work with TokenStreamRewriteEngine.java
Field Summary | |
(package private) int |
index
Index into token array indicating position in input stream |
Fields inherited from class antlr.CommonToken |
col, line, text |
Fields inherited from class antlr.Token |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type |
Constructor Summary | |
TokenWithIndex()
|
|
TokenWithIndex(int i,
java.lang.String t)
|
Method Summary | |
int |
getIndex()
|
void |
setIndex(int i)
|
java.lang.String |
toString()
|
Methods inherited from class antlr.CommonToken |
getColumn, getLine, getText, setColumn, setLine, setText |
Methods inherited from class antlr.Token |
getFilename, getType, setFilename, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int index
Constructor Detail |
public TokenWithIndex()
public TokenWithIndex(int i, java.lang.String t)
Method Detail |
public void setIndex(int i)
public int getIndex()
public java.lang.String toString()
toString
in class CommonToken
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |