1 namespace antlr.debug 2 { 3 using System; 4 5 /// <summary> 6 /// Provides an abstract base for implementing <see cref="ParserMatchListener"/> subclasses. 7 /// </summary> 8 /// <remarks> 9 /// <param> 10 /// This abstract class is provided to make it easier to create <see cref="ParserMatchListener"/>s. 11 /// You should extend this base class rather than creating your own. 12 /// </param> 13 /// </remarks> 14 public abstract class ParserMatchListenerBase : ParserMatchListener 15 { 16 /// <summary> 17 /// Handle the "Done" event. 18 /// </summary> 19 /// <param name="source">Event source object</param> 20 /// <param name="e">Event data object</param> doneParsing(object source, TraceEventArgs e)21 public virtual void doneParsing(object source, TraceEventArgs e) 22 { 23 } 24 25 /// <summary> 26 /// Handle the "Match" event. 27 /// </summary> 28 /// <param name="source">Event source object</param> 29 /// <param name="e">Event data object</param> parserMatch(object source, MatchEventArgs e)30 public virtual void parserMatch(object source, MatchEventArgs e) 31 { 32 } 33 34 /// <summary> 35 /// Handle the "MatchNot" event. 36 /// </summary> 37 /// <param name="source">Event source object</param> 38 /// <param name="e">Event data object</param> parserMatchNot(object source, MatchEventArgs e)39 public virtual void parserMatchNot(object source, MatchEventArgs e) 40 { 41 } 42 43 /// <summary> 44 /// Handle the "MisMatch" event. 45 /// </summary> 46 /// <param name="source">Event source object</param> 47 /// <param name="e">Event data object</param> parserMismatch(object source, MatchEventArgs e)48 public virtual void parserMismatch(object source, MatchEventArgs e) 49 { 50 } 51 52 /// <summary> 53 /// Handle the "MisMatchNot" event. 54 /// </summary> 55 /// <param name="source">Event source object</param> 56 /// <param name="e">Event data object</param> parserMismatchNot(object source, MatchEventArgs e)57 public virtual void parserMismatchNot(object source, MatchEventArgs e) 58 { 59 } 60 refresh()61 public virtual void refresh() 62 { 63 } 64 } 65 }