~ubuntu-branches/ubuntu/breezy/antlr/breezy

« back to all changes in this revision

Viewing changes to lib/csharp/src/antlr.debug/InputBufferEventArgs.cs

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-06-29 16:11:22 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050629161122-g81crc3z92p5xhsg
Tags: 2.7.5-6ubuntu4
Build depend on java-gcj-compat-dev, depend on java-gcj-compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
namespace antlr.debug
2
 
{
3
 
        using System;
4
 
        
5
 
        public class InputBufferEventArgs : ANTLREventArgs
6
 
        {
7
 
                public InputBufferEventArgs()
8
 
                {
9
 
                }
10
 
 
11
 
                public InputBufferEventArgs(int type, char c, int lookaheadAmount)
12
 
                {
13
 
                        setValues(type, c, lookaheadAmount);
14
 
                }
15
 
        
16
 
                public virtual char Char
17
 
                {
18
 
                        get     { return this.c_;       }
19
 
                        set     { this.c_ = value;      }
20
 
                }
21
 
                public virtual int LookaheadAmount
22
 
                {
23
 
                        get     { return this.lookaheadAmount_;         }
24
 
                        set     { this.lookaheadAmount_ = value;        }
25
 
                }
26
 
 
27
 
                internal char c_;
28
 
                internal int lookaheadAmount_; // amount of lookahead
29
 
 
30
 
                public const int CONSUME = 0;
31
 
                public const int LA = 1;
32
 
                public const int MARK = 2;
33
 
                public const int REWIND = 3;
34
 
                
35
 
                
36
 
                /// <summary>This should NOT be called from anyone other than ParserEventSupport! 
37
 
                /// </summary>
38
 
                internal void  setValues(int type, char c, int la)
39
 
                {
40
 
                        setValues(type);
41
 
                        this.Char       = c;
42
 
                        this.LookaheadAmount = la;
43
 
                }
44
 
 
45
 
                public override string ToString()
46
 
                {
47
 
                        return "CharBufferEvent [" + (Type == CONSUME?"CONSUME, ":"LA, ") + Char + "," + LookaheadAmount + "]";
48
 
                }
49
 
        }
 
1
namespace antlr.debug
 
2
{
 
3
        using System;
 
4
        
 
5
        public class InputBufferEventArgs : ANTLREventArgs
 
6
        {
 
7
                public InputBufferEventArgs()
 
8
                {
 
9
                }
 
10
 
 
11
                public InputBufferEventArgs(int type, char c, int lookaheadAmount)
 
12
                {
 
13
                        setValues(type, c, lookaheadAmount);
 
14
                }
 
15
        
 
16
                public virtual char Char
 
17
                {
 
18
                        get     { return this.c_;       }
 
19
                        set     { this.c_ = value;      }
 
20
                }
 
21
                public virtual int LookaheadAmount
 
22
                {
 
23
                        get     { return this.lookaheadAmount_;         }
 
24
                        set     { this.lookaheadAmount_ = value;        }
 
25
                }
 
26
 
 
27
                internal char c_;
 
28
                internal int lookaheadAmount_; // amount of lookahead
 
29
 
 
30
                public const int CONSUME = 0;
 
31
                public const int LA = 1;
 
32
                public const int MARK = 2;
 
33
                public const int REWIND = 3;
 
34
                
 
35
                
 
36
                /// <summary>This should NOT be called from anyone other than ParserEventSupport! 
 
37
                /// </summary>
 
38
                internal void  setValues(int type, char c, int la)
 
39
                {
 
40
                        setValues(type);
 
41
                        this.Char       = c;
 
42
                        this.LookaheadAmount = la;
 
43
                }
 
44
 
 
45
                public override string ToString()
 
46
                {
 
47
                        return "CharBufferEvent [" + (Type == CONSUME?"CONSUME, ":"LA, ") + Char + "," + LookaheadAmount + "]";
 
48
                }
 
49
        }
50
50
}
 
 
b'\\ No newline at end of file'