|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.antlr.runtime.debug.BlankDebugEventListener
org.antlr.runtime.debug.ParseTreeBuilder
public class ParseTreeBuilder
This parser listener tracks rule entry/exit and token matches to build a simple parse tree using ParseTree nodes.
Field Summary |
---|
Fields inherited from interface org.antlr.runtime.debug.DebugEventListener |
---|
FALSE, PROTOCOL_VERSION, TRUE |
Constructor Summary | |
---|---|
ParseTreeBuilder(java.lang.String grammarName)
|
Method Summary | |
---|---|
void |
consumeToken(Token token)
An input token was consumed; matched by any kind of element. |
ParseTree |
create(java.lang.Object payload)
What kind of node to create. |
void |
enterRule(java.lang.String ruleName)
The parser has just entered a rule. |
void |
exitRule(java.lang.String ruleName)
This is the last thing executed before leaving a rule. |
ParseTree |
getTree()
|
void |
recognitionException(RecognitionException e)
A recognition exception occurred such as NoViableAltException. |
Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListener |
---|
addChild, becomeRoot, beginBacktrack, beginResync, commence, consumeHiddenToken, consumeNode, createNode, createNode, endBacktrack, endResync, enterAlt, enterDecision, enterSubRule, exitDecision, exitSubRule, location, LT, LT, mark, nilNode, rewind, rewind, semanticPredicate, setTokenBoundaries, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseTreeBuilder(java.lang.String grammarName)
Method Detail |
---|
public ParseTree getTree()
public ParseTree create(java.lang.Object payload)
public void enterRule(java.lang.String ruleName)
DebugEventListener
enterRule
in interface DebugEventListener
enterRule
in class BlankDebugEventListener
public void exitRule(java.lang.String ruleName)
DebugEventListener
exitRule
in interface DebugEventListener
exitRule
in class BlankDebugEventListener
public void consumeToken(Token token)
DebugEventListener
consumeToken
in interface DebugEventListener
consumeToken
in class BlankDebugEventListener
public void recognitionException(RecognitionException e)
DebugEventListener
recognitionException
in interface DebugEventListener
recognitionException
in class BlankDebugEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |