Example usage for Java org.antlr.v4.runtime CommonToken fields, constructors, methods, implement or subclass
The text is from its open source code.
CommonToken(int type) Constructs a new CommonToken with the specified token type. | |
CommonToken(Token oldToken) Constructs a new CommonToken as a copy of another Token . | |
CommonToken(int type, String text) Constructs a new CommonToken with the specified token type and text. | |
CommonToken(Pair |
int | getChannel() |
int | getCharPositionInLine() |
CharStream | getInputStream() |
int | getLine() |
int | getStartIndex() |
int | getStopIndex() |
String | getText() |
int | getType() |
void | setChannel(int channel) |
void | setCharPositionInLine(int charPositionInLine) |
void | setLine(int line) |
void | setStartIndex(int start) |
void | setStopIndex(int stop) |
void | setText(String text) Explicitly set the text for this token. |
void | setType(int type) |