| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final JrsMissing |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JrsValue | |
| public JsonToken | asToken()
Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public JrsValue | get(String s)
Implements abstract tools. Implements tools. Method for accessing value of the specified property of an Object node. |
| public JrsValue | get(int i)
Implements abstract tools. Implements tools. Method for accessing value of the specified element of an array node. |
| public int | |
| public static final JrsMissing | |
| public boolean | isContainer()
Implements tools. Method that returns true for container nodes: Arrays and Objects. |
| public boolean | isMissingNode()
Overrides tools. Implements tools. Method that returns true for "virtual" nodes which represent missing entries constructed by path accessor methods when there is no actual node matching given criteria. |
| public boolean | isValueNode()
Implements tools. 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(String s)
Implements abstract tools. Implements tools. Method for accessing value of the specified property of an Object node. |
| public JrsValue | path(int i)
Implements abstract tools. Implements tools. Method for accessing value of the specified element of an array node. |
| public int | size()
Implements tools. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of properties, and for all other nodes 0. |
| public String | |
| protected void | write(JsonGenerator g, JacksonJrsTreeCodec codec)
Implements abstract tools.
|
| instance | back to summary |
|---|---|
| pack-priv static final JrsMissing instance | |
| JrsMissing | back to summary |
|---|---|
| public JrsMissing() | |
| _at | back to summary |
|---|---|
| protected JrsValue _at(JsonPointer ptr) Implements abstract tools.
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements tools. Doc from tools. 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.
| |
| get | back to summary |
|---|---|
| public JrsValue get(String s) Implements abstract tools. Implements tools. Doc from tools. Method for accessing value of the specified property of
an Object node. If this node is not an Object (or it
does not have a value for specified property) Note handling of explicit null values may vary between implementations; some trees may retain explicit nulls, others not.
| |
| get | back to summary |
|---|---|
| public JrsValue get(int i) Implements abstract tools. Implements tools. Doc from tools. 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
| |
| 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
| |
| instance | back to summary |
|---|---|
| public static final JrsMissing instance() | |
| isContainer | back to summary |
|---|---|
| public boolean isContainer() Implements tools. Doc from tools. Method that returns true for container nodes: Arrays and Objects. Note one and only one of methods
| |
| isMissingNode | back to summary |
|---|---|
| public boolean isMissingNode() Overrides tools. Implements tools. Doc from tools. Method that returns true for "virtual" nodes which represent missing entries constructed by path accessor methods when there is no actual node matching given criteria. Note one and only one of methods
| |
| isValueNode | back to summary |
|---|---|
| public boolean isValueNode() Implements tools. Doc from tools. 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(String s) Implements abstract tools. Implements tools. Doc from tools. Method for accessing value of the specified property of
an Object node.
For other nodes, a "missing node" (virtual node
for which
| |
| path | back to summary |
|---|---|
| public JrsValue path(int i) Implements abstract tools. Implements tools. Doc from tools. 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
| |
| size | back to summary |
|---|---|
| public int size() Implements tools. Doc from tools. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of properties, and for all other nodes 0.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| write | back to summary |
|---|---|
| protected void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws JacksonException Implements abstract tools.
| |