public abstract class BaseJsonTree extends Object implements JsonTree
JsonTree| Modifier and Type | Field and Description |
|---|---|
protected JsonNode |
baseNode
The initial node
|
protected static JsonNodeFactory |
FACTORY |
protected JsonPointer |
pointer
The current JSON Pointer into the node.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseJsonTree(JsonNode baseNode)
Protected constructor
|
protected |
BaseJsonTree(JsonNode baseNode,
JsonPointer pointer)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
JsonNode |
getBaseNode()
Return the node this tree was created with
|
JsonNode |
getNode()
Get the node at the current path
|
JsonPointer |
getPointer()
Get the current path into the document
|
abstract String |
toString() |
protected static final JsonNodeFactory FACTORY
protected final JsonNode baseNode
protected final JsonPointer pointer
protected BaseJsonTree(JsonNode baseNode)
This is equivalent to calling BaseJsonTree(JsonNode, JsonPointer) with an empty pointer.
baseNode - the base nodeprotected BaseJsonTree(JsonNode baseNode, JsonPointer pointer)
baseNode - the base nodepointer - the pointer into the base nodepublic final JsonNode getBaseNode()
SimpleTreeNote: in current Jackson versions, this node is unfortunately mutable, so be careful...
getBaseNode in interface SimpleTreepublic final JsonPointer getPointer()
SimpleTreegetPointer in interface SimpleTreepublic final JsonNode getNode()
SimpleTreegetNode in interface SimpleTreeMissingNode if there is no matching
node at that pointer)