goog.proto2.TextFormatSerializer.Parser |
Attempts to consume the value of the given field.
Arguments:
Returns: boolean
True on success, false otherwise.
|
code » | ||||
Attempts to consume a field under a message.
Arguments:
Returns: boolean
True on success, false otherwise.
|
code » | ||||
Consumes an IDENTIFIER token.
Returns: ?string
The string value or null on error.
|
code » | ||||
Attempts to consume the given message.
Arguments:
Returns: boolean
True on success, false otherwise.
|
code » | ||||
Attempts to consume a nested message.
Arguments:
Returns: boolean
True on success, false otherwise.
|
code » | ||||
Consumes a NUMBER token.
Returns: ?string
The string value or null on error.
|
code » | ||||
Consumes a STRING token.
Returns: ?string
The *deescaped* string value or null on error.
|
code » | ||||
Consumes a token of the given type.
Arguments:
Returns: ?string
The string value of the token or null on error.
|
code » | ||||
Attempts to consume the value of an unknown field. This method uses
heuristics to try to consume just the right tokens.
Returns: boolean
True on success, false otherwise.
|
code » | ||||
Consumes a token with the given value. If not found, reports an error.
|
code » | ||||
No description.
Returns: ?string
The parse error, if any.
|
code » | ||||
![]()
Attempts to parse the given field's value from the stream.
Arguments:
Returns: *
The field's value or null if none.
|
code » | ||||
No description.
Arguments:
Returns: boolean
True if the current token has the given type.
|
code » | ||||
No description.
|
code » | ||||
Parses the given data, filling the message as it goes.
Arguments:
Returns: boolean
True on success, false on failure. On failure, the
getError method can be called to get the reason for failure.
|
code » | ||||
![]()
Reports a parse error.
Arguments:
|
code » | ||||
Attempts to consume a token with the given string value.
|
code » |
Attempts to convert a string to a number.
|
code » | |
Parse NaN, positive infinity, or negative infinity from a string.
|
code » |