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
| Edit this page View SourceCount
Gets the number of Tokens in the Queue.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
LastTokenType
Gets the Token Type of the last Token dequeued.
Declaration
int LastTokenType { get; }
Property Value
Type | Description |
---|---|
int |
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 |
---|---|
Queue<IToken> |
Tracing
Gets/Sets whether Tokeniser Tracing should be used.
Declaration
bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page 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(int)
Initialises the Buffer and sets the Buffering Level.
Declaration
void InitialiseBuffer(int amount)
Parameters
Type | Name | Description |
---|---|---|
int | amount | Buffering Amount. |
Peek()
Gets the first Token from the Queue without removing it.
Declaration
IToken Peek()
Returns
Type | Description |
---|---|
IToken |