Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / debug / TraceEventArgs.cs
blobd5747177662b555b2d9722f4e5c39760174147cc
1 namespace antlr.debug
3 using System;
5 public class TraceEventArgs : GuessingEventArgs
7 public TraceEventArgs()
10 public TraceEventArgs(int type, int ruleNum, int guessing, int data)
12 setValues(type, ruleNum, guessing, data);
15 public virtual int Data
17 get { return this.data_; }
18 set { this.data_ = value; }
21 public virtual int RuleNum
23 get { return this.ruleNum_; }
24 set { this.ruleNum_ = value; }
27 private int ruleNum_;
28 private int data_;
30 public static int ENTER = 0;
31 public static int EXIT = 1;
32 public static int DONE_PARSING = 2;
35 /// <summary>This should NOT be called from anyone other than ParserEventSupport!
36 /// </summary>
37 internal void setValues(int type, int ruleNum, int guessing, int data)
39 base.setValues(type, guessing);
40 RuleNum = ruleNum;
41 Data = data;
44 public override string ToString()
46 return "ParserTraceEvent [" + (Type == ENTER?"enter,":"exit,") + RuleNum + "," + Guessing + "]";