Click or drag to resize

ANTLRReaderStream Class

Vacuum all input from a Reader and then treat it like a StringStream. Manage the buffer manually to avoid unnecessary data copying.
Inheritance Hierarchy

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
[SerializableAttribute]
public class ANTLRReaderStream : ANTLRStringStream

The ANTLRReaderStream type exposes the following members.

Constructors
  NameDescription
Public methodANTLRReaderStream(TextReader)
Initializes a new instance of the ANTLRReaderStream class
Public methodANTLRReaderStream(TextReader, Int32)
Initializes a new instance of the ANTLRReaderStream class
Public methodANTLRReaderStream(TextReader, Int32, Int32)
Initializes a new instance of the ANTLRReaderStream class
Top
Properties
  NameDescription
Public propertyCharPositionInLine (Inherited from ANTLRStringStream.)
Public propertyCount (Inherited from ANTLRStringStream.)
Public propertyIndex
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).
(Inherited from ANTLRStringStream.)
Public propertyLine (Inherited from ANTLRStringStream.)
Public propertySourceName (Inherited from ANTLRStringStream.)
Top
Methods
  NameDescription
Public methodConsume (Inherited from ANTLRStringStream.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLA (Inherited from ANTLRStringStream.)
Public methodLoad
Public methodLT (Inherited from ANTLRStringStream.)
Public methodMark (Inherited from ANTLRStringStream.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRelease (Inherited from ANTLRStringStream.)
Public methodReset
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.
(Inherited from ANTLRStringStream.)
Public methodRewind (Inherited from ANTLRStringStream.)
Public methodRewind(Int32) (Inherited from ANTLRStringStream.)
Public methodSeek
consume() ahead until p==index; can't just set p=index as we must update line and charPositionInLine.
(Inherited from ANTLRStringStream.)
Public methodSubstring (Inherited from ANTLRStringStream.)
Public methodToString (Inherited from ANTLRStringStream.)
Top
Fields
  NameDescription
Protected fielddata
The data being scanned
(Inherited from ANTLRStringStream.)
Public fieldStatic memberInitialBufferSize
Protected fieldlastMarker
Track the last mark() call result value for use in rewind().
(Inherited from ANTLRStringStream.)
Protected fieldmarkDepth
tracks how deep mark() calls are nested
(Inherited from ANTLRStringStream.)
Protected fieldmarkers
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().
(Inherited from ANTLRStringStream.)
Protected fieldn
How many characters are actually in the buffer
(Inherited from ANTLRStringStream.)
Public fieldname
What is name or source of this char stream?
(Inherited from ANTLRStringStream.)
Protected fieldp
0..n-1 index into string of next char
(Inherited from ANTLRStringStream.)
Public fieldStatic memberReadBufferSize
Top
Remarks
If you need encoding, use ANTLRInputStream.
See Also