| Modifier and Type | Field and Description |
|---|---|
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final JsonNode | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonNode | _at(JsonPointer ptr)
Implements abstract tools. Helper method used by other methods for traversing the next step
of given path expression, and returning matching value node if any:
if no match, |
| public abstract JsonToken | asToken()
Redeclares tools. Implements abstract tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public ValueNode | deepCopy()
Implements abstract tools. All current value nodes are immutable, so we can just return them as is. |
| public final ObjectNode | findParent(String fieldName)
Implements abstract tools. Method for finding a JSON Object that contains specified field, within this node or its descendants. |
| public final List | findParents(String fieldName, List<JsonNode> foundSoFar)
Implements abstract tools.
|
| public final JsonNode | findValue(String fieldName)
Implements abstract tools. Method for finding the first JSON Object field with specified name in this node or its child nodes, and returning value it has. |
| public final List | findValues(String fieldName, List<JsonNode> foundSoFar)
Implements abstract tools.
|
| public final List | findValuesAsString(String fieldName, List<String> foundSoFar)
Implements abstract tools.
|
| public final JsonNode | get(int index)
Implements abstract tools. Implements tools. Method for accessing value of the specified element of an array node. |
| public final JsonNode | get(String fieldName)
Overrides tools. Implements tools. Method for accessing value of the specified field of an object node. |
| public final boolean | has(int index)
Overrides tools. Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false. |
| public final boolean | has(String fieldName)
Overrides tools. Method that allows checking whether this node is JSON Object node and contains value for specified property. |
| public final boolean | hasNonNull(int index)
Overrides tools. Method that is similar to |
| public final boolean | hasNonNull(String fieldName)
Overrides tools. Method that is similar to |
| public boolean | isEmpty()
Overrides tools. Convenience method that is functionally same as:
size() == 0
|
| public final JsonNode | path(int index)
Implements abstract tools. Implements tools. This method is similar to |
| public final JsonNode | path(String fieldName)
Implements abstract tools. Implements tools. This method is similar to |
| public void | serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)
Implements abstract tools. Implements tools. Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types. |
| BD_MAX_INTEGER | back to summary |
|---|---|
| protected static final BigDecimal BD_MAX_INTEGER | |
| BD_MAX_LONG | back to summary |
|---|---|
| protected static final BigDecimal BD_MAX_LONG | |
| BD_MAX_SHORT | back to summary |
|---|---|
| protected static final BigDecimal BD_MAX_SHORT | |
| BD_MIN_INTEGER | back to summary |
|---|---|
| protected static final BigDecimal BD_MIN_INTEGER | |
| BD_MIN_LONG | back to summary |
|---|---|
| protected static final BigDecimal BD_MIN_LONG | |
| BD_MIN_SHORT | back to summary |
|---|---|
| protected static final BigDecimal BD_MIN_SHORT | |
| BI_MAX_INTEGER | back to summary |
|---|---|
| protected static final BigInteger BI_MAX_INTEGER | |
| BI_MAX_LONG | back to summary |
|---|---|
| protected static final BigInteger BI_MAX_LONG | |
| BI_MAX_SHORT | back to summary |
|---|---|
| protected static final BigInteger BI_MAX_SHORT | |
| BI_MIN_INTEGER | back to summary |
|---|---|
| protected static final BigInteger BI_MIN_INTEGER | |
| BI_MIN_LONG | back to summary |
|---|---|
| protected static final BigInteger BI_MIN_LONG | |
| BI_MIN_SHORT | back to summary |
|---|---|
| protected static final BigInteger BI_MIN_SHORT | |
| MISSING | back to summary |
|---|---|
| protected static final JsonNode MISSING | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| ValueNode | back to summary |
|---|---|
| protected ValueNode() | |
| _at | back to summary |
|---|---|
| protected JsonNode _at(JsonPointer ptr) Implements abstract tools. Doc from tools. Helper method used by other methods for traversing the next step
of given path expression, and returning matching value node if any:
if no match,
| |
| asToken | back to summary |
|---|---|
| public abstract JsonToken asToken() Redeclares tools. Implements abstract tools. Doc from tools. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| deepCopy | back to summary |
|---|---|
| public ValueNode deepCopy() Implements abstract tools. All current value nodes are immutable, so we can just return them as is.
| |
| findParent | back to summary |
|---|---|
| public final ObjectNode findParent(String fieldName) Implements abstract tools. Doc from tools. Method for finding a JSON Object that contains specified field, within this node or its descendants. If no matching field is found in this node or its descendants, returns null.
| |
| findParents | back to summary |
|---|---|
| public final List Implements abstract tools.
| |
| findValue | back to summary |
|---|---|
| public final JsonNode findValue(String fieldName) Implements abstract tools. Doc from tools. Method for finding the first JSON Object field with specified name in this node or its child nodes, and returning value it has. If no matching field is found in this node or its descendants, returns null.
Note that traversal is done in document order (that is, order in which
nodes are iterated if using
| |
| findValues | back to summary |
|---|---|
| public final List Implements abstract tools.
| |
| findValuesAsString | back to summary |
|---|---|
| public final List Implements abstract tools.
| |
| get | back to summary |
|---|---|
| public final JsonNode get(int index) 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 always 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
Note if the element value has been explicitly set as
| |
| get | back to summary |
|---|---|
| public final JsonNode get(String fieldName) Overrides tools. Implements tools. Doc from tools. 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 if the property value has been explicitly set as
| |
| has | back to summary |
|---|---|
| public final boolean has(int index) Overrides tools. Doc from tools. Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false. Note array element indexes are 0-based. This method is equivalent to: node.get(index) != null Note this method will return
| |
| has | back to summary |
|---|---|
| public final boolean has(String fieldName) Overrides tools. Doc from tools. Method that allows checking whether this node is JSON Object node and contains value for specified property. If this is the case (including properties with explicit null values), returns true; otherwise returns false. This method is equivalent to: node.get(propertyName) != null(since return value of get() is node, not value node contains) Note when explicit
| |
| hasNonNull | back to summary |
|---|---|
| public final boolean hasNonNull(int index) Overrides tools. Doc from tools. Method that is similar to This method is equivalent to: node.get(index) != null && !node.get(index).isNull()
| |
| hasNonNull | back to summary |
|---|---|
| public final boolean hasNonNull(String fieldName) Overrides tools. Doc from tools. Method that is similar to This method is functionally equivalent to: node.get(propertyName) != null && !node.get(propertyName).isNull()
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides tools. Doc from tools. Convenience method that is functionally same as:
size() == 0
for all node types.
| |
| path | back to summary |
|---|---|
| public final JsonNode path(int index) Implements abstract tools. Implements tools. Doc from tools. This method is similar to
| |
| path | back to summary |
|---|---|
| public final JsonNode path(String fieldName) Implements abstract tools. Implements tools. Doc from tools. This method is similar to
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException Implements abstract tools. Implements tools. Doc from tools. Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types.
| |