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

| Edit this page View Source

Count

Gets the number of Tokens in the Queue.

Declaration
int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

LastTokenType

Gets the Token Type of the last Token dequeued.

Declaration
int LastTokenType { get; }
Property Value
Type Description
int
| Edit this page View Source

Tokeniser

Tokeniser that this is a Queue for.

Declaration
ITokeniser Tokeniser { get; set; }
Property Value
Type Description
ITokeniser
| Edit this page View Source

Tokens

Gets the underlying Queue of Tokens.

Declaration
Queue<IToken> Tokens { get; }
Property Value
Type Description
Queue<IToken>
| Edit this page View Source

Tracing

Gets/Sets whether Tokeniser Tracing should be used.

Declaration
bool Tracing { get; set; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Clear()

Clears the Token Queue.

Declaration
void Clear()
| Edit this page View Source

Dequeue()

Removes the first Token from the Queue.

Declaration
IToken Dequeue()
Returns
Type Description
IToken
| Edit this page 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.

| Edit this page View Source

InitialiseBuffer()

Initialises the Buffer.

Declaration
void InitialiseBuffer()
| Edit this page View Source

InitialiseBuffer(int)

Initialises the Buffer and sets the Buffering Level.

Declaration
void InitialiseBuffer(int amount)
Parameters
Type Name Description
int amount

Buffering Amount.

| Edit this page View Source

Peek()

Gets the first Token from the Queue without removing it.

Declaration
IToken Peek()
Returns
Type Description
IToken

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • Count
    • LastTokenType
    • Tokeniser
    • Tokens
    • Tracing
  • Methods
    • Clear()
    • Dequeue()
    • Enqueue(IToken)
    • InitialiseBuffer()
    • InitialiseBuffer(int)
    • Peek()
  • Extension Methods
Back to top Generated by DocFX