Click or drag to resize

ANTLRStringStream Class

A pretty quick CharStream that pulls all data from an array directly. Every method call counts in the lexer. Java's strings aren't very good so I'm avoiding.
Inheritance Hierarchy

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

The ANTLRStringStream type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCharPositionInLine
Public propertyCount
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).
Public propertyLine
Public propertySourceName
Top
Methods
  NameDescription
Public methodConsume
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
Public methodLT
Public methodMark
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRelease
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.
Public methodRewind
Public methodRewind(Int32)
Public methodSeek
consume() ahead until p==index; can't just set p=index as we must update line and charPositionInLine.
Public methodSubstring
Public methodToString (Overrides ObjectToString.)
Top
Fields
  NameDescription
Protected fielddata
The data being scanned
Protected fieldlastMarker
Track the last mark() call result value for use in rewind().
Protected fieldmarkDepth
tracks how deep mark() calls are nested
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().
Protected fieldn
How many characters are actually in the buffer
Public fieldname
What is name or source of this char stream?
Protected fieldp
0..n-1 index into string of next char
Top
See Also