C# Class IronJSON.IronJSONTokenStream

Mostra file Open project: jabb/IronJSON Class Usage Examples

Public Methods

Method 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 method

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

AddNewLine() public method

Used for more helpful error messages.
public AddNewLine ( ) : void
return void

AtEnd() public method

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

GetLineNumber() public method

Get's the current line number.
public GetLineNumber ( ) : int
return int

IronJSONTokenStream() public method

public IronJSONTokenStream ( ) : System
return System

Reset() public method

Resets the position to point back at the beginning.
public Reset ( ) : void
return void

ToNextToken() public method

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