C# 클래스 MongdioLogic.db.DocumentParser

파일 보기 프로젝트 열기: okku/Mongdio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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