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; }
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!
37 internal void setValues(int type
, int ruleNum
, int guessing
, int data
)
39 base.setValues(type
, guessing
);
44 public override string ToString()
46 return "ParserTraceEvent [" + (Type
== ENTER
?"enter,":"exit,") + RuleNum
+ "," + Guessing
+ "]";