| java.lang.Object org.antlr.runtime.debug.DebugEventHub
DebugEventHub | public class DebugEventHub implements DebugEventListener(Code) | | Broadcast debug events to multiple listeners. Lets you debug and still
use the event mechanism to build parse trees etc... Not thread-safe.
Don't add events in one thread while parser fires events in another.
See Also: also See Also: DebugEventRepeater |
Method Summary | |
public void | LT(int index, Token t) | public void | LT(int index, Object t) | public void | addChild(Object root, Object child) | public void | addListener(DebugEventListener listener) Add another listener to broadcast events too. | public void | becomeRoot(Object newRoot, Object oldRoot) | public void | beginBacktrack(int level) | public void | beginResync() | public void | commence() | public void | consumeHiddenToken(Token token) | public void | consumeNode(Object t) | public void | consumeToken(Token token) | public void | createNode(Object t) | public void | createNode(Object node, Token token) | public void | endBacktrack(int level, boolean successful) | public void | endResync() | public void | enterAlt(int alt) | public void | enterDecision(int decisionNumber) | public void | enterRule(String ruleName) | public void | enterSubRule(int decisionNumber) | public void | exitDecision(int decisionNumber) | public void | exitRule(String ruleName) | public void | exitSubRule(int decisionNumber) | public void | location(int line, int pos) | public void | mark(int index) | public void | nilNode(Object t) | public void | recognitionException(RecognitionException e) | public void | rewind(int index) | public void | rewind() | public void | semanticPredicate(boolean result, String predicate) | public void | setTokenBoundaries(Object t, int tokenStartIndex, int tokenStopIndex) | public void | terminate() |
addListener | public void addListener(DebugEventListener listener)(Code) | | Add another listener to broadcast events too. Not thread-safe.
Don't add events in one thread while parser fires events in another.
|
beginBacktrack | public void beginBacktrack(int level)(Code) | | |
beginResync | public void beginResync()(Code) | | |
commence | public void commence()(Code) | | |
consumeHiddenToken | public void consumeHiddenToken(Token token)(Code) | | |
consumeToken | public void consumeToken(Token token)(Code) | | |
endBacktrack | public void endBacktrack(int level, boolean successful)(Code) | | |
endResync | public void endResync()(Code) | | |
enterAlt | public void enterAlt(int alt)(Code) | | |
enterDecision | public void enterDecision(int decisionNumber)(Code) | | |
enterSubRule | public void enterSubRule(int decisionNumber)(Code) | | |
exitDecision | public void exitDecision(int decisionNumber)(Code) | | |
exitSubRule | public void exitSubRule(int decisionNumber)(Code) | | |
location | public void location(int line, int pos)(Code) | | |
mark | public void mark(int index)(Code) | | |
rewind | public void rewind(int index)(Code) | | |
rewind | public void rewind()(Code) | | |
semanticPredicate | public void semanticPredicate(boolean result, String predicate)(Code) | | |
setTokenBoundaries | public void setTokenBoundaries(Object t, int tokenStartIndex, int tokenStopIndex)(Code) | | |
terminate | public void terminate()(Code) | | |
|
|