public class TokenBufferReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
JsonStreamContext
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.Modifier and Type | Field and Description |
---|---|
protected String |
_currentName |
protected Object |
_currentValue |
protected com.fasterxml.jackson.core.JsonStreamContext |
_parent |
protected com.fasterxml.jackson.core.JsonLocation |
_startLocation |
Modifier | Constructor and Description |
---|---|
protected |
TokenBufferReadContext()
Constructor for case where there is no real surrounding context: just create
virtual ROOT
|
protected |
TokenBufferReadContext(com.fasterxml.jackson.core.JsonStreamContext base,
com.fasterxml.jackson.core.JsonLocation startLoc) |
protected |
TokenBufferReadContext(com.fasterxml.jackson.core.JsonStreamContext base,
Object srcRef) |
protected |
TokenBufferReadContext(TokenBufferReadContext parent,
int type,
int index) |
Modifier and Type | Method and Description |
---|---|
TokenBufferReadContext |
createChildArrayContext() |
TokenBufferReadContext |
createChildObjectContext() |
static TokenBufferReadContext |
createRootContext(com.fasterxml.jackson.core.JsonStreamContext origContext) |
String |
getCurrentName() |
Object |
getCurrentValue() |
com.fasterxml.jackson.core.JsonStreamContext |
getParent() |
boolean |
hasCurrentName() |
TokenBufferReadContext |
parentOrCopy()
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 |
setCurrentValue(Object v) |
void |
updateForValue() |
protected final com.fasterxml.jackson.core.JsonStreamContext _parent
protected final com.fasterxml.jackson.core.JsonLocation _startLocation
protected String _currentName
protected Object _currentValue
protected TokenBufferReadContext(com.fasterxml.jackson.core.JsonStreamContext base, Object srcRef)
protected TokenBufferReadContext(com.fasterxml.jackson.core.JsonStreamContext base, com.fasterxml.jackson.core.JsonLocation startLoc)
protected TokenBufferReadContext()
protected TokenBufferReadContext(TokenBufferReadContext parent, int type, int index)
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 TokenBufferReadContext createRootContext(com.fasterxml.jackson.core.JsonStreamContext origContext)
public TokenBufferReadContext createChildArrayContext()
public TokenBufferReadContext createChildObjectContext()
public TokenBufferReadContext parentOrCopy()
public String getCurrentName()
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public boolean hasCurrentName()
hasCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public com.fasterxml.jackson.core.JsonStreamContext getParent()
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentName(String name) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public void updateForValue()
Copyright © 2008–2020 FasterXML. All rights reserved.