Public Member Functions | Protected Member Functions | Static Protected Attributes

antlr.debug.ParserEventSupport Class Reference

List of all members.

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

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


Constructor & Destructor Documentation

antlr.debug.ParserEventSupport.ParserEventSupport ( Object  source  ) 

Member Function Documentation

void antlr.debug.ParserEventSupport.addDoneListener ( ListenerBase  l  ) 
void antlr.debug.ParserEventSupport.addMessageListener ( MessageListener  l  ) 
void antlr.debug.ParserEventSupport.addNewLineListener ( NewLineListener  l  ) 
void antlr.debug.ParserEventSupport.addParserListener ( ParserListener  l  ) 
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 
)
void antlr.debug.ParserEventSupport.fireEvents ( int  type,
Vector  listeners 
)
void antlr.debug.ParserEventSupport.fireExitRule ( int  ruleNum,
int  guessing,
int  data 
)
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  ) 
void antlr.debug.ParserEventSupport.fireSyntacticPredicateStarted ( int  guessing  ) 
void antlr.debug.ParserEventSupport.fireSyntacticPredicateSucceeded ( int  guessing  ) 
void antlr.debug.ParserEventSupport.refresh ( Vector  listeners  )  [protected]
void antlr.debug.ParserEventSupport.refreshListeners (  ) 
void antlr.debug.ParserEventSupport.removeDoneListener ( ListenerBase  l  ) 
void antlr.debug.ParserEventSupport.removeMessageListener ( MessageListener  l  ) 
void antlr.debug.ParserEventSupport.removeNewLineListener ( NewLineListener  l  ) 
void antlr.debug.ParserEventSupport.removeParserListener ( ParserListener  l  ) 
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  ) 

Member Data Documentation

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]
final int antlr.debug.ParserEventSupport.MATCH = 4 [static, protected]
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]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties