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, terminate
public TraceDebugEventListener(TreeAdaptor adaptor)
public void enterRule(String ruleName)
public void exitRule(String ruleName)
public void enterSubRule(int decisionNumber)
DebugEventListener
enterSubRule
in interface DebugEventListener
enterSubRule
in class BlankDebugEventListener
public void exitSubRule(int decisionNumber)
exitSubRule
in interface DebugEventListener
exitSubRule
in class BlankDebugEventListener
public void location(int line, int pos)
DebugEventListener
location
in interface DebugEventListener
location
in class BlankDebugEventListener
public void consumeNode(Object t)
DebugEventListener
consumeNode
in interface DebugEventListener
consumeNode
in class BlankDebugEventListener
public void LT(int i, Object t)
DebugEventListener
LT
in interface DebugEventListener
LT
in class BlankDebugEventListener
public void nilNode(Object t)
DebugEventListener
nilNode
in interface DebugEventListener
nilNode
in class BlankDebugEventListener
public void createNode(Object t)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void createNode(Object node, Token token)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void becomeRoot(Object newRoot, Object oldRoot)
DebugEventListener
becomeRoot
in interface DebugEventListener
becomeRoot
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.becomeRoot()
public void addChild(Object root, Object child)
DebugEventListener
addChild
in interface DebugEventListener
addChild
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.addChild()
public void setTokenBoundaries(Object t, int tokenStartIndex, int tokenStopIndex)
DebugEventListener
setTokenBoundaries
in interface DebugEventListener
setTokenBoundaries
in class BlankDebugEventListener
Copyright © 2020. All rights reserved.