Top Description Fields Constructors Methods
com.fasterxml.jackson.module.blackbird.ser

pack-priv abstract Class OptimizedBeanPropertyWriter<T extends OptimizedBeanPropertyWriter<T>>

extends BeanPropertyWriter
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.module.blackbird.ser.StringPropertyWriter, com.fasterxml.jackson.module.blackbird.ser.BooleanPropertyWriter, com.fasterxml.jackson.module.blackbird.ser.IntPropertyWriter, com.fasterxml.jackson.module.blackbird.ser.LongPropertyWriter, com.fasterxml.jackson.module.blackbird.ser.ObjectPropertyWriter
Annotations
@SuppressWarnings:serial
Imports
java.util.logging.Level, .Logger, com.fasterxml.jackson.core.JsonGenerator, .SerializableString, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.jsontype.TypeSerializer, com.fasterxml.jackson.databind.ser.BeanPropertyWriter

Intermediate base class that is used for concrete per-type implementations

Field Summary

Modifier and TypeField and Description
protected final SerializableString
_fastName

Locally stored version of efficiently serializable name.

protected boolean
protected final BeanPropertyWriter
Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_accessorMethod_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_field_includeInViews_internalSettings_member_name_nonTrivialBaseType_nullSerializer_serializer_suppressableValue_suppressNulls_typeSerializer_wrapperNameMARKER_FOR_EMPTY

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
_handleProblem(Object bean, JsonGenerator gen, SerializerProvider prov, Throwable t, boolean element)

protected abstract BeanPropertyWriter
_new(PropertyName newName)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter._new.

Overridable factory method used by sub-classes

protected void
public void
assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

public void
assignTypeSerializer(TypeSerializer typeSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignTypeSerializer.

Method called to set, reset or clear the configured type serializer for property.

public abstract void
serializeAsElement(Object bean, JsonGenerator jgen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

public abstract void
serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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.

private BeanPropertyWriter
public abstract BeanPropertyWriter
Inherited from com.fasterxml.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReferencedepositSchemaPropertydepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetGenericPropertyTypegetInternalSettinggetMembergetNamegetPropertyTypegetRawSerializationTypegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingrenameserializeAsOmittedFieldserializeAsPlaceholdersetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

Field Detail

_fastNameback to summary
protected final SerializableString _fastName

Locally stored version of efficiently serializable name. Used to work around earlier problems with typing between interface, implementation

brokenback to summary
protected boolean broken
fallbackWriterback to summary
protected final BeanPropertyWriter fallbackWriter

Constructor Detail

OptimizedBeanPropertyWriterback to summary
protected OptimizedBeanPropertyWriter(BeanPropertyWriter src, JsonSerializer<Object> ser)
OptimizedBeanPropertyWriterback to summary
protected OptimizedBeanPropertyWriter(OptimizedBeanPropertyWriter<?> base, PropertyName name)

Method Detail

_handleProblemback to summary
protected synchronized void _handleProblem(Object bean, JsonGenerator gen, SerializerProvider prov, Throwable t, boolean element) throws Exception
_newback to summary
protected abstract BeanPropertyWriter _new(PropertyName newName)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter._new.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter._new.

Overridable factory method used by sub-classes

Annotations
@Override
_reportProblemback to summary
protected void _reportProblem(Object bean, Throwable e)
assignNullSerializerback to summary
public void assignNullSerializer(JsonSerializer<Object> nullSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

Annotations
@Override
assignSerializerback to summary
public void assignSerializer(JsonSerializer<Object> ser)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

Annotations
@Override
assignTypeSerializerback to summary
public void assignTypeSerializer(TypeSerializer typeSer)

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignTypeSerializer.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.assignTypeSerializer.

Method called to set, reset or clear the configured type serializer for property.

Annotations
@Override
serializeAsElementback to summary
public abstract void serializeAsElement(Object bean, JsonGenerator jgen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsElement.

Alternative to serializeAsField that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.

Annotations
@Override
serializeAsFieldback to summary
public abstract void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov) throws Exception

Overrides com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

Doc from com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField.

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
unwrapFallbackWriterback to summary
private BeanPropertyWriter unwrapFallbackWriter(BeanPropertyWriter srcIn)
withSerializerback to summary
public abstract BeanPropertyWriter withSerializer(JsonSerializer<Object> ser)