Logo Search packages:      
Sourcecode: antlr version File versions

antlr::debug::ParserEventSupport Class Reference

List of all members.


Detailed Description

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...

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...

Definition at line 16 of file ParserEventSupport.java.


Public Member Functions

virtual void addDoneListener (Listener l)
void addDoneListener (ListenerBase l)
virtual void addMessageListener (MessageListener l)
void addMessageListener (MessageListener l)
void addNewLineListener (NewLineListener l)
virtual void addParserListener (ParserListener l)
void addParserListener (ParserListener l)
virtual void addParserMatchListener (ParserMatchListener l)
void addParserMatchListener (ParserMatchListener l)
virtual void addParserTokenListener (ParserTokenListener l)
void addParserTokenListener (ParserTokenListener l)
virtual void addSemanticPredicateListener (SemanticPredicateListener l)
void addSemanticPredicateListener (SemanticPredicateListener l)
virtual void addSyntacticPredicateListener (SyntacticPredicateListener l)
void addSyntacticPredicateListener (SyntacticPredicateListener l)
virtual void addTraceListener (TraceListener l)
void addTraceListener (TraceListener l)
virtual void checkController ()
virtual void fireConsume (int c)
void fireConsume (int value)
virtual void fireDoneParsing ()
void fireDoneParsing ()
virtual void fireEnterRule (int ruleNum, int guessing, int data)
void fireEnterRule (int ruleNum, int guessing, int data)
void fireEvent (int type, ListenerBase l)
void fireEvents (int type, Vector listeners)
virtual void fireExitRule (int ruleNum, int guessing, int data)
void fireExitRule (int ruleNum, int guessing, int data)
virtual void fireLA (int k, int la)
void fireLA (int k, int la)
virtual void fireMatch (string s, int guessing)
virtual void fireMatch (int n, string text, int guessing)
virtual void fireMatch (int c, BitSet b, string text, int guessing)
virtual void fireMatch (char c, string target, int guessing)
virtual void fireMatch (char c, BitSet b, int guessing)
virtual void fireMatch (char c, int guessing)
void fireMatch (String s, int guessing)
void fireMatch (int n, String text, int guessing)
void fireMatch (int value, BitSet b, String text, int guessing)
void fireMatch (char value, String target, int guessing)
void fireMatch (char value, BitSet b, int guessing)
void fireMatch (char c, int guessing)
virtual void fireMatchNot (int c, int n, string text, int guessing)
virtual void fireMatchNot (char c, char n, int guessing)
void fireMatchNot (int value, int n, String text, int guessing)
void fireMatchNot (char value, char n, int guessing)
virtual void fireMismatch (string s, string text, int guessing)
virtual void fireMismatch (int i, BitSet b, string text, int guessing)
virtual void fireMismatch (int i, int n, string text, int guessing)
virtual void fireMismatch (char c, string target, int guessing)
virtual void fireMismatch (char c, BitSet b, int guessing)
virtual void fireMismatch (char c, char n, int guessing)
void fireMismatch (String value, String text, int guessing)
void fireMismatch (int value, BitSet b, String text, int guessing)
void fireMismatch (int value, int n, String text, int guessing)
void fireMismatch (char value, String target, int guessing)
void fireMismatch (char value, BitSet b, int guessing)
void fireMismatch (char value, char n, int guessing)
virtual void fireMismatchNot (int i, int n, string text, int guessing)
virtual void fireMismatchNot (char v, char c, int guessing)
void fireMismatchNot (int value, int n, String text, int guessing)
void fireMismatchNot (char value, char c, int guessing)
void fireNewLine (int line)
virtual void fireReportError (string s)
virtual void fireReportError (System.Exception e)
void fireReportError (String s)
void fireReportError (Exception e)
virtual void fireReportWarning (string s)
void fireReportWarning (String s)
virtual bool fireSemanticPredicateEvaluated (int type, int condition, bool result, int guessing)
boolean fireSemanticPredicateEvaluated (int type, int condition, boolean result, int guessing)
virtual void fireSyntacticPredicateFailed (int guessing)
void fireSyntacticPredicateFailed (int guessing)
virtual void fireSyntacticPredicateStarted (int guessing)
void fireSyntacticPredicateStarted (int guessing)
virtual void fireSyntacticPredicateSucceeded (int guessing)
void fireSyntacticPredicateSucceeded (int guessing)
 ParserEventSupport (object source)
 ParserEventSupport (Object source)
virtual void refreshListeners ()
void refreshListeners ()
virtual void removeDoneListener (Listener l)
void removeDoneListener (ListenerBase l)
virtual void removeMessageListener (MessageListener l)
void removeMessageListener (MessageListener l)
void removeNewLineListener (NewLineListener l)
virtual void removeParserListener (ParserListener l)
void removeParserListener (ParserListener l)
virtual void removeParserMatchListener (ParserMatchListener l)
void removeParserMatchListener (ParserMatchListener l)
virtual void removeParserTokenListener (ParserTokenListener l)
void removeParserTokenListener (ParserTokenListener l)
virtual void removeSemanticPredicateListener (SemanticPredicateListener l)
void removeSemanticPredicateListener (SemanticPredicateListener l)
virtual void removeSyntacticPredicateListener (SyntacticPredicateListener l)
void removeSyntacticPredicateListener (SyntacticPredicateListener l)
virtual void removeTraceListener (TraceListener l)
void removeTraceListener (TraceListener l)

Protected Member Functions

void refresh (Vector listeners)

Static Protected Attributes

static final int CONSUME = 0
static final int DONE_PARSING = 15
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 NEW_LINE = 14
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

Private Attributes

ParserController controller
Hashtable doneListeners
Hashtable listeners
MatchEventArgs matchEvent
ParserMatchEvent matchEvent
Vector matchListeners
MessageEventArgs messageEvent
MessageEvent messageEvent
Vector messageListeners
NewLineEventArgs newLineEvent
NewLineEvent newLineEvent
Vector newLineListeners
int ruleDepth = 0
SemanticPredicateEventArgs semPredEvent
SemanticPredicateEvent semPredEvent
Vector semPredListeners
object source
Object source
SyntacticPredicateEventArgs synPredEvent
SyntacticPredicateEvent synPredEvent
Vector synPredListeners
TokenEventArgs tokenEvent
ParserTokenEvent tokenEvent
Vector tokenListeners
TraceEventArgs traceEvent
TraceEvent traceEvent
Vector traceListeners

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index