The locations of primary fields values are retrieved by getLocation or getLocations. The locations of sub message values are within nested TextFormatParseInfoTrees and are retrieve by getNestedTree or getNestedTrees.
The TextFormatParseInfoTree is created by a Builder.
| Modifier and Type | Class and Description |
|---|---|
| public static class | TextFormatParseInfoTree.Builder
Builder for a |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| private | TextFormatParseInfoTree(Map<Descriptors.
a map of fields to location in the source code locationsFromField,a map of fields to parse tree location information builders subtreeBuildersFromFieldConstruct a |
| Modifier and Type | Method and Description |
|---|---|
| public static TextFormatParseInfoTree. | |
| private static <T> T | |
| public TextFormatParseLocation | Returns: theTextFormatParseLocation of the valuethe @{link FieldDescriptor} of the desired field fieldDescriptor,the index of the value. index)Get the location in the source of a field's value. |
| public List | 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.the @{link FieldDescriptor} of the desired field fieldDescriptorRetrieve all the locations of a field. |
| public TextFormatParseInfoTree | Returns: theParseInfoTree of the message value. null is returned if the field
doesn't exist or the index is out of range.the @{link FieldDescriptor} of the desired sub message fieldDescriptor,the index of message value. index)Returns the parse info tree for the given field, which must be a message type. |
| public List | Returns: A list ofTextFormatParseInfoTreethe @{link FieldDescriptor} of the desired field fieldDescriptorRetrieve a list of all the location information trees for a sub message field. |
| locationsFromField | back to summary |
|---|---|
| private Map<Descriptors. | |
| subtreesFromField | back to summary |
|---|---|
| pack-priv Map<Descriptors. | |
| TextFormatParseInfoTree | back to summary |
|---|---|
| private TextFormatParseInfoTree(Map<Descriptors. Construct a
| |
| builder | back to summary |
|---|---|
| public static TextFormatParseInfoTree. Create a builder for a
| |
| getFromList | back to summary |
|---|---|
| private static <T> T getFromList(List<T> list, int index, Descriptors. | |
| getLocation | back to summary |
|---|---|
| public TextFormatParseLocation getLocation(final Descriptors. Get the location in the source of a field's value. Returns the
| |
| getLocations | back to summary |
|---|---|
| public List Retrieve all the locations of a field.
| |
| getNestedTree | back to summary |
|---|---|
| public TextFormatParseInfoTree getNestedTree(final Descriptors. Returns the parse info tree for the given field, which must be a message type.
| |
| getNestedTrees | back to summary |
|---|---|
| public List Retrieve a list of all the location information trees for a sub message field.
| |
TextFormatParseInfoTree.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TextFormatParseInfoTree | |
| public TextFormatParseInfoTree. | Returns: a new Builder for the sub messagethe field whose value is the submessage fieldDescriptorSet for a sub message. |
| public TextFormatParseInfoTree. | setLocation(final Descriptors.
the field fieldDescriptor,source code location information location)Record the starting location of a single value for a field. |
| locationsFromField | back to summary |
|---|---|
| private Map<Descriptors. | |
| subtreeBuildersFromField | back to summary |
|---|---|
| private Map<Descriptors. | |
| Builder | back to summary |
|---|---|
| private Builder() Create a root level {@ParseInfoTree } builder. | |
| build | back to summary |
|---|---|
| public TextFormatParseInfoTree build() Build the
| |
| getBuilderForSubMessageField | back to summary |
|---|---|
| public TextFormatParseInfoTree. Set for a sub message. A new builder is created for a sub message. The builder that is returned is a new builder.
The return is not the invoked
| |
| setLocation | back to summary |
|---|---|
| public TextFormatParseInfoTree. Record the starting location of a single value for a field.
| |