Public Member Functions | |
ParserEventSupport (Object source) | |
void | addDoneListener (ListenerBase l) |
void | addMessageListener (MessageListener l) |
void | addNewLineListener (NewLineListener l) |
void | addParserListener (ParserListener l) |
void | addParserMatchListener (ParserMatchListener l) |
void | addParserTokenListener (ParserTokenListener l) |
void | addSemanticPredicateListener (SemanticPredicateListener l) |
void | addSyntacticPredicateListener (SyntacticPredicateListener l) |
void | addTraceListener (TraceListener l) |
void | fireConsume (int value) |
void | fireDoneParsing () |
void | fireEnterRule (int ruleNum, int guessing, int data) |
void | fireEvent (int type, ListenerBase l) |
void | fireEvents (int type, Vector listeners) |
void | fireExitRule (int ruleNum, int guessing, int data) |
void | fireLA (int k, int la) |
void | fireMatch (char c, int guessing) |
void | fireMatch (char value, BitSet b, int guessing) |
void | fireMatch (char value, String target, int guessing) |
void | fireMatch (int value, BitSet b, String text, int guessing) |
void | fireMatch (int n, String text, int guessing) |
void | fireMatch (String s, int guessing) |
void | fireMatchNot (char value, char n, int guessing) |
void | fireMatchNot (int value, int n, String text, int guessing) |
void | fireMismatch (char value, char n, int guessing) |
void | fireMismatch (char value, BitSet b, int guessing) |
void | fireMismatch (char value, String target, int guessing) |
void | fireMismatch (int value, int n, String text, int guessing) |
void | fireMismatch (int value, BitSet b, String text, int guessing) |
void | fireMismatch (String value, String text, int guessing) |
void | fireMismatchNot (char value, char c, int guessing) |
void | fireMismatchNot (int value, int n, String text, int guessing) |
void | fireNewLine (int line) |
void | fireReportError (Exception e) |
void | fireReportError (String s) |
void | fireReportWarning (String s) |
boolean | fireSemanticPredicateEvaluated (int type, int condition, boolean result, int guessing) |
void | fireSyntacticPredicateFailed (int guessing) |
void | fireSyntacticPredicateStarted (int guessing) |
void | fireSyntacticPredicateSucceeded (int guessing) |
void | refreshListeners () |
void | removeDoneListener (ListenerBase l) |
void | removeMessageListener (MessageListener l) |
void | removeNewLineListener (NewLineListener l) |
void | removeParserListener (ParserListener l) |
void | removeParserMatchListener (ParserMatchListener l) |
void | removeParserTokenListener (ParserTokenListener l) |
void | removeSemanticPredicateListener (SemanticPredicateListener l) |
void | removeSyntacticPredicateListener (SyntacticPredicateListener l) |
void | removeTraceListener (TraceListener l) |
Protected Member Functions | |
void | refresh (Vector listeners) |
Static Protected Attributes | |
static final int | CONSUME = 0 |
static final int | ENTER_RULE = 1 |
static final int | EXIT_RULE = 2 |
static final int | LA = 3 |
static final int | MATCH = 4 |
static final int | MATCH_NOT = 5 |
static final int | MISMATCH = 6 |
static final int | MISMATCH_NOT = 7 |
static final int | REPORT_ERROR = 8 |
static final int | REPORT_WARNING = 9 |
static final int | SEMPRED = 10 |
static final int | SYNPRED_FAILED = 11 |
static final int | SYNPRED_STARTED = 12 |
static final int | SYNPRED_SUCCEEDED = 13 |
static final int | NEW_LINE = 14 |
static final int | DONE_PARSING = 15 |
A class to assist in firing parser events NOTE: I intentionally _did_not_ synchronize the event firing and add/remove listener methods. This is because the add/remove should _only_ be called by the parser at its start/end, and the _same_thread_ should be performing the parsing. This should help performance a tad...
antlr.debug.ParserEventSupport.ParserEventSupport | ( | Object | source | ) |
void antlr.debug.ParserEventSupport.addDoneListener | ( | ListenerBase | l | ) |
Referenced by antlr.debug.ParserEventSupport.addMessageListener(), antlr.debug.ParserEventSupport.addNewLineListener(), antlr.debug.ParserEventSupport.addParserMatchListener(), antlr.debug.ParserEventSupport.addParserTokenListener(), antlr.debug.ParserEventSupport.addSemanticPredicateListener(), antlr.debug.ParserEventSupport.addSyntacticPredicateListener(), and antlr.debug.ParserEventSupport.addTraceListener().
void antlr.debug.ParserEventSupport.addMessageListener | ( | MessageListener | l | ) |
void antlr.debug.ParserEventSupport.addNewLineListener | ( | NewLineListener | l | ) |
References antlr.debug.ParserEventSupport.addDoneListener().
Referenced by antlr.debug.DebuggingCharScanner.addNewLineListener().
void antlr.debug.ParserEventSupport.addParserListener | ( | ParserListener | l | ) |
References antlr.debug.ParserEventSupport.addMessageListener(), antlr.debug.ParserEventSupport.addParserMatchListener(), antlr.debug.ParserEventSupport.addParserTokenListener(), antlr.debug.ParserEventSupport.addSemanticPredicateListener(), antlr.debug.ParserEventSupport.addSyntacticPredicateListener(), and antlr.debug.ParserEventSupport.addTraceListener().
Referenced by antlr.debug.LLkDebuggingParser.addParserListener(), and antlr.debug.DebuggingCharScanner.addParserListener().
void antlr.debug.ParserEventSupport.addParserMatchListener | ( | ParserMatchListener | l | ) |
void antlr.debug.ParserEventSupport.addParserTokenListener | ( | ParserTokenListener | l | ) |
void antlr.debug.ParserEventSupport.addSemanticPredicateListener | ( | SemanticPredicateListener | l | ) |
void antlr.debug.ParserEventSupport.addSyntacticPredicateListener | ( | SyntacticPredicateListener | l | ) |
void antlr.debug.ParserEventSupport.addTraceListener | ( | TraceListener | l | ) |
void antlr.debug.ParserEventSupport.fireConsume | ( | int | value | ) |
void antlr.debug.ParserEventSupport.fireDoneParsing | ( | ) |
void antlr.debug.ParserEventSupport.fireEnterRule | ( | int | ruleNum, | |
int | guessing, | |||
int | data | |||
) |
void antlr.debug.ParserEventSupport.fireEvent | ( | int | type, | |
ListenerBase | l | |||
) |
References antlr.debug.ParserEventSupport.CONSUME, antlr.debug.ParserEventSupport.DONE_PARSING, antlr.debug.ParserEventSupport.ENTER_RULE, antlr.debug.ParserEventSupport.EXIT_RULE, antlr.debug.ParserEventSupport.LA, antlr.debug.ParserEventSupport.MATCH, antlr.debug.ParserEventSupport.MATCH_NOT, antlr.debug.ParserEventSupport.MISMATCH, antlr.debug.ParserEventSupport.MISMATCH_NOT, antlr.debug.ParserEventSupport.NEW_LINE, antlr.debug.ParserEventSupport.REPORT_ERROR, antlr.debug.ParserEventSupport.REPORT_WARNING, antlr.debug.ParserEventSupport.SEMPRED, antlr.debug.ParserEventSupport.SYNPRED_FAILED, antlr.debug.ParserEventSupport.SYNPRED_STARTED, and antlr.debug.ParserEventSupport.SYNPRED_SUCCEEDED.
Referenced by antlr.debug.ParserEventSupport.fireDoneParsing(), and antlr.debug.ParserEventSupport.fireEvents().
void antlr.debug.ParserEventSupport.fireEvents | ( | int | type, | |
Vector | listeners | |||
) |
References antlr.debug.ParserController.checkBreak(), and antlr.debug.ParserEventSupport.fireEvent().
Referenced by antlr.debug.ParserEventSupport.fireConsume(), antlr.debug.ParserEventSupport.fireEnterRule(), antlr.debug.ParserEventSupport.fireExitRule(), antlr.debug.ParserEventSupport.fireLA(), antlr.debug.ParserEventSupport.fireMatch(), antlr.debug.ParserEventSupport.fireMatchNot(), antlr.debug.ParserEventSupport.fireMismatch(), antlr.debug.ParserEventSupport.fireMismatchNot(), antlr.debug.ParserEventSupport.fireNewLine(), antlr.debug.ParserEventSupport.fireReportError(), antlr.debug.ParserEventSupport.fireReportWarning(), antlr.debug.ParserEventSupport.fireSemanticPredicateEvaluated(), antlr.debug.ParserEventSupport.fireSyntacticPredicateFailed(), antlr.debug.ParserEventSupport.fireSyntacticPredicateStarted(), and antlr.debug.ParserEventSupport.fireSyntacticPredicateSucceeded().
void antlr.debug.ParserEventSupport.fireExitRule | ( | int | ruleNum, | |
int | guessing, | |||
int | data | |||
) |
References antlr.debug.ParserEventSupport.EXIT_RULE, antlr.debug.ParserEventSupport.fireDoneParsing(), antlr.debug.ParserEventSupport.fireEvents(), and antlr.debug.TraceEvent.setValues().
Referenced by antlr.debug.LLkDebuggingParser.fireExitRule(), and antlr.debug.DebuggingCharScanner.fireExitRule().
void antlr.debug.ParserEventSupport.fireLA | ( | int | k, | |
int | la | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | char | c, | |
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | char | value, | |
BitSet | b, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | char | value, | |
String | target, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | int | value, | |
BitSet | b, | |||
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | int | n, | |
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatch | ( | String | s, | |
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatchNot | ( | char | value, | |
char | n, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMatchNot | ( | int | value, | |
int | n, | |||
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | char | value, | |
char | n, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | char | value, | |
BitSet | b, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | char | value, | |
String | target, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | int | value, | |
int | n, | |||
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | int | value, | |
BitSet | b, | |||
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatch | ( | String | value, | |
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatchNot | ( | int | value, | |
int | n, | |||
String | text, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireMismatchNot | ( | char | value, | |
char | c, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireNewLine | ( | int | line | ) |
void antlr.debug.ParserEventSupport.fireReportError | ( | String | s | ) |
void antlr.debug.ParserEventSupport.fireReportError | ( | Exception | e | ) |
void antlr.debug.ParserEventSupport.fireReportWarning | ( | String | s | ) |
boolean antlr.debug.ParserEventSupport.fireSemanticPredicateEvaluated | ( | int | type, | |
int | condition, | |||
boolean | result, | |||
int | guessing | |||
) |
void antlr.debug.ParserEventSupport.fireSyntacticPredicateFailed | ( | int | guessing | ) |
References antlr.debug.ParserEventSupport.fireEvents(), antlr.debug.SyntacticPredicateEvent.setValues(), and antlr.debug.ParserEventSupport.SYNPRED_FAILED.
Referenced by antlr.debug.LLkDebuggingParser.fireSyntacticPredicateFailed(), and antlr.debug.DebuggingCharScanner.fireSyntacticPredicateFailed().
void antlr.debug.ParserEventSupport.fireSyntacticPredicateStarted | ( | int | guessing | ) |
References antlr.debug.ParserEventSupport.fireEvents(), antlr.debug.SyntacticPredicateEvent.setValues(), and antlr.debug.ParserEventSupport.SYNPRED_STARTED.
Referenced by antlr.debug.LLkDebuggingParser.fireSyntacticPredicateStarted(), and antlr.debug.DebuggingCharScanner.fireSyntacticPredicateStarted().
void antlr.debug.ParserEventSupport.fireSyntacticPredicateSucceeded | ( | int | guessing | ) |
References antlr.debug.ParserEventSupport.fireEvents(), antlr.debug.SyntacticPredicateEvent.setValues(), and antlr.debug.ParserEventSupport.SYNPRED_SUCCEEDED.
Referenced by antlr.debug.LLkDebuggingParser.fireSyntacticPredicateSucceeded(), and antlr.debug.DebuggingCharScanner.fireSyntacticPredicateSucceeded().
void antlr.debug.ParserEventSupport.refresh | ( | Vector | listeners | ) | [protected] |
Referenced by antlr.debug.ParserEventSupport.refreshListeners().
void antlr.debug.ParserEventSupport.refreshListeners | ( | ) |
References antlr.debug.ParserEventSupport.refresh().
void antlr.debug.ParserEventSupport.removeDoneListener | ( | ListenerBase | l | ) |
Referenced by antlr.debug.ParserEventSupport.removeMessageListener(), antlr.debug.ParserEventSupport.removeNewLineListener(), antlr.debug.ParserEventSupport.removeParserMatchListener(), antlr.debug.ParserEventSupport.removeParserTokenListener(), antlr.debug.ParserEventSupport.removeSemanticPredicateListener(), antlr.debug.ParserEventSupport.removeSyntacticPredicateListener(), and antlr.debug.ParserEventSupport.removeTraceListener().
void antlr.debug.ParserEventSupport.removeMessageListener | ( | MessageListener | l | ) |
void antlr.debug.ParserEventSupport.removeNewLineListener | ( | NewLineListener | l | ) |
References antlr.debug.ParserEventSupport.removeDoneListener().
Referenced by antlr.debug.DebuggingCharScanner.removeNewLineListener().
void antlr.debug.ParserEventSupport.removeParserListener | ( | ParserListener | l | ) |
References antlr.debug.ParserEventSupport.removeMessageListener(), antlr.debug.ParserEventSupport.removeParserMatchListener(), antlr.debug.ParserEventSupport.removeParserTokenListener(), antlr.debug.ParserEventSupport.removeSemanticPredicateListener(), antlr.debug.ParserEventSupport.removeSyntacticPredicateListener(), and antlr.debug.ParserEventSupport.removeTraceListener().
Referenced by antlr.debug.LLkDebuggingParser.removeParserListener(), and antlr.debug.DebuggingCharScanner.removeParserListener().
void antlr.debug.ParserEventSupport.removeParserMatchListener | ( | ParserMatchListener | l | ) |
void antlr.debug.ParserEventSupport.removeParserTokenListener | ( | ParserTokenListener | l | ) |
void antlr.debug.ParserEventSupport.removeSemanticPredicateListener | ( | SemanticPredicateListener | l | ) |
void antlr.debug.ParserEventSupport.removeSyntacticPredicateListener | ( | SyntacticPredicateListener | l | ) |
void antlr.debug.ParserEventSupport.removeTraceListener | ( | TraceListener | l | ) |
final int antlr.debug.ParserEventSupport.CONSUME = 0 [static, protected] |
final int antlr.debug.ParserEventSupport.DONE_PARSING = 15 [static, protected] |
final int antlr.debug.ParserEventSupport.ENTER_RULE = 1 [static, protected] |
final int antlr.debug.ParserEventSupport.EXIT_RULE = 2 [static, protected] |
final int antlr.debug.ParserEventSupport.LA = 3 [static, protected] |
Referenced by antlr.debug.ParserEventSupport.fireEvent(), and antlr.debug.ParserEventSupport.fireLA().
final int antlr.debug.ParserEventSupport.MATCH = 4 [static, protected] |
Referenced by antlr.debug.ParserEventSupport.fireEvent(), and antlr.debug.ParserEventSupport.fireMatch().
final int antlr.debug.ParserEventSupport.MATCH_NOT = 5 [static, protected] |
final int antlr.debug.ParserEventSupport.MISMATCH = 6 [static, protected] |
final int antlr.debug.ParserEventSupport.MISMATCH_NOT = 7 [static, protected] |
final int antlr.debug.ParserEventSupport.NEW_LINE = 14 [static, protected] |
final int antlr.debug.ParserEventSupport.REPORT_ERROR = 8 [static, protected] |
final int antlr.debug.ParserEventSupport.REPORT_WARNING = 9 [static, protected] |
final int antlr.debug.ParserEventSupport.SEMPRED = 10 [static, protected] |
final int antlr.debug.ParserEventSupport.SYNPRED_FAILED = 11 [static, protected] |
final int antlr.debug.ParserEventSupport.SYNPRED_STARTED = 12 [static, protected] |
final int antlr.debug.ParserEventSupport.SYNPRED_SUCCEEDED = 13 [static, protected] |