5 public class InputBufferEventArgs
: ANTLREventArgs
7 public InputBufferEventArgs()
11 public InputBufferEventArgs(int type
, char c
, int lookaheadAmount
)
13 setValues(type
, c
, lookaheadAmount
);
16 public virtual char Char
18 get { return this.c_; }
19 set { this.c_ = value; }
21 public virtual int LookaheadAmount
23 get { return this.lookaheadAmount_; }
24 set { this.lookaheadAmount_ = value; }
28 internal int lookaheadAmount_
; // amount of lookahead
30 public const int CONSUME
= 0;
31 public const int LA
= 1;
32 public const int MARK
= 2;
33 public const int REWIND
= 3;
36 /// <summary>This should NOT be called from anyone other than ParserEventSupport!
38 internal void setValues(int type
, char c
, int la
)
42 this.LookaheadAmount
= la
;
45 public override string ToString()
47 return "CharBufferEvent [" + (Type
== CONSUME
?"CONSUME, ":"LA, ") + Char
+ "," + LookaheadAmount
+ "]";