java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.databind.util.TokenBufferReadContext
Implementation of
TokenStreamContext
used by TokenBuffer
to link back to the original context to try to keep location information
consistent between source location and buffered content when it's re-read
from the buffer.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Object
protected final TokenStreamContext
protected final TokenStreamLocation
Fields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor for case where there is no real surrounding context: just create virtual ROOTprotected
TokenBufferReadContext
(TokenStreamContext base, ContentReference contentRef) protected
TokenBufferReadContext
(TokenStreamContext base, TokenStreamLocation startLoc) protected
TokenBufferReadContext
(TokenBufferReadContext parent, int type, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static TokenBufferReadContext
createRootContext
(TokenStreamContext origContext) boolean
Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types.void
setCurrentName
(String name) void
Methods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, toString, typeDesc
-
Field Details
-
_parent
-
_startLocation
-
_currentName
-
_currentValue
-
-
Constructor Details
-
TokenBufferReadContext
-
TokenBufferReadContext
-
TokenBufferReadContext
protected TokenBufferReadContext()Constructor for case where there is no real surrounding context: just create virtual ROOT -
TokenBufferReadContext
-
-
Method Details
-
currentValue
- Overrides:
currentValue
in classTokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValue
in classTokenStreamContext
-
createRootContext
-
createChildArrayContext
-
createChildObjectContext
-
parentOrCopy
Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types. -
currentName
- Specified by:
currentName
in classTokenStreamContext
-
hasCurrentName
public boolean hasCurrentName()- Overrides:
hasCurrentName
in classTokenStreamContext
-
getParent
- Specified by:
getParent
in classTokenStreamContext
-
setCurrentName
-
updateForValue
public void updateForValue()
-