| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JrsValue | |
| public JsonToken | asToken()
Implements com. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Iterator | fieldNames()
Overrides com. Implements com. Method for accessing names of all fields for this node, if (and only if) this node is an Object node. |
| public Iterator | |
| public JrsValue | get(int
Index of the Array node element to access i)Implements abstract com. Implements com. Method for accessing value of the specified element of an array node. |
| public JrsValue | get(String
Name of the field (of Object node) to access name)Implements abstract com. Implements com. Method for accessing value of the specified field of an object node. |
| public int | |
| public boolean | isContainerNode()
Implements com. Method that returns true for container nodes: Arrays and Objects. |
| public boolean | isObject()
Overrides com. Implements com. Method that returns true if this node is an Object node, false otherwise. |
| public boolean | isValueNode()
Implements com. Method that returns true for all value nodes: ones that are not containers, and that do not represent "missing" nodes in the path. |
| public JrsValue | path(int
Index of the Array node element to access i)Implements abstract com. Implements com. Method for accessing value of the specified element of an array node. |
| public JrsValue | path(String
Name of the field (of Object node) to access name)Implements abstract com. Implements com. Method for accessing value of the specified field of an object node. |
| public int | size()
Implements com. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0. |
| protected void | write(JsonGenerator g, JacksonJrsTreeCodec codec)
Implements abstract com.
|
| _values | back to summary |
|---|---|
| private final Map<String, JrsValue> _values | |
| JrsObject | back to summary |
|---|---|
| public JrsObject() | |
| JrsObject | back to summary |
|---|---|
| public JrsObject(Map<String, JrsValue> values) | |
| _at | back to summary |
|---|---|
| protected JrsValue _at(JsonPointer ptr) Implements abstract com.
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements com. Doc from com. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fieldNames | back to summary |
|---|---|
| public Iterator Overrides com. Implements com. Doc from com. Method for accessing names of all fields for this node, if (and only if)
this node is an Object node. Number of field names accessible
will be | |
| fields | back to summary |
|---|---|
| public Iterator | |
| get | back to summary |
|---|---|
| public JrsValue get(int i) Implements abstract com. Implements com. Doc from com. Method for accessing value of the specified element of an array node. For other nodes, null is returned.
For array nodes, index specifies
exact location within array and allows for efficient iteration
over child elements (underlying storage is guaranteed to
be efficiently indexable, i.e. has random-access to elements).
If index is less than 0, or equal-or-greater than
| |
| get | back to summary |
|---|---|
| public JrsValue get(String name) Implements abstract com. Implements com. Doc from com. Method for accessing value of the specified field of an object node. If this node is not an object (or it does not have a value for specified field name), or if there is no field with such name, null is returned. Note handling of explicit null values may vary between implementations; some trees may retain explicit nulls, others not. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isContainerNode | back to summary |
|---|---|
| public boolean isContainerNode() Implements com. Doc from com. Method that returns true for container nodes: Arrays and Objects. Note one and only one of methods
| |
| isObject | back to summary |
|---|---|
| public boolean isObject() Overrides com. Implements com. Doc from com. Method that returns true if this node is an Object node, false
otherwise.
Note that if true is returned,
| |
| isValueNode | back to summary |
|---|---|
| public boolean isValueNode() Implements com. Doc from com. Method that returns true for all value nodes: ones that are not containers, and that do not represent "missing" nodes in the path. Such value nodes represent String, Number, Boolean and null values from JSON. Note one and only one of methods
| |
| path | back to summary |
|---|---|
| public JrsValue path(int i) Implements abstract com. Implements com. Doc from com. Method for accessing value of the specified element of
an array node.
For other nodes, a "missing node" (virtual node
for which
For array nodes, index specifies
exact location within array and allows for efficient iteration
over child elements (underlying storage is guaranteed to
be efficiently indexable, i.e. has random-access to elements).
If index is less than 0, or equal-or-greater than
| |
| path | back to summary |
|---|---|
| public JrsValue path(String name) Implements abstract com. Implements com. Doc from com. Method for accessing value of the specified field of
an object node.
For other nodes, a "missing node" (virtual node
for which | |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0.
| |
| write | back to summary |
|---|---|
| protected void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws IOException Implements abstract com.
| |