JPropNodes.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | JPropReadContext.
Cursor used for traversing non-empty JSON Array nodes |
| protected static class | JPropReadContext.
Cursor used for traversing non-empty JSON Object nodes |
| Modifier and Type | Field and Description |
|---|---|
| protected String | _branchText
Optional "this" value for cases where path branches have direct values; these are exposed before child values with bogus 'name' of empty String. |
| protected String | _currentName
Current field name |
| protected String | |
| protected Object | _currentValue
Java-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser. |
| protected JPropNode | _nextNode
We need to keep track of value nodes to construct further contexts. |
| protected final JPropReadContext | _parent
Parent cursor of this cursor, if any; null for root cursors. |
| protected int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static JPropReadContext | |
| public final String | getCurrentName()
Implements abstract com. Method for accessing name associated with the current location. |
| public String | |
| 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 JPropReadContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| public JPropReadContext | nextContext()
Method called to figure out child or parent context when change is needed, as indicated by this context returning `null`. |
| 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 |
| _branchText | back to summary |
|---|---|
| protected String _branchText Optional "this" value for cases where path branches have direct values; these are exposed before child values with bogus 'name' of empty String. | |
| _currentName | back to summary |
|---|---|
| protected String _currentName Current field name | |
| _currentText | back to summary |
|---|---|
| protected String _currentText | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue Java-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser. | |
| _nextNode | back to summary |
|---|---|
| protected JPropNode _nextNode We need to keep track of value nodes to construct further contexts. | |
| _parent | back to summary |
|---|---|
| protected final JPropReadContext _parent Parent cursor of this cursor, if any; null for root cursors. | |
| _state | back to summary |
|---|---|
| protected int _state | |
| JPropReadContext | back to summary |
|---|---|
| public JPropReadContext(int contextType, JPropReadContext p, JPropNode node) | |
| create | back to summary |
|---|---|
| public static JPropReadContext create(JPropNode root) | |
| 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 | |
| getCurrentText | back to summary |
|---|---|
| public String getCurrentText() | |
| 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 JPropReadContext getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| nextContext | back to summary |
|---|---|
| public JPropReadContext nextContext() Method called to figure out child or parent context when change is needed, as indicated by this context returning `null`. | |
| 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 | |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonToken | nextToken()
Implements abstract com.
|
| _contents | back to summary |
|---|---|
| protected Iterator<JPropNode> _contents | |
| STATE_BRANCH_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_BRANCH_VALUE | |
| STATE_CONTENT_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_CONTENT_VALUE | |
| STATE_END | back to summary |
|---|---|
| pack-priv static final int STATE_END | |
| STATE_START | back to summary |
|---|---|
| pack-priv static final int STATE_START | |
| ArrayContext | back to summary |
|---|---|
| public ArrayContext(JPropReadContext p, JPropNode arrayNode) | |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | _contents
Iterator over child values. |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonToken | nextToken()
Implements abstract com.
|
| _contents | back to summary |
|---|---|
| protected Iterator<Map. Iterator over child values. | |
| STATE_BRANCH_KEY | back to summary |
|---|---|
| pack-priv static final int STATE_BRANCH_KEY | |
| STATE_BRANCH_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_BRANCH_VALUE | |
| STATE_CONTENT_KEY | back to summary |
|---|---|
| pack-priv static final int STATE_CONTENT_KEY | |
| STATE_CONTENT_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_CONTENT_VALUE | |
| STATE_END | back to summary |
|---|---|
| pack-priv static final int STATE_END | |
| STATE_START | back to summary |
|---|---|
| pack-priv static final int STATE_START | |
| ObjectContext | back to summary |
|---|---|
| public ObjectContext(JPropReadContext p, JPropNode objectNode) | |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() Implements abstract com.
| |