JrsTreeTraversingParser to keep track
of current location within traversed JSON tree.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | JrsValueCursor.
Cursor used for traversing non-empty JSON Array nodes |
| protected static class | JrsValueCursor.
Cursor used for traversing non-empty JSON Object nodes |
| protected static class | JrsValueCursor.
Context matching root-level value nodes (i.e. anything other than JSON Object and Array). |
| Modifier and Type | Field and Description |
|---|---|
| protected String | _currentName
Current field name |
| protected Object | |
| protected final JrsValueCursor | _parent
Parent cursor of this cursor, if any; null for root cursors. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | assignCurrentValue(Object v)
Overrides tools. Method to call to pass value to be returned via |
| public abstract boolean | |
| public final String | currentName()
Implements abstract tools. Method for accessing name associated with the current location. |
| public abstract JrsValue | |
| public Object | currentValue()
Overrides tools. 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. |
| public abstract JsonToken | |
| public final JrsValueCursor | getParent()
Implements abstract tools. Accessor for finding parent context of this context; will return null for root context. |
| public final JrsValueCursor | 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 abstract JsonToken |
| _currentName | back to summary |
|---|---|
| protected String _currentName Current field name | |
| _currentValue | back to summary |
|---|---|
protected Object _currentValue
| |
| _parent | back to summary |
|---|---|
| protected final JrsValueCursor _parent Parent cursor of this cursor, if any; null for root cursors. | |
| JrsValueCursor | back to summary |
|---|---|
| public JrsValueCursor(int contextType, JrsValueCursor p) | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Overrides tools. Doc from tools. Method to call to pass value to be returned via
| |
| currentHasChildren | back to summary |
|---|---|
| public abstract boolean currentHasChildren() | |
| currentName | back to summary |
|---|---|
| public final String currentName() Implements abstract tools. Doc from tools. Method for accessing name associated with the current location.
Non-null for
| |
| currentNode | back to summary |
|---|---|
| public abstract JrsValue currentNode() | |
| currentValue | back to summary |
|---|---|
| public Object currentValue() Overrides tools. Doc from tools. 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.
| |
| endToken | back to summary |
|---|---|
| public abstract JsonToken endToken() | |
| getParent | back to summary |
|---|---|
| public final JrsValueCursor getParent() Implements abstract tools. Doc from tools. Accessor for finding parent context of this context; will return null for root context.
| |
| iterateChildren | back to summary |
|---|---|
| public final JrsValueCursor 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() | |
| nextValue | back to summary |
|---|---|
| public abstract JsonToken nextValue() | |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| protected JrsValue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | currentHasChildren()
Implements abstract tools.
|
| public JrsValue | |
| public JsonToken | |
| public JsonToken | |
| public JsonToken |
| _contents | back to summary |
|---|---|
| protected Iterator<JrsValue> _contents | |
| _currentNode | back to summary |
|---|---|
| protected JrsValue _currentNode | |
| ArrayCursor | back to summary |
|---|---|
| public ArrayCursor(JrsArray n, JrsValueCursor p) | |
| currentHasChildren | back to summary |
|---|---|
| public boolean currentHasChildren() Implements abstract tools.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract tools.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract tools.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract tools.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() Implements abstract tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| protected Map. | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | currentHasChildren()
Implements abstract tools.
|
| public JrsValue | |
| public JsonToken | |
| public JsonToken | |
| public JsonToken |
| _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(JrsValue n, JrsValueCursor p) | |
| currentHasChildren | back to summary |
|---|---|
| public boolean currentHasChildren() Implements abstract tools.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract tools.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract tools.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract tools.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() Implements abstract tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected JrsValue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | currentHasChildren()
Implements abstract tools.
|
| public JrsValue | |
| public JsonToken | |
| public JsonToken | |
| public JsonToken |
| _done | back to summary |
|---|---|
| protected boolean _done | |
| _node | back to summary |
|---|---|
| protected JrsValue _node | |
| RootCursor | back to summary |
|---|---|
| public RootCursor(JrsValue n, JrsValueCursor p) | |
| currentHasChildren | back to summary |
|---|---|
| public boolean currentHasChildren() Implements abstract tools.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract tools.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract tools.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract tools.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() Implements abstract tools.
| |