Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / debug / ParserTokenEventArgs.cs
blobdb4a60d718cf782259f54edbffc567e51e915c67
1 namespace antlr.debug
3 using System;
5 public class TokenEventArgs : ANTLREventArgs
7 public TokenEventArgs()
10 public TokenEventArgs(int type, int amount, int val)
12 setValues(type, amount, val);
15 public virtual int Amount
17 get { return amount; }
18 set { this.amount = value; }
21 public virtual int Value
23 get { return this.value_; }
24 set { this.value_ = value; }
27 private int value_;
28 private int amount;
30 public static int LA = 0;
31 public static int CONSUME = 1;
34 /// <summary>This should NOT be called from anyone other than ParserEventSupport!
35 /// </summary>
36 internal void setValues(int type, int amount, int val)
38 base.setValues(type);
39 this.Amount = amount;
40 this.Value = val;
43 public override string ToString()
45 if (Type == LA)
46 return "ParserTokenEvent [LA," + Amount + "," + Value + "]";
47 else
48 return "ParserTokenEvent [consume,1," + Value + "]";