Show / Hide Table of Contents

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 Source

Count

Gets the number of Tokens in the Queue.
Declaration
int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

LastTokenType

Gets the Token Type of the last Token dequeued.
Declaration
int LastTokenType { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Tokeniser

Tokeniser that this is a Queue for.
Declaration
ITokeniser Tokeniser { get; set; }
Property Value
Type Description
ITokeniser
| Improve this Doc View Source

Tokens

Gets the underlying Queue of Tokens.
Declaration
Queue<IToken> Tokens { get; }
Property Value
Type Description
System.Collections.Generic.Queue<IToken>
| Improve this Doc View Source

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 Source

Clear()

Clears the Token Queue.
Declaration
void Clear()
| Improve this Doc View Source

Dequeue()

Removes the first Token from the Queue.
Declaration
IToken Dequeue()
Returns
Type Description
IToken
| Improve this Doc View Source

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.
| Improve this Doc View Source

InitialiseBuffer()

Initialises the Buffer.
Declaration
void InitialiseBuffer()
| Improve this Doc View Source

InitialiseBuffer(Int32)

Initialises the Buffer and sets the Buffering Level.
Declaration
void InitialiseBuffer(int amount)
Parameters
Type Name Description
System.Int32 amount Buffering Amount.
| Improve this Doc View Source

Peek()

Gets the first Token from the Queue without removing it.
Declaration
IToken Peek()
Returns
Type Description
IToken

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • Count
    • LastTokenType
    • Tokeniser
    • Tokens
    • Tracing
  • Methods
    • Clear()
    • Dequeue()
    • Enqueue(IToken)
    • InitialiseBuffer()
    • InitialiseBuffer(Int32)
    • Peek()
  • Extension Methods
Back to top Generated by DocFX