webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | List of all members
com.google.protobuf.TextFormatParseInfoTree Class Reference

Classes

class  Builder
 
List< TextFormatParseLocationgetLocations (final FieldDescriptor fieldDescriptor)
 
TextFormatParseLocation getLocation (final FieldDescriptor fieldDescriptor, int index)
 
List< TextFormatParseInfoTreegetNestedTrees (final FieldDescriptor fieldDescriptor)
 
TextFormatParseInfoTree getNestedTree (final FieldDescriptor fieldDescriptor, int index)
 
static Builder builder ()
 

Detailed Description

Data structure which is populated with the locations of each field value parsed from the text.

The locations of primary fields values are retrieved by

or

. The locations of sub message values are within nested

TextFormatParseInfoTree

s and are retrieve by {} or {code }.

The

TextFormatParseInfoTree

is created by a Builder.

Member Function Documentation

◆ builder()

static Builder com.google.protobuf.TextFormatParseInfoTree.builder ( )
inlinestatic

Create a builder for a

ParseInfoTree

.

Returns
the builder

◆ getLocation()

TextFormatParseLocation com.google.protobuf.TextFormatParseInfoTree.getLocation ( final FieldDescriptor  fieldDescriptor,
int  index 
)
inline

Get the location in the source of a field's value.

Returns the TextFormatParseLocation for index-th value of the field in the parsed text.

Parameters
fieldDescriptorthelink FieldDescriptor} of the desired field
indexthe index of the value.
Returns
the TextFormatParseLocation of the value
Exceptions
IllegalArgumentExceptionindex is out of range

◆ getLocations()

List<TextFormatParseLocation> com.google.protobuf.TextFormatParseInfoTree.getLocations ( final FieldDescriptor  fieldDescriptor)
inline

Retrieve all the locations of a field.

Parameters
fieldDescriptorthe thelink FieldDescriptor} of the desired field
Returns
a list of the locations of values of the field. If there are not values or the field doesn't exist, an empty list is returned.

◆ getNestedTree()

TextFormatParseInfoTree com.google.protobuf.TextFormatParseInfoTree.getNestedTree ( final FieldDescriptor  fieldDescriptor,
int  index 
)
inline

Returns the parse info tree for the given field, which must be a message type.

Parameters
fieldDescriptorthelink FieldDescriptor} of the desired sub message
indexthe index of message value.
Returns
the
ParseInfoTree
of the message value.
null
is returned if the field doesn't exist or the index is out of range.
Exceptions
IllegalArgumentExceptionif index is out of range

◆ getNestedTrees()

List<TextFormatParseInfoTree> com.google.protobuf.TextFormatParseInfoTree.getNestedTrees ( final FieldDescriptor  fieldDescriptor)
inline

Retrieve a list of all the location information trees for a sub message field.

Parameters
fieldDescriptorthelink FieldDescriptor} of the desired field
Returns
A list of TextFormatParseInfoTree

The documentation for this class was generated from the following file: