Class BaseTokenQueue
Abstract base implementation of a Token Queue.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseTokenQueue : ITokenQueue
Fields
| Edit this page View Source_lasttokentype
Type of Last Token dequeued.
Declaration
protected int _lasttokentype
Field Value
Type | Description |
---|---|
int |
_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 |
---|---|
bool |
Properties
| Edit this page View SourceCount
Abstract Definition of Interface Property.
Declaration
public abstract int Count { get; }
Property Value
Type | Description |
---|---|
int |
LastTokenType
Gets the Token Type of the last Token dequeued.
Declaration
public int LastTokenType { get; }
Property Value
Type | Description |
---|---|
int |
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.
Tokens
Abstract Definition of Interface Property.
Declaration
public abstract Queue<IToken> Tokens { get; }
Property Value
Type | Description |
---|---|
Queue<IToken> |
Tracing
Gets/Sets Tracing for the Token Queue.
Declaration
public bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page 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(int)
Abstract Definition of Interface Method.
Declaration
public abstract void InitialiseBuffer(int amount)
Parameters
Type | Name | Description |
---|---|---|
int | amount | Buffering Amount. |
Peek()
Abstract Definition of Interface Method.
Declaration
public abstract IToken Peek()
Returns
Type | Description |
---|---|
IToken |