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 intprotected TomlWriteContextprotected StringName of the field of which value is to be parsed; only used for OBJECT contextsprotected ObjectValue that is being serialized and caused this context to be created; typically a POJO or container type.protected booleanMarker used to indicate that we just received a name, and now expect a value(package private) booleanprotected final TomlWriteContextParent 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 TomlWriteContextcreateRootContext(int basePathLength) final TomlWriteContextprivate voidvoidfinal StringtoString()Overridden to provide developer JsonPointer representation of the context.voidbooleanbooleanMethods 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:
getParentin classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentValue
- Overrides:
getCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toStringin classcom.fasterxml.jackson.core.JsonStreamContext
-