Interface ITokenQueue
Interface for implementing Token Queues which provide Bufferable wrappers to Tokenisers.
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRDF.dll
Syntax
public interface ITokenQueue
Properties
| Improve this Doc View SourceCount
Gets the number of Tokens in the Queue.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LastTokenType
Gets the Token Type of the last Token dequeued.
Declaration
int LastTokenType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tokeniser
Tokeniser that this is a Queue for.
Declaration
ITokeniser Tokeniser { get; set; }
Property Value
Type | Description |
---|---|
ITokeniser |
Tokens
Gets the underlying Queue of Tokens.
Declaration
Queue<IToken> Tokens { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<IToken> |
Tracing
Gets/Sets whether Tokeniser Tracing should be used.
Declaration
bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClear()
Clears the Token Queue.
Declaration
void Clear()
Dequeue()
Removes the first Token from the Queue.
Declaration
IToken Dequeue()
Returns
Type | Description |
---|---|
IToken |
Enqueue(IToken)
Adds a Token to the end of the Queue.
Declaration
void Enqueue(IToken t)
Parameters
Type | Name | Description |
---|---|---|
IToken | t | Token to add. |
InitialiseBuffer()
Initialises the Buffer.
Declaration
void InitialiseBuffer()
InitialiseBuffer(Int32)
Initialises the Buffer and sets the Buffering Level.
Declaration
void InitialiseBuffer(int amount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | amount | Buffering Amount. |
Peek()
Gets the first Token from the Queue without removing it.
Declaration
IToken Peek()
Returns
Type | Description |
---|---|
IToken |