Class TomlWriteContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.toml.TomlWriteContext
final class TomlWriteContext
extends tools.jackson.core.TokenStreamContext
-
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 tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsConstructorDescriptionTomlWriteContext(int type, TomlWriteContext parent, Object currValue, int basePathLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateChildArrayContext(Object currValue, int basePathLength) createChildObjectContext(Object currValue, int basePathLength) (package private) static TomlWriteContext(package private) static TomlWriteContextcreateRootContext(int basePathLength) final TomlWriteContextprivate voidfinal StringtoString()Overridden to provide developer JsonPointer representation of the context.voidbooleanbooleanMethods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, 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 classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toStringin classtools.jackson.core.TokenStreamContext
-