TreeTraversingParser to keep track
of current location within traversed JSON tree.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class | |
| protected static class | NodeCursor.RootCursor
Context for all root-level value nodes (including Arrays and Objects): only context for scalar values. |
| Modifier and Type | Field and Description |
|---|---|
| protected String | _currentName
Current field name |
| protected Object | |
| protected final NodeCursor | _parent
Parent cursor of this cursor, if any; null for root cursors. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract JsonNode | |
| public final String | getCurrentName()
Implements abstract com. |
| public Object | getCurrentValue()
Overrides com. |
| public final NodeCursor | getParent()
Implements abstract com. |
| public final NodeCursor | iterateChildren()
Method called to create a new context for iterating all contents of the current structured value (JSON array or object) |
| public abstract JsonToken | |
| public void | |
| public void | setCurrentValue(Object
Current value to assign to this context v)Overrides com. getCurrentValue; typically
called indirectly through JsonParser#setCurrentValue
or JsonGenerator#setCurrentValue).
|
| public abstract NodeCursor | |
| public abstract NodeCursor |
| _currentName | back to summary |
|---|---|
| protected String _currentName Current field name | |
| _currentValue | back to summary |
|---|---|
protected Object _currentValue
| |
| _parent | back to summary |
|---|---|
| protected final NodeCursor _parent Parent cursor of this cursor, if any; null for root cursors. | |
| NodeCursor | back to summary |
|---|---|
| public NodeCursor(int contextType, NodeCursor p) | |
| currentNode | back to summary |
|---|---|
| public abstract JsonNode currentNode() | |
| getCurrentName | back to summary |
|---|---|
| public final String getCurrentName() Implements abstract com. Doc from com. Method for accessing name associated with the current location.
Non-null for | |
| getCurrentValue | back to summary |
|---|---|
| public Object getCurrentValue() Overrides com. Doc from com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding. | |
| getParent | back to summary |
|---|---|
| public final NodeCursor getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| iterateChildren | back to summary |
|---|---|
| public final NodeCursor iterateChildren() Method called to create a new context for iterating all contents of the current structured value (JSON array or object) | |
| nextToken | back to summary |
|---|---|
| public abstract JsonToken nextToken() | |
| overrideCurrentName | back to summary |
|---|---|
public void overrideCurrentName(String name)
| |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| startArray | back to summary |
|---|---|
| public abstract NodeCursor startArray() | |
| startObject | back to summary |
|---|---|
| public abstract NodeCursor startObject() | |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| protected JsonNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonNode | |
| public JsonToken | |
| public NodeCursor | |
| public NodeCursor |
| _contents | back to summary |
|---|---|
| protected Iterator<JsonNode> _contents | |
| _currentElement | back to summary |
|---|---|
| protected JsonNode _currentElement | |
| ArrayCursor | back to summary |
|---|---|
| public ArrayCursor(JsonNode n, NodeCursor p) | |
| currentNode | back to summary |
|---|---|
| public JsonNode currentNode() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| startArray | back to summary |
|---|---|
| public NodeCursor startArray() Implements abstract com.
| |
| startObject | back to summary |
|---|---|
| public NodeCursor startObject() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| protected Map. | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonNode | |
| public JsonToken | |
| public NodeCursor | |
| public NodeCursor |
| _contents | back to summary |
|---|---|
| protected Iterator<Map. | |
| _current | back to summary |
|---|---|
| protected Map. | |
| _needEntry | back to summary |
|---|---|
| protected boolean _needEntry | |
| ObjectCursor | back to summary |
|---|---|
| public ObjectCursor(JsonNode n, NodeCursor p) | |
| currentNode | back to summary |
|---|---|
| public JsonNode currentNode() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| startArray | back to summary |
|---|---|
| public NodeCursor startArray() Implements abstract com.
| |
| startObject | back to summary |
|---|---|
| public NodeCursor startObject() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected JsonNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonNode | |
| public JsonToken | |
| public void | |
| public NodeCursor | |
| public NodeCursor |
| _done | back to summary |
|---|---|
| protected boolean _done | |
| _node | back to summary |
|---|---|
| protected JsonNode _node | |
| RootCursor | back to summary |
|---|---|
| public RootCursor(JsonNode n, NodeCursor p) | |
| currentNode | back to summary |
|---|---|
| public JsonNode currentNode() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| overrideCurrentName | back to summary |
|---|---|
| public void overrideCurrentName(String name) Overrides com.
| |
| startArray | back to summary |
|---|---|
| public NodeCursor startArray() Implements abstract com.
| |
| startObject | back to summary |
|---|---|
| public NodeCursor startObject() Implements abstract com.
| |