public class ParseTreeBuilder extends BlankDebugEventListener
| Modifier and Type | Field and Description |
|---|---|
static String |
EPSILON_PAYLOAD |
FALSE, PROTOCOL_VERSION, TRUE| Constructor and Description |
|---|
ParseTreeBuilder(String grammarName) |
| Modifier and Type | Method and Description |
|---|---|
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(Object payload)
What kind of node to create.
|
void |
enterDecision(int d,
boolean couldBacktrack)
Backtracking or cyclic DFA, don't want to add nodes to tree
|
void |
enterRule(String filename,
String ruleName)
The parser has just entered a rule.
|
ParseTree |
epsilonNode() |
void |
exitDecision(int i) |
void |
exitRule(String filename,
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.
|
addChild, becomeRoot, beginBacktrack, beginResync, commence, consumeNode, createNode, createNode, endBacktrack, endResync, enterAlt, enterSubRule, errorNode, exitSubRule, location, LT, LT, mark, nilNode, rewind, rewind, semanticPredicate, setTokenBoundaries, terminatepublic static final String EPSILON_PAYLOAD
public ParseTreeBuilder(String grammarName)
public ParseTree getTree()
public ParseTree create(Object payload)
public ParseTree epsilonNode()
public void enterDecision(int d,
boolean couldBacktrack)
enterDecision in interface DebugEventListenerenterDecision in class BlankDebugEventListenerpublic void exitDecision(int i)
exitDecision in interface DebugEventListenerexitDecision in class BlankDebugEventListenerpublic void enterRule(String filename, String ruleName)
DebugEventListenerenterRule in interface DebugEventListenerenterRule in class BlankDebugEventListenerpublic void exitRule(String filename, String ruleName)
DebugEventListenerexitRule in interface DebugEventListenerexitRule in class BlankDebugEventListenerpublic void consumeToken(Token token)
DebugEventListenerconsumeToken in interface DebugEventListenerconsumeToken in class BlankDebugEventListenerpublic void consumeHiddenToken(Token token)
DebugEventListenerconsumeHiddenToken in interface DebugEventListenerconsumeHiddenToken in class BlankDebugEventListenerpublic void recognitionException(RecognitionException e)
DebugEventListenerrecognitionException in interface DebugEventListenerrecognitionException in class BlankDebugEventListenerCopyright © 1992-2013 ANTLR. All Rights Reserved.