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 Stringprotected Objectprotected final tools.jackson.core.TokenStreamContextprotected final tools.jackson.core.TokenStreamLocationFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for case where there is no real surrounding context: just create virtual ROOTprotectedTokenBufferReadContext(tools.jackson.core.TokenStreamContext base, tools.jackson.core.io.ContentReference contentRef) protectedTokenBufferReadContext(tools.jackson.core.TokenStreamContext base, tools.jackson.core.TokenStreamLocation startLoc) protectedTokenBufferReadContext(TokenBufferReadContext parent, int type, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic TokenBufferReadContextcreateRootContext(tools.jackson.core.TokenStreamContext origContext) tools.jackson.core.TokenStreamContextbooleanHelper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types.voidsetCurrentName(String name) voidMethods 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:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein 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:
currentNamein classtools.jackson.core.TokenStreamContext
-
hasCurrentName
public boolean hasCurrentName()- Overrides:
hasCurrentNamein classtools.jackson.core.TokenStreamContext
-
getParent
public tools.jackson.core.TokenStreamContext getParent()- Specified by:
getParentin classtools.jackson.core.TokenStreamContext
-
setCurrentName
-
updateForValue
public void updateForValue()
-