Class JPropWriteContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.javaprop.io.JPropWriteContext
public class JPropWriteContext
extends tools.jackson.core.TokenStreamContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected JPropWriteContextprotected 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 valueprotected final JPropWriteContextParent 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
ConstructorsModifierConstructorDescriptionprotectedJPropWriteContext(int type, JPropWriteContext parent, Object currValue, int basePathLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateChildArrayContext(Object currValue, int basePathLength) createChildObjectContext(Object currValue, int basePathLength) static JPropWriteContextstatic JPropWriteContextcreateRootContext(int basePathLength) final JPropWriteContextprivate 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
-
-
Constructor Details
-
JPropWriteContext
protected JPropWriteContext(int type, JPropWriteContext 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
-