Class Lexer

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

    public abstract class Lexer
    extends org.antlr.runtime.Lexer
    Since:
    2.9
    • Field Summary

      • Fields inherited from class org.antlr.runtime.Lexer

        input
      • Fields inherited from class org.antlr.runtime.BaseRecognizer

        DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Lexer()  
      protected Lexer​(org.antlr.runtime.CharStream input)  
      protected Lexer​(org.antlr.runtime.CharStream input, org.antlr.runtime.RecognizerSharedState state)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void emitErrorMessage​(java.lang.String msg)  
      org.antlr.runtime.Token nextToken()  
      • Methods inherited from class org.antlr.runtime.Lexer

        emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, mTokens, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
      • Methods inherited from class org.antlr.runtime.BaseRecognizer

        alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getErrorHeader, getGrammarFileName, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Lexer

        protected Lexer​(org.antlr.runtime.CharStream input)
      • Lexer

        protected Lexer()
      • Lexer

        protected Lexer​(org.antlr.runtime.CharStream input,
                        org.antlr.runtime.RecognizerSharedState state)
    • Method Detail

      • nextToken

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

        public void emitErrorMessage​(java.lang.String msg)
        Overrides:
        emitErrorMessage in class org.antlr.runtime.BaseRecognizer