java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.databind.util.TokenBufferReadContext
public class TokenBufferReadContext
extends tools.jackson.core.TokenStreamContext
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 tools.jackson.core.TokenStreamContext
protected final tools.jackson.core.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
(tools.jackson.core.TokenStreamContext base, tools.jackson.core.io.ContentReference contentRef) protected
TokenBufferReadContext
(tools.jackson.core.TokenStreamContext base, tools.jackson.core.TokenStreamLocation startLoc) protected
TokenBufferReadContext
(TokenBufferReadContext parent, int type, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static TokenBufferReadContext
createRootContext
(tools.jackson.core.TokenStreamContext origContext) tools.jackson.core.TokenStreamContext
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
protected final tools.jackson.core.TokenStreamContext _parent -
_startLocation
protected final tools.jackson.core.TokenStreamLocation _startLocation -
_currentName
-
_currentValue
-
-
Constructor Details
-
TokenBufferReadContext
protected TokenBufferReadContext(tools.jackson.core.TokenStreamContext base, tools.jackson.core.io.ContentReference contentRef) -
TokenBufferReadContext
protected TokenBufferReadContext(tools.jackson.core.TokenStreamContext base, tools.jackson.core.TokenStreamLocation startLoc) -
TokenBufferReadContext
protected TokenBufferReadContext()Constructor for case where there is no real surrounding context: just create virtual ROOT -
TokenBufferReadContext
-
-
Method Details
-
currentValue
- Overrides:
currentValue
in classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValue
in classtools.jackson.core.TokenStreamContext
-
createRootContext
public static TokenBufferReadContext createRootContext(tools.jackson.core.TokenStreamContext origContext) -
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 classtools.jackson.core.TokenStreamContext
-
hasCurrentName
public boolean hasCurrentName()- Overrides:
hasCurrentName
in classtools.jackson.core.TokenStreamContext
-
getParent
public tools.jackson.core.TokenStreamContext getParent()- Specified by:
getParent
in classtools.jackson.core.TokenStreamContext
-
setCurrentName
-
updateForValue
public void updateForValue()
-