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 Stringprotected Objectprotected final TokenStreamContextprotected final 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(TokenStreamContext base, ContentReference contentRef) protectedTokenBufferReadContext(TokenStreamContext base, TokenStreamLocation startLoc) protectedTokenBufferReadContext(TokenBufferReadContext parent, int type, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic TokenBufferReadContextcreateRootContext(TokenStreamContext origContext) booleanHelper 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
-
_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:
currentValuein classTokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein 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:
currentNamein classTokenStreamContext
-
hasCurrentName
public boolean hasCurrentName()- Overrides:
hasCurrentNamein classTokenStreamContext
-
getParent
- Specified by:
getParentin classTokenStreamContext
-
setCurrentName
-
updateForValue
public void updateForValue()
-