public class TraceDebugEventListener extends BlankDebugEventListener
FALSE, PROTOCOL_VERSION, TRUE| Constructor and Description |
|---|
TraceDebugEventListener(TreeAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Object root,
Object child)
Make childID a child of rootID.
|
void |
becomeRoot(Object newRoot,
Object oldRoot)
Make a node the new root of an existing root.
|
void |
consumeNode(Object t)
Input for a tree parser is an AST, but we know nothing for sure
about a node except its type and text (obtained from the adaptor).
|
void |
createNode(Object t)
Announce a new node built from token elements such as type etc...
|
void |
createNode(Object node,
Token token)
Announce a new node built from an existing token.
|
void |
enterRule(String ruleName) |
void |
enterSubRule(int decisionNumber)
Track entry into any (...) subrule other EBNF construct
|
void |
exitRule(String ruleName) |
void |
exitSubRule(int decisionNumber) |
void |
location(int line,
int pos)
To watch a parser move through the grammar, the parser needs to
inform the debugger what line/charPos it is passing in the grammar.
|
void |
LT(int i,
Object t)
The tree parser lookedahead.
|
void |
nilNode(Object t)
A nil was created (even nil nodes have a unique ID...
|
void |
setTokenBoundaries(Object t,
int tokenStartIndex,
int tokenStopIndex)
Set the token start/stop token index for a subtree root or node.
|
beginBacktrack, beginResync, commence, consumeHiddenToken, consumeToken, endBacktrack, endResync, enterAlt, enterDecision, enterRule, errorNode, exitDecision, exitRule, LT, mark, recognitionException, rewind, rewind, semanticPredicate, terminatepublic TraceDebugEventListener(TreeAdaptor adaptor)
public void enterRule(String ruleName)
public void exitRule(String ruleName)
public void enterSubRule(int decisionNumber)
DebugEventListenerenterSubRule in interface DebugEventListenerenterSubRule in class BlankDebugEventListenerpublic void exitSubRule(int decisionNumber)
exitSubRule in interface DebugEventListenerexitSubRule in class BlankDebugEventListenerpublic void location(int line,
int pos)
DebugEventListenerlocation in interface DebugEventListenerlocation in class BlankDebugEventListenerpublic void consumeNode(Object t)
DebugEventListenerconsumeNode in interface DebugEventListenerconsumeNode in class BlankDebugEventListenerpublic void LT(int i,
Object t)
DebugEventListenerLT in interface DebugEventListenerLT in class BlankDebugEventListenerpublic void nilNode(Object t)
DebugEventListenernilNode in interface DebugEventListenernilNode in class BlankDebugEventListenerpublic void createNode(Object t)
DebugEventListenercreateNode in interface DebugEventListenercreateNode in class BlankDebugEventListenerpublic void createNode(Object node, Token token)
DebugEventListenercreateNode in interface DebugEventListenercreateNode in class BlankDebugEventListenerpublic void becomeRoot(Object newRoot, Object oldRoot)
DebugEventListenerbecomeRoot in interface DebugEventListenerbecomeRoot in class BlankDebugEventListenerTreeAdaptor.becomeRoot(java.lang.Object, java.lang.Object)public void addChild(Object root, Object child)
DebugEventListeneraddChild in interface DebugEventListeneraddChild in class BlankDebugEventListenerTreeAdaptor.addChild(java.lang.Object, java.lang.Object)public void setTokenBoundaries(Object t, int tokenStartIndex, int tokenStopIndex)
DebugEventListenersetTokenBoundaries in interface DebugEventListenersetTokenBoundaries in class BlankDebugEventListenerCopyright © 1992-2013 ANTLR. All Rights Reserved.