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 property 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 void | assignCurrentValue(Object v)
Overrides tools. Method to call to pass value to be returned via |
| public static JPropReadContext | |
| public final String | currentName()
Implements abstract tools. Method for accessing name associated with the current location. |
| 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 String | |
| public final JPropReadContext | getParent()
Implements abstract tools. 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 |
| _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 property 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) | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Overrides tools. Doc from tools. Method to call to pass value to be returned via
| |
| create | back to summary |
|---|---|
| public static JPropReadContext create(JPropNode root) | |
| 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
| |
| 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.
| |
| getCurrentText | back to summary |
|---|---|
| public String getCurrentText() | |
| getParent | back to summary |
|---|---|
| public final JPropReadContext getParent() Implements abstract tools. Doc from tools. 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) | |
| 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 |
| _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 tools.
| |
| 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 |
| _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 tools.
| |