Class JPropReadContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.javaprop.io.JPropReadContext
- Direct Known Subclasses:
JPropReadContext.ArrayContext, JPropReadContext.ObjectContext
public abstract class JPropReadContext
extends tools.jackson.core.TokenStreamContext
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 property 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 tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic JPropReadContextfinal Stringfinal JPropReadContextMethod called to figure out child or parent context when change is needed, as indicated by this context returning `null`.abstract tools.jackson.core.JsonTokenvoidoverrideCurrentName(String name) Methods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, 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 property 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 classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
overrideCurrentName
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
nextToken
public abstract tools.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
-