Package openbook.tools.converter
Class ParseTokenListener
- java.lang.Object
- 
- org.antlr.runtime.debug.BlankDebugEventListener
- 
- openbook.tools.converter.ParseTokenListener
 
 
- 
- All Implemented Interfaces:
- org.antlr.runtime.debug.DebugEventListener
 
 public class ParseTokenListener extends org.antlr.runtime.debug.BlankDebugEventListenerA token processor to render the ANTLR tokens. This token processor is notified as ANTLR parses every token. This processor controls a renderer that renders the token.- Author:
- Pinaki Poddar
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeHiddenToken(org.antlr.runtime.Token token)Hidden tokens are tokens that are not processed at lexical processing stage.voidconsumeToken(org.antlr.runtime.Token token)A regular token is delegated to the renderer for a string representation and the resultant string is sent to the output stream.voidenterDecision(int d)voidexitDecision(int i)- 
Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListeneraddChild, becomeRoot, beginBacktrack, beginResync, commence, consumeNode, createNode, createNode, endBacktrack, endResync, enterAlt, enterRule, enterSubRule, errorNode, exitRule, exitSubRule, location, LT, LT, mark, nilNode, recognitionException, rewind, rewind, semanticPredicate, setTokenBoundaries, terminate
 
- 
 
- 
- 
- 
Method Detail- 
enterDecisionpublic void enterDecision(int d) - Specified by:
- enterDecisionin interface- org.antlr.runtime.debug.DebugEventListener
- Overrides:
- enterDecisionin class- org.antlr.runtime.debug.BlankDebugEventListener
 
 - 
exitDecisionpublic void exitDecision(int i) - Specified by:
- exitDecisionin interface- org.antlr.runtime.debug.DebugEventListener
- Overrides:
- exitDecisionin class- org.antlr.runtime.debug.BlankDebugEventListener
 
 - 
consumeTokenpublic void consumeToken(org.antlr.runtime.Token token) A regular token is delegated to the renderer for a string representation and the resultant string is sent to the output stream.- Specified by:
- consumeTokenin interface- org.antlr.runtime.debug.DebugEventListener
- Overrides:
- consumeTokenin class- org.antlr.runtime.debug.BlankDebugEventListener
 
 - 
consumeHiddenTokenpublic void consumeHiddenToken(org.antlr.runtime.Token token) Hidden tokens are tokens that are not processed at lexical processing stage. The most important hidden token for rendering are the tokens that represent multi-line or single line comments. The multi-line comments must be broken into individual lines for line numbering to remain consistent.- Specified by:
- consumeHiddenTokenin interface- org.antlr.runtime.debug.DebugEventListener
- Overrides:
- consumeHiddenTokenin class- org.antlr.runtime.debug.BlankDebugEventListener
 
 
- 
 
-