Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)
|
TokenWithIndex
antlr
Class TokenWithIndex
java.lang.Object
antlr.Token
antlr.CommonToken
antlr.TokenWithIndex
- All Implemented Interfaces:
- java.lang.Cloneable
- public class TokenWithIndex
- extends CommonToken
This token knows what index 0..n-1 it is from beginning of stream.
Designed to work with TokenStreamRewriteEngine.java
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TokenWithIndex
public TokenWithIndex()
TokenWithIndex
public TokenWithIndex(int i,
java.lang.String t)
setIndex
public void setIndex(int i)
getIndex
public int getIndex()
toString
public java.lang.String toString()
- Overrides:
toString in class CommonToken
|