Class ProgramLexer

  • All Implemented Interfaces:
    org.antlr.v4.runtime.TokenSource

    public class ProgramLexer
    extends org.antlr.v4.runtime.Lexer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.antlr.v4.runtime.atn.ATN _ATN  
      protected static org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA  
      static String _serializedATN  
      protected static org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache  
      static int ARROW  
      static int AT  
      static int BOOL  
      static int BYTES  
      static String[] channelNames  
      static int CHAR  
      static int COLON  
      static int COMMENT  
      static int CONST  
      static int DOT  
      static int DOTS  
      static int EOL  
      static int FLOAT  
      static int HASH  
      static int HEX  
      static int INT  
      static int LB  
      static int LSQ  
      static int META  
      static int MINUS  
      static String[] modeNames  
      static int NAME  
      static int PLUS  
      static int QUESTION  
      static int RB  
      static int REGEX  
      static int RHO  
      static int RSQ  
      static String[] ruleNames  
      static int SIGMA  
      static int SLASH  
      static int SPACE  
      static int STAR  
      static int STRING  
      static String[] tokenNames
      Deprecated.
      Use VOCABULARY instead.
      static org.antlr.v4.runtime.Vocabulary VOCABULARY  
      static int XI  
      • Fields inherited from class org.antlr.v4.runtime.Lexer

        _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
      • Fields inherited from class org.antlr.v4.runtime.Recognizer

        _interp, EOF
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgramLexer​(org.antlr.v4.runtime.CharStream input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void action​(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)  
      void emitToken​(int t, int line)  
      org.antlr.v4.runtime.atn.ATN getATN()  
      String[] getChannelNames()  
      String getGrammarFileName()  
      String[] getModeNames()  
      String[] getRuleNames()  
      String getSerializedATN()  
      String[] getTokenNames()
      Deprecated.
      org.antlr.v4.runtime.Vocabulary getVocabulary()  
      org.antlr.v4.runtime.Token nextToken()  
      • Methods inherited from class org.antlr.v4.runtime.Lexer

        emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
      • Methods inherited from class org.antlr.v4.runtime.Recognizer

        addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
    • Constructor Detail

      • ProgramLexer

        public ProgramLexer​(org.antlr.v4.runtime.CharStream input)
    • Method Detail

      • getTokenNames

        @Deprecated
        public String[] getTokenNames()
        Deprecated.
        Overrides:
        getTokenNames in class org.antlr.v4.runtime.Lexer
      • getVocabulary

        public org.antlr.v4.runtime.Vocabulary getVocabulary()
        Overrides:
        getVocabulary in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>
      • nextToken

        public org.antlr.v4.runtime.Token nextToken()
        Specified by:
        nextToken in interface org.antlr.v4.runtime.TokenSource
        Overrides:
        nextToken in class org.antlr.v4.runtime.Lexer
      • emitToken

        public void emitToken​(int t,
                              int line)
      • getGrammarFileName

        public String getGrammarFileName()
        Specified by:
        getGrammarFileName in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>
      • getRuleNames

        public String[] getRuleNames()
        Specified by:
        getRuleNames in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>
      • getSerializedATN

        public String getSerializedATN()
        Overrides:
        getSerializedATN in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>
      • getChannelNames

        public String[] getChannelNames()
        Overrides:
        getChannelNames in class org.antlr.v4.runtime.Lexer
      • getModeNames

        public String[] getModeNames()
        Overrides:
        getModeNames in class org.antlr.v4.runtime.Lexer
      • getATN

        public org.antlr.v4.runtime.atn.ATN getATN()
        Specified by:
        getATN in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>
      • action

        public void action​(org.antlr.v4.runtime.RuleContext _localctx,
                           int ruleIndex,
                           int actionIndex)
        Overrides:
        action in class org.antlr.v4.runtime.Recognizer<Integer,​org.antlr.v4.runtime.atn.LexerATNSimulator>