|
||||||||||
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 | |
---|---|
static java.lang.String |
EPSILON_PAYLOAD
|
Fields inherited from interface org.antlr.runtime.debug.DebugEventListener |
---|
FALSE, PROTOCOL_VERSION, TRUE |
Constructor Summary | |
---|---|
ParseTreeBuilder(java.lang.String grammarName)
|
Method Summary | |
---|---|
void |
consumeHiddenToken(Token token)
An off-channel input token was consumed. |
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 |
enterDecision(int d)
Backtracking or cyclic DFA, don't want to add nodes to tree |
void |
enterRule(java.lang.String filename,
java.lang.String ruleName)
The parser has just entered a rule. |
ParseTree |
epsilonNode()
|
void |
exitDecision(int i)
|
void |
exitRule(java.lang.String filename,
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, consumeNode, createNode, createNode, endBacktrack, endResync, enterAlt, enterSubRule, errorNode, 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 |
Field Detail |
---|
public static final java.lang.String EPSILON_PAYLOAD
Constructor Detail |
---|
public ParseTreeBuilder(java.lang.String grammarName)
Method Detail |
---|
public ParseTree getTree()
public ParseTree create(java.lang.Object payload)
public ParseTree epsilonNode()
public void enterDecision(int d)
enterDecision
in interface DebugEventListener
enterDecision
in class BlankDebugEventListener
public void exitDecision(int i)
exitDecision
in interface DebugEventListener
exitDecision
in class BlankDebugEventListener
public void enterRule(java.lang.String filename, java.lang.String ruleName)
DebugEventListener
enterRule
in interface DebugEventListener
enterRule
in class BlankDebugEventListener
public void exitRule(java.lang.String filename, 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 consumeHiddenToken(Token token)
DebugEventListener
consumeHiddenToken
in interface DebugEventListener
consumeHiddenToken
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 |