C# Класс MongdioLogic.db.DocumentParser

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
lastDecode string
lastErrorIndex int

Открытые методы

Метод Описание
GetLastErrorIndex ( ) : int

On decoding, this function returns the position at which the parse failed (-1 = no error).

GetLastErrorSnippet ( ) : string

If a decoding error occurred, this function returns a piece of the JSON string at which the error took place. To ease debugging.

LastDecodeSuccessful ( ) : bool

On decoding, this function returns the position at which the parse failed (-1 = no error).

Parse ( string json ) : object

Parses the string json into a value

Защищенные методы

Метод Описание
EatWhitespace ( char json, int &index ) : void
GetLastIndexOfNumber ( char json, int index ) : int
GetLastIndexOfRegEx ( char json, int index ) : int
LookAhead ( char json, int index ) : int
NextToken ( char json, int &index ) : int
ParseArray ( char json, int &index ) : List
ParseNumber ( char json, int &index ) : object
ParseObject ( char json, int &index ) : Document
ParseString ( char json, int &index, bool allowNonQutedString ) : string
ParseValue ( char json, int &index, bool &success ) : object

Приватные методы

Метод Описание
ParseOID ( char json, int &index ) : object
ParseRegEx ( char json, int &index ) : MongoRegex
ParseStringOrDate ( char json, int &index ) : object

Описание методов

EatWhitespace() защищенный Метод

protected EatWhitespace ( char json, int &index ) : void
json char
index int
Результат void

GetLastErrorIndex() публичный Метод

On decoding, this function returns the position at which the parse failed (-1 = no error).
public GetLastErrorIndex ( ) : int
Результат int

GetLastErrorSnippet() публичный Метод

If a decoding error occurred, this function returns a piece of the JSON string at which the error took place. To ease debugging.
public GetLastErrorSnippet ( ) : string
Результат string

GetLastIndexOfNumber() защищенный Метод

protected GetLastIndexOfNumber ( char json, int index ) : int
json char
index int
Результат int

GetLastIndexOfRegEx() защищенный Метод

protected GetLastIndexOfRegEx ( char json, int index ) : int
json char
index int
Результат int

LastDecodeSuccessful() публичный Метод

On decoding, this function returns the position at which the parse failed (-1 = no error).
public LastDecodeSuccessful ( ) : bool
Результат bool

LookAhead() защищенный Метод

protected LookAhead ( char json, int index ) : int
json char
index int
Результат int

NextToken() защищенный Метод

protected NextToken ( char json, int &index ) : int
json char
index int
Результат int

Parse() публичный Метод

Parses the string json into a value
public Parse ( string json ) : object
json string A JSON string.
Результат object

ParseArray() защищенный Метод

protected ParseArray ( char json, int &index ) : List
json char
index int
Результат List

ParseNumber() защищенный Метод

protected ParseNumber ( char json, int &index ) : object
json char
index int
Результат object

ParseObject() защищенный Метод

protected ParseObject ( char json, int &index ) : Document
json char
index int
Результат MongoDB.Driver.Document

ParseString() защищенный Метод

protected ParseString ( char json, int &index, bool allowNonQutedString ) : string
json char
index int
allowNonQutedString bool
Результат string

ParseValue() защищенный Метод

protected ParseValue ( char json, int &index, bool &success ) : object
json char
index int
success bool
Результат object

Описание свойств

lastDecode защищенное свойство

protected string lastDecode
Результат string

lastErrorIndex защищенное свойство

On decoding, this value holds the position at which the parse failed (-1 = no error).
protected int lastErrorIndex
Результат int