Top Fields Constructors Methods
tools.jackson.module.blackbird.ser

pack-priv final Class BooleanPropertyWriter

extends OptimizedBeanPropertyWriter<BooleanPropertyWriter>
Class Inheritance
Imports
tools.jackson.core.JsonGenerator, tools.jackson.databind.ValueSerializer, .PropertyName, .SerializationContext, tools.jackson.databind.ser.BeanPropertyWriter

Field Summary

Modifier and TypeField and Description
private final ToBooleanFunction
private final boolean
private final boolean
private static final long
Inherited from tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter:
_fastNamebrokenfallbackWriter

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
protected BeanPropertyWriter
_new(PropertyName newName)

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter._new.

Overridable factory method used by sub-classes

public final void
serializeAsElement(Object bean, JsonGenerator g, SerializationContext ctxt)

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

public final void
serializeAsProperty(Object bean, JsonGenerator g, SerializationContext ctxt)

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter.serializeAsProperty.

Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.

public BeanPropertyWriter
Inherited from tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter:
_handleProblem_reportProblemassignNullSerializerassignSerializerassignTypeSerializer

Field Detail

_accback to summary
private final ToBooleanFunction _acc
_suppressableBooleanback to summary
private final boolean _suppressableBoolean
_suppressableSetback to summary
private final boolean _suppressableSet
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

BooleanPropertyWriterback to summary
public BooleanPropertyWriter(BeanPropertyWriter src, ToBooleanFunction acc, ValueSerializer<Object> ser)
BooleanPropertyWriterback to summary
protected BooleanPropertyWriter(BooleanPropertyWriter base, PropertyName name)

Method Detail

_newback to summary
protected BeanPropertyWriter _new(PropertyName newName)

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter._new.

Doc from tools.jackson.databind.ser.BeanPropertyWriter._new.

Overridable factory method used by sub-classes

Annotations
@Override
serializeAsElementback to summary
public final void serializeAsElement(Object bean, JsonGenerator g, SerializationContext ctxt) throws Exception

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter.serializeAsElement.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsProperty that is used when a POJO is serialized as JSON Array (usually when "Shape" is forced as 'Array'): the difference is that no property names are written.

Annotations
@Override
serializeAsPropertyback to summary
public final void serializeAsProperty(Object bean, JsonGenerator g, SerializationContext ctxt) throws Exception

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter.serializeAsProperty.

Doc from tools.jackson.databind.ser.BeanPropertyWriter.serializeAsProperty.

Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.

Annotations
@Override
withSerializerback to summary
public BeanPropertyWriter withSerializer(ValueSerializer<Object> ser)

Implements abstract tools.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter.withSerializer.

Annotations
@Override