|
||||||||||
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.Tracer
public class Tracer
The default tracer mimics the traceParser behavior of ANTLR 2.x. This listens for debugging events from the parser and implies that you cannot debug and trace at the same time.
Field Summary | |
---|---|
IntStream |
input
|
protected int |
level
|
Fields inherited from interface org.antlr.runtime.debug.DebugEventListener |
---|
FALSE, PROTOCOL_VERSION, TRUE |
Constructor Summary | |
---|---|
Tracer(IntStream input)
|
Method Summary | |
---|---|
void |
enterRule(java.lang.String ruleName)
The parser has just entered a rule. |
void |
exitRule(java.lang.String ruleName)
This is the last thing executed before leaving a rule. |
java.lang.Object |
getInputSymbol(int k)
|
Methods inherited from class org.antlr.runtime.debug.BlankDebugEventListener |
---|
addChild, becomeRoot, beginBacktrack, beginResync, commence, consumeHiddenToken, consumeNode, consumeToken, createNode, createNode, endBacktrack, endResync, enterAlt, enterDecision, enterSubRule, exitDecision, exitSubRule, location, LT, LT, mark, nilNode, recognitionException, rewind, rewind, semanticPredicate, setTokenBoundaries, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IntStream input
protected int level
Constructor Detail |
---|
public Tracer(IntStream input)
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 java.lang.Object getInputSymbol(int k)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |