Class JPropReadContext
java.lang.Object
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.dataformat.javaprop.io.JPropReadContext
- Direct Known Subclasses:
JPropReadContext.ArrayContext
,JPropReadContext.ObjectContext
public abstract class JPropReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
Helper class used to keep track of traversal over contents of
content tree expressed as
JPropNode
s.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class
Cursor used for traversing non-empty JSON Array nodesprotected static final class
Cursor used for traversing non-empty JSON Object nodes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
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
Current field nameprotected String
protected Object
Java-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser.protected JPropNode
We need to keep track of value nodes to construct further contexts.protected final JPropReadContext
Parent cursor of this cursor, if any; null for root cursors.protected int
Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JPropReadContext
final String
final JPropReadContext
Method called to figure out child or parent context when change is needed, as indicated by this context returning `null`.abstract com.fasterxml.jackson.core.JsonToken
void
overrideCurrentName
(String name) void
Methods inherited from class com.fasterxml.jackson.core.JsonStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, getStartLocation, getTypeDesc, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, toString, typeDesc
-
Field Details
-
_parent
Parent cursor of this cursor, if any; null for root cursors. -
_currentName
Current field name -
_currentText
-
_currentValue
Java-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser. -
_nextNode
We need to keep track of value nodes to construct further contexts. -
_branchText
Optional "this" value for cases where path branches have direct values; these are exposed before child values with bogus 'name' of empty String. -
_state
protected int _state
-
-
Constructor Details
-
JPropReadContext
-
-
Method Details
-
create
-
getParent
- Specified by:
getParent
in classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentName
in classcom.fasterxml.jackson.core.JsonStreamContext
-
overrideCurrentName
-
getCurrentValue
- Overrides:
getCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
nextToken
public abstract com.fasterxml.jackson.core.JsonToken nextToken() -
nextContext
Method called to figure out child or parent context when change is needed, as indicated by this context returning `null`. -
getCurrentText
-