public abstract class BaseJsonTree extends Object implements JsonTree
JsonTree
Modifier and Type | Field and Description |
---|---|
protected JsonNode |
baseNode
The initial node
|
protected JsonNode |
currentNode
The current node.
|
protected JsonPointer |
currentPointer
The current JSON Pointer into the node.
|
protected static JsonNodeFactory |
FACTORY |
protected Deque<JsonNode> |
nodeStack
The queue of nodes
|
protected Deque<JsonPointer> |
pointerStack
The queue of JSON Pointers
|
Modifier | Constructor and Description |
---|---|
protected |
BaseJsonTree(JsonNode baseNode)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object obj) |
JsonNode |
getCurrentNode()
Get the node at the current path
|
JsonPointer |
getCurrentPointer()
Get the current path into the document
|
abstract int |
hashCode() |
protected void |
popNode() |
protected void |
popPointer() |
protected void |
pushNode(JsonNode node) |
protected void |
pushPointer(JsonPointer pointer) |
abstract String |
toString() |
protected static final JsonNodeFactory FACTORY
protected final JsonNode baseNode
protected final Deque<JsonPointer> pointerStack
protected JsonPointer currentPointer
protected JsonNode currentNode
protected BaseJsonTree(JsonNode baseNode)
A newly constructed tree start at the root of the document.
baseNode
- the base nodepublic final JsonPointer getCurrentPointer()
JsonTree
getCurrentPointer
in interface JsonTree
public final JsonNode getCurrentNode()
JsonTree
getCurrentNode
in interface JsonTree
MissingNode
if there is no matching
node at that pointer)protected final void pushPointer(JsonPointer pointer)
protected final void pushNode(JsonNode node)
protected final void popPointer()
protected final void popNode()
Copyright © 2013. All Rights Reserved.