Class TomlWriteContext
java.lang.Object
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.dataformat.toml.TomlWriteContext
final class TomlWriteContext
extends com.fasterxml.jackson.core.JsonStreamContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected TomlWriteContext
protected String
Name of the field of which value is to be parsed; only used for OBJECT contextsprotected Object
Value that is being serialized and caused this context to be created; typically a POJO or container type.protected boolean
Marker used to indicate that we just received a name, and now expect a value(package private) boolean
protected final TomlWriteContext
Parent context for this context; null for root context.Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
-
Constructor Summary
ConstructorsConstructorDescriptionTomlWriteContext
(int type, TomlWriteContext parent, Object currValue, int basePathLength) -
Method Summary
Modifier and TypeMethodDescriptioncreateChildArrayContext
(Object currValue, int basePathLength) createChildObjectContext
(Object currValue, int basePathLength) (package private) static TomlWriteContext
(package private) static TomlWriteContext
createRootContext
(int basePathLength) final TomlWriteContext
private void
void
final String
toString()
Overridden to provide developer JsonPointer representation of the context.void
boolean
boolean
Methods inherited from class com.fasterxml.jackson.core.JsonStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, getStartLocation, getTypeDesc, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
_parent
Parent context for this context; null for root context. -
_child
-
_currentValue
Value that is being serialized and caused this context to be created; typically a POJO or container type. -
_gotName
protected boolean _gotNameMarker used to indicate that we just received a name, and now expect a value -
_currentName
Name of the field of which value is to be parsed; only used for OBJECT contexts -
_basePathLength
protected int _basePathLength -
_inline
boolean _inline
-
-
Constructor Details
-
TomlWriteContext
TomlWriteContext(int type, TomlWriteContext parent, Object currValue, int basePathLength)
-
-
Method Details
-
reset
-
createRootContext
-
createRootContext
-
createChildArrayContext
-
createChildObjectContext
-
writeName
-
writeValue
public boolean writeValue() -
truncatePath
-
getParent
- Specified by:
getParent
in classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentName
in classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentValue
- Overrides:
getCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toString
in classcom.fasterxml.jackson.core.JsonStreamContext
-