public class GrammarToken
extends org.antlr.runtime.CommonToken
| Modifier and Type | Field and Description |
|---|---|
Grammar |
g |
int |
originalTokenIndex |
| Constructor and Description |
|---|
GrammarToken(Grammar g,
org.antlr.runtime.Token oldToken) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCharPositionInLine()
The index of the first character relative to the beginning of the line 0..n-1
|
int |
getLine()
The line number on which this token was matched; line=1..n
|
int |
getStartIndex() |
int |
getStopIndex() |
int |
getTokenIndex()
An index from 0..n-1 of the token object in the input stream.
|
java.lang.String |
toString() |
public Grammar g
public int originalTokenIndex
public GrammarToken(Grammar g, org.antlr.runtime.Token oldToken)
public int getCharPositionInLine()
org.antlr.runtime.TokengetCharPositionInLine in interface org.antlr.runtime.TokengetCharPositionInLine in class org.antlr.runtime.CommonTokenpublic int getLine()
org.antlr.runtime.TokengetLine in interface org.antlr.runtime.TokengetLine in class org.antlr.runtime.CommonTokenpublic int getTokenIndex()
org.antlr.runtime.TokengetTokenIndex in interface org.antlr.runtime.TokengetTokenIndex in class org.antlr.runtime.CommonTokenpublic int getStartIndex()
getStartIndex in class org.antlr.runtime.CommonTokenpublic int getStopIndex()
getStopIndex in class org.antlr.runtime.CommonTokenpublic java.lang.String toString()
toString in class org.antlr.runtime.CommonToken