Top Fields Constructors Methods
tools.jackson.dataformat.toml

pack-priv final Class TomlWriteContext

extends TokenStreamContext
Class Inheritance
Imports
tools.jackson.core.TokenStreamContext

Field Summary

Modifier and TypeField and Description
protected int
protected TomlWriteContext
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

pack-priv boolean
protected final TomlWriteContext
_parent

Parent context for this context; null for root context.

Inherited from tools.jackson.core.TokenStreamContext:
_index_nestingDepth_typeTYPE_ARRAYTYPE_OBJECTTYPE_ROOT

Constructor Summary

AccessConstructor and Description
pack-priv
TomlWriteContext(int type, TomlWriteContext parent, Object currValue, int basePathLength)

Method Summary

Modifier and TypeMethod and Description
public StringBuilder
public void
assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

public TomlWriteContext
createChildArrayContext(Object currValue, int basePathLength)

public TomlWriteContext
createChildObjectContext(Object currValue, int basePathLength)

pack-priv static TomlWriteContext
pack-priv static TomlWriteContext
createRootContext(int basePathLength)

public String
currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location.

public Object
currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy.

public final TomlWriteContext
getParent()

Implements abstract tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

private void
reset(int type, Object currValue, int basePathLength)

public final String
toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer JsonPointer representation of the context.

public void
public boolean
public boolean
Inherited from tools.jackson.core.TokenStreamContext:
getCurrentIndexgetEntryCountgetNestingDepthhasCurrentIndexhasCurrentNamehasPathSegmentinArrayinObjectinRootpathAsPointerpathAsPointerstartLocationtypeDesc

Field Detail

_basePathLengthback to summary
protected int _basePathLength
_childback to summary
protected TomlWriteContext _child
_currentNameback to summary
protected String _currentName

Name of the field of which value is to be parsed; only used for OBJECT contexts

_currentValueback to summary
protected Object _currentValue

Value that is being serialized and caused this context to be created; typically a POJO or container type.

_gotNameback to summary
protected boolean _gotName

Marker used to indicate that we just received a name, and now expect a value

_inlineback to summary
pack-priv boolean _inline
_parentback to summary
protected final TomlWriteContext _parent

Parent context for this context; null for root context.

Constructor Detail

TomlWriteContextback to summary
pack-priv TomlWriteContext(int type, TomlWriteContext parent, Object currValue, int basePathLength)

Method Detail

appendDescback to summary
public StringBuilder appendDesc(StringBuilder sb)
assignCurrentValueback to summary
public void assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Doc from tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

Annotations
@Override
createChildArrayContextback to summary
public TomlWriteContext createChildArrayContext(Object currValue, int basePathLength)
createChildObjectContextback to summary
public TomlWriteContext createChildObjectContext(Object currValue, int basePathLength)
createRootContextback to summary
pack-priv static TomlWriteContext createRootContext()
createRootContextback to summary
pack-priv static TomlWriteContext createRootContext(int basePathLength)
currentNameback to summary
public String currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Doc from tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location. Non-null for PROPERTY_NAME and value events that directly follow Property names; null for root level and array values.

Annotations
@Override
currentValueback to summary
public Object currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

Doc from tools.jackson.core.TokenStreamContext.currentValue.

Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy.

Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding.

Annotations
@Override
getParentback to summary
public final TomlWriteContext getParent()

Implements abstract tools.jackson.core.TokenStreamContext.getParent.

Doc from tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

Annotations
@Override
resetback to summary
private void reset(int type, Object currValue, int basePathLength)
toStringback to summary
public final String toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer JsonPointer representation of the context.

Annotations
@Override
truncatePathback to summary
public void truncatePath(StringBuilder sb)
writeNameback to summary
public boolean writeName(String name)
writeValueback to summary
public boolean writeValue()