Class Interpreter.LexerActionGetTokenType

java.lang.Object
org.antlr.runtime.debug.BlankDebugEventListener
org.antlr.tool.Interpreter.LexerActionGetTokenType
All Implemented Interfaces:
org.antlr.runtime.debug.DebugEventListener
Enclosing class:
Interpreter

class Interpreter.LexerActionGetTokenType extends org.antlr.runtime.debug.BlankDebugEventListener
A lexer listener that just creates token objects as they are matched. scan() use this listener to get a single object. To get a stream of tokens, you must call scan() multiple times, recording the token object result after each call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Grammar
     
    org.antlr.runtime.CommonToken
     

    Fields inherited from interface org.antlr.runtime.debug.DebugEventListener

    FALSE, PROTOCOL_VERSION, TRUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exitRule(String grammarFileName, String ruleName)
     

    Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListener

    addChild, becomeRoot, beginBacktrack, beginResync, commence, consumeHiddenToken, consumeNode, consumeToken, createNode, createNode, endBacktrack, endResync, enterAlt, enterDecision, enterRule, enterSubRule, errorNode, exitDecision, exitSubRule, location, LT, LT, mark, nilNode, recognitionException, rewind, rewind, semanticPredicate, setTokenBoundaries, terminate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • token

      public org.antlr.runtime.CommonToken token
    • g

  • Constructor Details

    • LexerActionGetTokenType

      public LexerActionGetTokenType(Grammar g)
  • Method Details

    • exitRule

      public void exitRule(String grammarFileName, String ruleName)
      Specified by:
      exitRule in interface org.antlr.runtime.debug.DebugEventListener
      Overrides:
      exitRule in class org.antlr.runtime.debug.BlankDebugEventListener