Class BaseTokenQueue
Abstract base implementation of a Token Queue.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseTokenQueue : ITokenQueue
Fields
| Improve this Doc View Source_lasttokentype
Type of Last Token dequeued.
Declaration
protected int _lasttokentype
Field Value
Type | Description |
---|---|
System.Int32 |
_tokeniser
Tokeniser used to fill the Token Queue.
Declaration
protected ITokeniser _tokeniser
Field Value
Type | Description |
---|---|
ITokeniser |
_tracing
Variable indicating whether Tokeniser Tracing is enabled.
Declaration
protected bool _tracing
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceCount
Abstract Definition of Interface Property.
Declaration
public abstract int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LastTokenType
Gets the Token Type of the last Token dequeued.
Declaration
public int LastTokenType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tokeniser
Sets the Tokeniser used by the Queue.
Declaration
public ITokeniser Tokeniser { get; set; }
Property Value
Type | Description |
---|---|
ITokeniser |
Remarks
Setting the Tokeniser causes the Queue to clear itself.
|
Improve this Doc
View Source
Tokens
Abstract Definition of Interface Property.
Declaration
public abstract Queue<IToken> Tokens { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<IToken> |
Tracing
Gets/Sets Tracing for the Token Queue.
Declaration
public bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClear()
Abstract Definition of Interface Method.
Declaration
public abstract void Clear()
Dequeue()
Abstract Definition of Interface Method.
Declaration
public abstract IToken Dequeue()
Returns
Type | Description |
---|---|
IToken |
Enqueue(IToken)
Abstract Definition of Interface Method.
Declaration
public abstract void Enqueue(IToken t)
Parameters
Type | Name | Description |
---|---|---|
IToken | t |
InitialiseBuffer()
Abstract Definition of Interface Method.
Declaration
public abstract void InitialiseBuffer()
InitialiseBuffer(Int32)
Abstract Definition of Interface Method.
Declaration
public abstract void InitialiseBuffer(int amount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | amount | Buffering Amount. |
Peek()
Abstract Definition of Interface Method.
Declaration
public abstract IToken Peek()
Returns
Type | Description |
---|---|
IToken |