proto2.TextFormatSerializer.Tokenizer_ Extends
Helper class for tokenizing the text format.

Inheritance

Constructor

goog.proto2.TextFormatSerializer.Tokenizer_(dataopt_ignoreWhitespace)

Parameters

data : string
The string data to tokenize.
opt_ignoreWhitespace : boolean=
If true, whitespace tokens will not be reported by the tokenizer.

Instance Methods

Public Protected Private
getCurrent() goog.proto2.TextFormatSerializer.Tokenizer_.Token
No description.
Returns: goog.proto2.TextFormatSerializer.Tokenizer_.Token  The current token.
code »
next() boolean
Advances to the next token.
Returns: boolean  True if a valid token was found, false if the end was reached or no valid token was found.
code »
nextInternal_() boolean
Internal method for determining the next token.
Returns: boolean  True if a next token was found, false otherwise.
code »

Instance Properties

currentData_ :
The data string starting at the current index.
Code »
current_ :
The current token type.
Code »
data_ :
The data being tokenized.
Code »
ignoreWhitespace_ :
Whether to skip whitespace tokens on output.
Code »
index_ :
The current index in the data.
Code »

Static Properties

goog.proto2.TextFormatSerializer.Tokenizer_.Token :
No description.
Code »

Enumerations

goog.proto2.TextFormatSerializer.Tokenizer_.TokenTypes :
An enumeration of all the token types.
Constants:
CLOSE_BRACE
No description.
CLOSE_LIST
No description.
CLOSE_TAG
No description.
COLON
No description.
COMMA
No description.
COMMENT
No description.
END
No description.
IDENTIFIER
No description.
NUMBER
No description.
OPEN_BRACE
No description.
OPEN_LIST
No description.
OPEN_TAG
No description.
SEMI
No description.
STRING
No description.
WHITESPACE
No description.
Code »

Package proto2.TextFormatSerializer

Package Reference