public abstract class AbstractLexer extends Lexer
Because antlr4 does not support generating lexer with specified interface, we have to create a super class for it and implement the interface.
Fields inherited from class | Fields |
---|---|
class Lexer |
DEFAULT_MODE, MORE, SKIP, DEFAULT_TOKEN_CHANNEL, HIDDEN, MIN_CHAR_VALUE, MAX_CHAR_VALUE, _input, _token, _tokenStartCharIndex, _tokenStartLine, _tokenStartCharPositionInLine, _hitEOF, _channel, _type, _modeStack, _mode, _text, EOF |
Constructor and description |
---|
AbstractLexer
(CharStream input) |
Methods inherited from class | Name |
---|---|
class Lexer |
nextToken, getType, reset, skip, getInputStream, getInputStream, getChannel, setType, setInputStream, notifyListeners, more, emit, emit, mode, setText, getToken, getText, getSourceName, getLine, getCharErrorDisplay, setCharPositionInLine, recover, recover, setLine, setTokenFactory, getTokenFactory, getTokenNames, getChannelNames, popMode, getModeNames, pushMode, emitEOF, setChannel, getCharIndex, getErrorDisplay, getErrorDisplay, getAllTokens, setToken, getCharPositionInLine, getState, setState, action, getGrammarFileName, getErrorListenerDispatch, getTokenErrorDisplay, removeErrorListener, getErrorListeners, getInterpreter, addErrorListener, getRuleNames, removeErrorListeners, getVocabulary, setInterpreter, getATN, sempred, getSerializedATN, getTokenTypeMap, precpred, getRuleIndexMap, getTokenType, getParseInfo, getErrorHeader, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.