public final class CBORReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
JsonReadContext
to support features needed by CBOR format.Modifier and Type | Field and Description |
---|---|
protected CBORReadContext |
_child |
protected String |
_currentName |
protected Object |
_currentValue |
protected com.fasterxml.jackson.core.json.DupDetector |
_dups |
protected int |
_expEntryCount
For fixed-size Arrays, Objects, this indicates expected number of entries.
|
protected CBORReadContext |
_parent
Parent context for this context; null for root context.
|
Constructor and Description |
---|
CBORReadContext(CBORReadContext parent,
com.fasterxml.jackson.core.json.DupDetector dups,
int type,
int expEntryCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsBreakMarker() |
CBORReadContext |
createChildArrayContext(int expEntryCount) |
CBORReadContext |
createChildObjectContext(int expEntryCount) |
static CBORReadContext |
createRootContext(com.fasterxml.jackson.core.json.DupDetector dups) |
boolean |
expectMoreValues()
Method called to increment the current entry count (Object property, Array
element or Root value) for this context level
and then see if more entries are accepted.
|
String |
getCurrentName() |
Object |
getCurrentValue() |
int |
getExpectedLength() |
CBORReadContext |
getParent() |
int |
getRemainingExpectedLength() |
com.fasterxml.jackson.core.JsonLocation |
getStartLocation(Object rawSrc)
Deprecated.
|
boolean |
hasExpectedLength() |
protected void |
reset(int type,
int expEntryCount) |
void |
setCurrentName(String name) |
void |
setCurrentValue(Object v) |
com.fasterxml.jackson.core.JsonLocation |
startLocation(com.fasterxml.jackson.core.io.ContentReference srcRef) |
String |
toString()
Overridden to provide developer readable "JsonPath" representation
of the context.
|
protected final CBORReadContext _parent
protected final com.fasterxml.jackson.core.json.DupDetector _dups
protected int _expEntryCount
protected String _currentName
protected Object _currentValue
protected CBORReadContext _child
public CBORReadContext(CBORReadContext parent, com.fasterxml.jackson.core.json.DupDetector dups, int type, int expEntryCount)
protected void reset(int type, int expEntryCount)
public Object getCurrentValue()
getCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentValue(Object v)
setCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public static CBORReadContext createRootContext(com.fasterxml.jackson.core.json.DupDetector dups)
public CBORReadContext createChildArrayContext(int expEntryCount)
public CBORReadContext createChildObjectContext(int expEntryCount)
public String getCurrentName()
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public CBORReadContext getParent()
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public boolean hasExpectedLength()
public int getExpectedLength()
public int getRemainingExpectedLength()
public boolean acceptsBreakMarker()
public boolean expectMoreValues()
Note that since the entry count is updated this is a state-changing method.
public com.fasterxml.jackson.core.JsonLocation startLocation(com.fasterxml.jackson.core.io.ContentReference srcRef)
startLocation
in class com.fasterxml.jackson.core.JsonStreamContext
@Deprecated public com.fasterxml.jackson.core.JsonLocation getStartLocation(Object rawSrc)
getStartLocation
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentName(String name) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public String toString()
toString
in class com.fasterxml.jackson.core.JsonStreamContext
Copyright © 2021 FasterXML. All rights reserved.