|
||||||||||
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.TraceDebugEventListener
public class TraceDebugEventListener
Print out (most of) the events... Useful for debugging, testing...
Field Summary |
---|
Fields inherited from interface org.antlr.runtime.debug.DebugEventListener |
---|
FALSE, PROTOCOL_VERSION, TRUE |
Constructor Summary | |
---|---|
TraceDebugEventListener(TreeAdaptor adaptor)
|
Method Summary | |
---|---|
void |
addChild(java.lang.Object root,
java.lang.Object child)
Make childID a child of rootID. |
void |
becomeRoot(java.lang.Object newRoot,
java.lang.Object oldRoot)
Make a node the new root of an existing root. |
void |
consumeNode(java.lang.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(java.lang.Object t)
Announce a new node built from token elements such as type etc... |
void |
createNode(java.lang.Object node,
Token token)
Announce a new node built from an existing token. |
void |
enterRule(java.lang.String ruleName)
|
void |
enterSubRule(int decisionNumber)
Track entry into any (...) subrule other EBNF construct |
void |
exitRule(java.lang.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,
java.lang.Object t)
The tree parser lookedahead. |
void |
nilNode(java.lang.Object t)
A nil was created (even nil nodes have a unique ID... |
void |
setTokenBoundaries(java.lang.Object t,
int tokenStartIndex,
int tokenStopIndex)
Set the token start/stop token index for a subtree root or node. |
Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListener |
---|
beginBacktrack, beginResync, commence, consumeHiddenToken, consumeToken, endBacktrack, endResync, enterAlt, enterDecision, enterRule, errorNode, exitDecision, exitRule, LT, mark, recognitionException, rewind, rewind, semanticPredicate, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TraceDebugEventListener(TreeAdaptor adaptor)
Method Detail |
---|
public void enterRule(java.lang.String ruleName)
public void exitRule(java.lang.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(java.lang.Object t)
DebugEventListener
consumeNode
in interface DebugEventListener
consumeNode
in class BlankDebugEventListener
public void LT(int i, java.lang.Object t)
DebugEventListener
LT
in interface DebugEventListener
LT
in class BlankDebugEventListener
public void nilNode(java.lang.Object t)
DebugEventListener
nilNode
in interface DebugEventListener
nilNode
in class BlankDebugEventListener
public void createNode(java.lang.Object t)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void createNode(java.lang.Object node, Token token)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void becomeRoot(java.lang.Object newRoot, java.lang.Object oldRoot)
DebugEventListener
becomeRoot
in interface DebugEventListener
becomeRoot
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.becomeRoot()
public void addChild(java.lang.Object root, java.lang.Object child)
DebugEventListener
addChild
in interface DebugEventListener
addChild
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.addChild()
public void setTokenBoundaries(java.lang.Object t, int tokenStartIndex, int tokenStopIndex)
DebugEventListener
setTokenBoundaries
in interface DebugEventListener
setTokenBoundaries
in class BlankDebugEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |