Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / debug / MessageEventArgs.cs
blob9d59f487bbcd84c31a4088dcdd5acf7f7f901044
1 namespace antlr.debug
3 using System;
5 public class MessageEventArgs : ANTLREventArgs
7 public MessageEventArgs()
10 public MessageEventArgs(int type, string text)
12 setValues(type, text);
15 public virtual string Text
17 get { return text_; }
18 set { this.text_ = value; }
22 private string text_;
24 public static int WARNING = 0;
25 public static int ERROR = 1;
28 /// <summary>This should NOT be called from anyone other than ParserEventSupport!
29 /// </summary>
30 internal void setValues(int type, string text)
32 setValues(type);
33 this.Text = text;
36 public override string ToString()
38 return "ParserMessageEvent [" + (Type == WARNING?"warning,":"error,") + Text + "]";