Package org.antlr.tool
Class Interpreter.LexerActionGetTokenType
- java.lang.Object
-
- org.antlr.runtime.debug.BlankDebugEventListener
-
- org.antlr.tool.Interpreter.LexerActionGetTokenType
-
- All Implemented Interfaces:
DebugEventListener
- Enclosing class:
- Interpreter
class Interpreter.LexerActionGetTokenType extends 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
g
CommonToken
token
-
Fields inherited from interface org.antlr.runtime.debug.DebugEventListener
FALSE, PROTOCOL_VERSION, TRUE
-
-
Constructor Summary
Constructors Constructor Description LexerActionGetTokenType(Grammar g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exitRule(java.lang.String grammarFileName, java.lang.String ruleName)
This is the last thing executed before leaving a rule.-
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
-
-
-
-
Field Detail
-
token
public CommonToken token
-
g
Grammar g
-
-
Constructor Detail
-
LexerActionGetTokenType
public LexerActionGetTokenType(Grammar g)
-
-
Method Detail
-
exitRule
public void exitRule(java.lang.String grammarFileName, java.lang.String ruleName)
Description copied from interface:DebugEventListener
This is the last thing executed before leaving a rule. It is executed even if an exception is thrown. This is triggered after error reporting and recovery have occurred (unless the exception is not caught in this rule). This implies an "exitAlt" event. The grammarFileName allows composite grammars to jump around among multiple grammar files.- Specified by:
exitRule
in interfaceDebugEventListener
- Overrides:
exitRule
in classBlankDebugEventListener
-
-