Class TreeBuildingGenerator.TreeWriteContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.databind.node.TreeBuildingGenerator.TreeWriteContext
- Direct Known Subclasses:
TreeBuildingGenerator.ArrayContext, TreeBuildingGenerator.ObjectContext, TreeBuildingGenerator.RootContext
- Enclosing class:
TreeBuildingGenerator
abstract static class TreeBuildingGenerator.TreeWriteContext
extends tools.jackson.core.TokenStreamContext
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected final JsonNodeFactoryprotected final TreeBuildingGenerator.TreeWriteContextFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTreeWriteContext(int type, TreeBuildingGenerator.TreeWriteContext parent, JsonNodeFactory nf, Object currValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateChildArrayContext(Object currValue) createChildObjectContext(Object currValue) abstract voidwriteBinary(byte[] data) abstract voidwriteBoolean(boolean v) booleanabstract voidabstract voidabstract voidabstract voidabstract voidwriteString(String value) Methods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, toString, typeDesc
-
Field Details
-
_parent
-
_nodeFactory
-
_currentValue
-
-
Constructor Details
-
TreeWriteContext
protected TreeWriteContext(int type, TreeBuildingGenerator.TreeWriteContext parent, JsonNodeFactory nf, Object currValue)
-
-
Method Details
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
getParent
- Specified by:
getParentin classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
createChildArrayContext
-
createChildObjectContext
-
writeName
-
writeBinary
public abstract void writeBinary(byte[] data) -
writeBoolean
public abstract void writeBoolean(boolean v) -
writeNull
public abstract void writeNull() -
writeNumber
-
writeString
-
writeNode
-
writePOJO
-