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 abstract boolean | |
| public abstract JrsValue | |
| public abstract JsonToken | |
| public final String | getCurrentName()
Implements abstract com. Method for accessing name associated with the current location. |
| public Object | getCurrentValue()
Overrides 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. |
| public final JrsValueCursor | getParent()
Implements abstract com. 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 | |
| public void | |
| public void | setCurrentValue(Object
Current value to assign to this context v)Overrides com. Method to call to pass value to be returned via |
| _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) | |
| currentHasChildren | back to summary |
|---|---|
| public abstract boolean currentHasChildren() | |
| currentNode | back to summary |
|---|---|
| public abstract JrsValue currentNode() | |
| endToken | back to summary |
|---|---|
| public abstract JsonToken endToken() | |
| 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 JrsValueCursor 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 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() | |
| 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 | |
| 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 com.
|
| 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 com.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract com.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() 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 boolean | currentHasChildren()
Implements abstract com.
|
| 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 com.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract com.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() Implements abstract com.
| |
| 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 com.
|
| public JrsValue | |
| public JsonToken | |
| public JsonToken | |
| public JsonToken | |
| public void |
| _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 com.
| |
| currentNode | back to summary |
|---|---|
| public JrsValue currentNode() Implements abstract com.
| |
| endToken | back to summary |
|---|---|
| public JsonToken endToken() Implements abstract com.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| nextValue | back to summary |
|---|---|
| public JsonToken nextValue() Implements abstract com.
| |
| overrideCurrentName | back to summary |
|---|---|
| public void overrideCurrentName(String name) Overrides com.
| |