public class JPropWriteContext
extends com.fasterxml.jackson.core.JsonStreamContext
Modifier and Type | Field and Description |
---|---|
protected int |
_basePathLength |
protected JPropWriteContext |
_child |
protected String |
_currentName
Name of the field of which value is to be parsed; only
used for OBJECT contexts
|
protected Object |
_currentValue
Value that is being serialized and caused this context to be created;
typically a POJO or container type.
|
protected boolean |
_gotName
Marker used to indicate that we just received a name, and
now expect a value
|
protected JPropWriteContext |
_parent
Parent context for this context; null for root context.
|
Modifier | Constructor and Description |
---|---|
protected |
JPropWriteContext(int type,
JPropWriteContext parent,
int basePathLength) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendDesc(StringBuilder sb) |
JPropWriteContext |
createChildArrayContext(int basePathLength) |
JPropWriteContext |
createChildObjectContext(int basePathLength) |
static JPropWriteContext |
createRootContext() |
static JPropWriteContext |
createRootContext(int basePathLength) |
String |
getCurrentName() |
Object |
getCurrentValue() |
JPropWriteContext |
getParent() |
void |
setCurrentValue(Object v) |
String |
toString()
Overridden to provide developer JsonPointer representation
of the context.
|
void |
truncatePath(StringBuilder sb) |
boolean |
writeFieldName(String name) |
boolean |
writeValue() |
protected final JPropWriteContext _parent
protected JPropWriteContext _child
protected Object _currentValue
protected boolean _gotName
protected String _currentName
protected int _basePathLength
protected JPropWriteContext(int type, JPropWriteContext parent, int basePathLength)
public static JPropWriteContext createRootContext()
public static JPropWriteContext createRootContext(int basePathLength)
public JPropWriteContext createChildArrayContext(int basePathLength)
public JPropWriteContext createChildObjectContext(int basePathLength)
public boolean writeFieldName(String name) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public boolean writeValue()
public void truncatePath(StringBuilder sb)
public final JPropWriteContext getParent()
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public String getCurrentName()
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
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 StringBuilder appendDesc(StringBuilder sb)
public final String toString()
toString
in class com.fasterxml.jackson.core.JsonStreamContext
Copyright © 2017 FasterXML. All rights reserved.