|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antlr.runtime.CommonToken
org.stringtemplate.v4.compiler.STLexer.STToken
public static class STLexer.STToken
We build STToken tokens instead of relying on CommonToken so we can override toString(). It just converts token types to token names like 23 to LDELIM.
| Field Summary |
|---|
| Fields inherited from class org.antlr.runtime.CommonToken |
|---|
channel, charPositionInLine, index, input, line, start, stop, text, type |
| Fields inherited from interface org.antlr.runtime.Token |
|---|
DEFAULT_CHANNEL, DOWN, EOF, EOF_TOKEN, EOR_TOKEN_TYPE, HIDDEN_CHANNEL, INVALID_TOKEN, INVALID_TOKEN_TYPE, MIN_TOKEN_TYPE, SKIP_TOKEN, UP |
| Constructor Summary | |
|---|---|
STLexer.STToken(org.antlr.runtime.CharStream input,
int type,
int start,
int stop)
|
|
STLexer.STToken(int type,
String text)
|
|
| Method Summary | |
|---|---|
String |
toString()
|
| Methods inherited from class org.antlr.runtime.CommonToken |
|---|
getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getType, setChannel, setCharPositionInLine, setInputStream, setLine, setStartIndex, setStopIndex, setText, setTokenIndex, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public STLexer.STToken(org.antlr.runtime.CharStream input,
int type,
int start,
int stop)
public STLexer.STToken(int type,
String text)
| Method Detail |
|---|
public String toString()
toString in class org.antlr.runtime.CommonToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||