| Modifier and Type | Field and Description |
|---|---|
| protected final JsonNodeFactory | _nodeFactory
We will keep a reference to the Object (usually TreeMapper) that can construct instances of nodes to add to this container node. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract ObjectNode | _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Overrides tools.
|
| public final ArrayNode | arrayNode()
Implements tools. Factory method that constructs and returns an empty |
| public final ArrayNode | arrayNode(int
the initial capacity of the ArrayNode capacity)Implements tools. Factory method that constructs and returns an |
| 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 final BinaryNode | |
| public final BinaryNode | binaryNode(byte[] data, int offset, int length)
Implements tools.
|
| public final BooleanNode | |
| public abstract JsonNode | get(int index)
Redeclares tools. Implements abstract tools. Method for accessing value of the specified element of an array node. |
| public abstract JsonNode | get(String fieldName)
Redeclares tools. Overrides tools. Method for accessing value of the specified field of an object node. |
| public boolean | isContainer()
Overrides tools. Implements tools. Method that returns true for container nodes: Arrays and Objects. |
| public JsonNode | |
| public final NullNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ObjectNode | objectNode()
Implements tools. Factory method that constructs and returns an empty |
| public final ValueNode | |
| public final ValueNode | rawValueNode(RawValue value)
Implements tools. Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. |
| public abstract T | Returns: Container node itself (to allow method call chaining)Method for removing all children container has (if any) |
| public abstract T | |
| public T | Returns: Container node itself (to allow method call chaining)Method for removing |
| public abstract int | size()
Redeclares tools. Overrides 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 final StringNode | |
| public abstract Stream | valueStream()
Overrides tools. Returns a stream of all value nodes of this Node, iff
this node is an |
| _nodeFactory | back to summary |
|---|---|
| protected final JsonNodeFactory _nodeFactory We will keep a reference to the Object (usually TreeMapper) that can construct instances of nodes to add to this container node. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| ContainerNode | back to summary |
|---|---|
| protected ContainerNode(JsonNodeFactory nc) | |
| ContainerNode | back to summary |
|---|---|
| protected ContainerNode() | |
| _withObject | back to summary |
|---|---|
| protected abstract ObjectNode _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode. Overrides tools.
| |
| arrayNode | back to summary |
|---|---|
| public final ArrayNode arrayNode() Implements tools. Factory method that constructs and returns an empty
| |
| arrayNode | back to summary |
|---|---|
| public final ArrayNode arrayNode(int capacity) Implements tools. Factory method that constructs and returns an
| |
| 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
| |
| binaryNode | back to summary |
|---|---|
| public final BinaryNode binaryNode(byte[] data) Implements tools.
| |
| binaryNode | back to summary |
|---|---|
| public final BinaryNode binaryNode(byte[] data, int offset, int length) Implements tools.
| |
| booleanNode | back to summary |
|---|---|
| public final BooleanNode booleanNode(boolean v) Implements tools.
| |
| get | back to summary |
|---|---|
| public abstract JsonNode get(int index) Redeclares tools. Implements abstract 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 abstract JsonNode get(String fieldName) Redeclares tools. Overrides 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
| |
| isContainer | back to summary |
|---|---|
| public boolean isContainer() Overrides tools. Implements tools. Doc from tools. Method that returns true for container nodes: Arrays and Objects. Note one and only one of methods
| |
| missingNode | back to summary |
|---|---|
| public JsonNode missingNode() Implements tools.
| |
| nullNode | back to summary |
|---|---|
| public final NullNode nullNode() Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(byte v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(short v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(int v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(long v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(float v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(double v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(BigInteger v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(BigDecimal v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Byte v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Short v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Integer v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Long v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Float v) Implements tools.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Double v) Implements tools.
| |
| objectNode | back to summary |
|---|---|
| public final ObjectNode objectNode() Implements tools. Factory method that constructs and returns an empty
| |
| pojoNode | back to summary |
|---|---|
| public final ValueNode pojoNode(Object pojo) Implements tools.
| |
| rawValueNode | back to summary |
|---|---|
| public final ValueNode rawValueNode(RawValue value) Implements tools. Doc from tools. Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. This may be used, for example, to include fully serialized JSON sub-trees. Note that the concept may not work with all backends, and since no translation of any kinds is done it will not work when converting between data formats.
| |
| removeAll | back to summary |
|---|---|
| public abstract T removeAll() Method for removing all children container has (if any)
| |
| removeIf | back to summary |
|---|---|
| public abstract T removeIf(Predicate<? super JsonNode> predicate) Method for removing matching those children (value) nodes container has that match given predicate. | |
| removeNulls | back to summary |
|---|---|
| public T removeNulls() Method for removing
removeIf(JsonNode::isNull);
| |
| size | back to summary |
|---|---|
| public abstract int size() Redeclares tools. Overrides 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.
| |
| stringNode | back to summary |
|---|---|
| public final StringNode stringNode(String text) Implements tools.
| |
| valueStream | back to summary |
|---|---|
| public abstract Stream Overrides tools. Doc from tools. Returns a stream of all value nodes of this Node, iff
this node is an
| |