|
||||||||||
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()
|
Method Summary | |
---|---|
void |
addChild(int rootID,
int childID)
Make childID a child of rootID. |
void |
becomeRoot(int newRootID,
int oldRootID)
Make a node the new root of an existing root. |
void |
consumeNode(int ID,
java.lang.String text,
int type)
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(int ID,
int tokenIndex)
Announce a new node built from an existing token |
void |
createNode(int ID,
java.lang.String text,
int type)
Announce a new node built from text |
void |
enterRule(java.lang.String ruleName)
The parser has just entered a rule. |
void |
enterSubRule(int decisionNumber)
Track entry into any (...) subrule other EBNF construct |
void |
exitRule(java.lang.String ruleName)
This is the last thing executed before leaving a rule. |
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,
int ID,
java.lang.String text,
int type)
The tree parser lookedahead. |
void |
nilNode(int ID)
A nil was created (even nil nodes have a unique ID... |
void |
setTokenBoundaries(int ID,
int tokenStartIndex,
int tokenStopIndex)
Set the token start/stop token index for a subtree root or node |
void |
trimNilRoot(int ID)
|
Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListener |
---|
beginBacktrack, beginResync, commence, consumeHiddenToken, consumeToken, endBacktrack, endResync, enterAlt, enterDecision, exitDecision, 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()
Method Detail |
---|
public void enterRule(java.lang.String ruleName)
DebugEventListener
enterRule
in interface DebugEventListener
enterRule
in class BlankDebugEventListener
public void exitRule(java.lang.String ruleName)
DebugEventListener
exitRule
in interface DebugEventListener
exitRule
in class BlankDebugEventListener
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(int ID, java.lang.String text, int type)
DebugEventListener
consumeNode
in interface DebugEventListener
consumeNode
in class BlankDebugEventListener
public void LT(int i, int ID, java.lang.String text, int type)
DebugEventListener
LT
in interface DebugEventListener
LT
in class BlankDebugEventListener
public void nilNode(int ID)
DebugEventListener
nilNode
in interface DebugEventListener
nilNode
in class BlankDebugEventListener
public void createNode(int ID, java.lang.String text, int type)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void createNode(int ID, int tokenIndex)
DebugEventListener
createNode
in interface DebugEventListener
createNode
in class BlankDebugEventListener
public void becomeRoot(int newRootID, int oldRootID)
DebugEventListener
becomeRoot
in interface DebugEventListener
becomeRoot
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.becomeRoot()
public void addChild(int rootID, int childID)
DebugEventListener
addChild
in interface DebugEventListener
addChild
in class BlankDebugEventListener
org.antlr.runtime.tree.TreeAdaptor.addChild()
public void trimNilRoot(int ID)
public void setTokenBoundaries(int ID, 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 |