C# Class IronJSON.IronJSONTokenStream

Afficher le fichier Open project: jabb/IronJSON Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IronJSONToken token ) : void

Adds a token to the stream.

AddNewLine ( ) : void

Used for more helpful error messages.

AtEnd ( ) : bool

Returns true if the position is at the end of the stream. The only token available is PreviousToken.

GetLineNumber ( ) : int

Get's the current line number.

IronJSONTokenStream ( ) : System

Reset ( ) : void

Resets the position to point back at the beginning.

ToNextToken ( ) : bool

Increments the stream position. Returns false when at the end of the stream.

Method Details

Add() public méthode

Adds a token to the stream.
public Add ( IronJSONToken token ) : void
token IronJSONToken /// A ///
Résultat void

AddNewLine() public méthode

Used for more helpful error messages.
public AddNewLine ( ) : void
Résultat void

AtEnd() public méthode

Returns true if the position is at the end of the stream. The only token available is PreviousToken.
public AtEnd ( ) : bool
Résultat bool

GetLineNumber() public méthode

Get's the current line number.
public GetLineNumber ( ) : int
Résultat int

IronJSONTokenStream() public méthode

public IronJSONTokenStream ( ) : System
Résultat System

Reset() public méthode

Resets the position to point back at the beginning.
public Reset ( ) : void
Résultat void

ToNextToken() public méthode

Increments the stream position. Returns false when at the end of the stream.
public ToNextToken ( ) : bool
Résultat bool