antlr
Class TokenWithIndex
- Cloneable
public class TokenWithIndex
This token knows what index 0..n-1 it is from beginning of stream.
Designed to work with TokenStreamRewriteEngine.java
(package private) int | index - Index into token array indicating position in input stream
|
getColumn , getFilename , getLine , getText , getType , setColumn , setFilename , setLine , setText , setType , toString |
index
(package private) int index
Index into token array indicating position in input stream
TokenWithIndex
public TokenWithIndex()
TokenWithIndex
public TokenWithIndex(int i,
String t)
getIndex
public int getIndex()
setIndex
public void setIndex(int i)
toString
public String toString()
- toString in interface CommonToken