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
JPropNodes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classCursor used for traversing non-empty JSON Array nodesprotected static final classCursor used for traversing non-empty JSON Object nodes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringOptional "this" value for cases where path branches have direct values; these are exposed before child values with bogus 'name' of empty String.protected StringCurrent field nameprotected Stringprotected ObjectJava-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser.protected JPropNodeWe need to keep track of value nodes to construct further contexts.protected final JPropReadContextParent cursor of this cursor, if any; null for root cursors.protected intFields 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 JPropReadContextfinal Stringfinal JPropReadContextMethod called to figure out child or parent context when change is needed, as indicated by this context returning `null`.abstract com.fasterxml.jackson.core.JsonTokenvoidoverrideCurrentName(String name) voidMethods 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:
getParentin classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonStreamContext
-
overrideCurrentName
-
getCurrentValue
- Overrides:
getCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValuein 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
-