public abstract class AbstractLexer extends org.antlr.v4.runtime.Lexer implements SyntaxErrorReportable
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
Constructor and Description |
---|
AbstractLexer(org.antlr.v4.runtime.CharStream input) |
Modifier and Type | Method and Description |
---|---|
PositionInfo |
genPositionInfo(int offset) |
void |
require(boolean condition,
java.lang.String msg) |
void |
require(boolean condition,
java.lang.String msg,
boolean toAttachPositionInfo) |
void |
require(boolean condition,
java.lang.String msg,
int offset) |
void |
require(boolean condition,
java.lang.String msg,
int offset,
boolean toAttachPositionInfo) |
void |
throwSyntaxError(java.lang.String msg,
int offset,
boolean toAttachPositionInfo) |
emit, emit, emitEOF, getAllTokens, getChannel, getChannelNames, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getModeNames, getSourceName, getText, getToken, getTokenFactory, getTokenNames, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip, validateInputStream
action, addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getGrammarFileName, getInterpreter, getParseInfo, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, getVocabulary, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorColumn, getErrorLine, getSyntaxErrorSource
public void require(boolean condition, java.lang.String msg, boolean toAttachPositionInfo)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg, int offset, boolean toAttachPositionInfo)
require
in interface SyntaxErrorReportable
public void require(boolean condition, java.lang.String msg, int offset)
require
in interface SyntaxErrorReportable
public void throwSyntaxError(java.lang.String msg, int offset, boolean toAttachPositionInfo)
throwSyntaxError
in interface SyntaxErrorReportable
public PositionInfo genPositionInfo(int offset)
genPositionInfo
in interface SyntaxErrorReportable