Package org.antlr.v4.runtime
Interface WritableToken
- All Superinterfaces:
Token
- All Known Implementing Classes:
CommonToken
,TokenTagToken
-
Field Summary
Fields inherited from interface org.antlr.v4.runtime.Token
DEFAULT_CHANNEL, EOF, EPSILON, HIDDEN_CHANNEL, INVALID_TYPE, MIN_USER_CHANNEL_VALUE, MIN_USER_TOKEN_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setChannel
(int channel) void
setCharPositionInLine
(int pos) void
setLine
(int line) void
void
setTokenIndex
(int index) void
setType
(int ttype) Methods inherited from interface org.antlr.v4.runtime.Token
getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getTokenSource, getType
-
Method Details
-
setText
-
setType
void setType(int ttype) -
setLine
void setLine(int line) -
setCharPositionInLine
void setCharPositionInLine(int pos) -
setChannel
void setChannel(int channel) -
setTokenIndex
void setTokenIndex(int index)
-