ANTLRStringStream Class |
Namespace: Stimulsoft.Data.Expressions.Antlr.Runtime
The ANTLRStringStream type exposes the following members.
| Name | Description | |
|---|---|---|
| ANTLRStringStream | Initializes a new instance of the ANTLRStringStream class | |
| ANTLRStringStream(String) | Copy data in string to a local char array | |
| ANTLRStringStream(Char, Int32) | This is the preferred constructor as no data is copied | |
| ANTLRStringStream(String, String) | Initializes a new instance of the ANTLRStringStream class | |
| ANTLRStringStream(Char, Int32, String) | Initializes a new instance of the ANTLRStringStream class |
| Name | Description | |
|---|---|---|
| CharPositionInLine | ||
| Count | ||
| Index |
Return the current input symbol index 0..n where n indicates the
last symbol has been read. The index is the index of char to
be returned from LA(1).
| |
| Line | ||
| SourceName |
| Name | Description | |
|---|---|---|
| Consume | ||
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| LA | ||
| LT | ||
| Mark | ||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Release | ||
| Reset |
Reset the stream so that it's in the same state it was
when the object was created *except* the data array is not
touched.
| |
| Rewind | ||
| Rewind(Int32) | ||
| Seek |
consume() ahead until p==index; can't just set p=index as we must
update line and charPositionInLine.
| |
| Substring | ||
| ToString | (Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| data | The data being scanned | |
| lastMarker | Track the last mark() call result value for use in rewind(). | |
| markDepth | tracks how deep mark() calls are nested | |
| markers |
A list of CharStreamState objects that tracks the stream state
values line, charPositionInLine, and p that can change as you
move through the input stream. Indexed from 1..markDepth.
A null is kept @ index 0. Create upon first call to mark().
| |
| n | How many characters are actually in the buffer | |
| name | What is name or source of this char stream? | |
| p | 0..n-1 index into string of next char |