Top Description Fields Constructors Methods
tools.jackson.module.afterburner.ser

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

extends BeanPropertyWriter
Class Inheritance
Known Direct Subclasses
tools.jackson.module.afterburner.ser.StringFieldPropertyWriter, tools.jackson.module.afterburner.ser.StringMethodPropertyWriter, tools.jackson.module.afterburner.ser.BooleanFieldPropertyWriter, tools.jackson.module.afterburner.ser.BooleanMethodPropertyWriter, tools.jackson.module.afterburner.ser.IntFieldPropertyWriter, tools.jackson.module.afterburner.ser.IntMethodPropertyWriter, tools.jackson.module.afterburner.ser.LongFieldPropertyWriter, tools.jackson.module.afterburner.ser.LongMethodPropertyWriter, tools.jackson.module.afterburner.ser.ObjectFieldPropertyWriter, tools.jackson.module.afterburner.ser.ObjectMethodPropertyWriter
Annotations
@SuppressWarnings:serial
Imports
java.util.logging.Level, .Logger, tools.jackson.core.JsonGenerator, .SerializableString, tools.jackson.databind.*, tools.jackson.databind.jsontype.TypeSerializer, tools.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 final BeanPropertyAccessor
protected final int
protected boolean
protected final BeanPropertyWriter
Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_accessor_cfgSerializationType_contextAnnotations_declaredType_dynamicSerializers_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
protected abstract BeanPropertyWriter
_new(PropertyName newName)

Overrides tools.jackson.databind.ser.BeanPropertyWriter._new.

Overridable factory method used by sub-classes

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

Method called to assign null value serializer for property

public void
assignSerializer(ValueSerializer<Object> ser)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

Method called to assign value serializer for property

public void
assignTypeSerializer(TypeSerializer typeSer)

Overrides tools.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 g, SerializationContext ctxt)

Overrides 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.

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

Overrides 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.

private BeanPropertyWriter
public abstract T
public abstract BeanPropertyWriter
Inherited from tools.jackson.databind.ser.BeanPropertyWriter:
_depositSchemaProperty_findAndAddDynamic_handleSelfReferencedepositSchemaPropertyfixAccessgetgetAnnotationgetContextAnnotationgetFullNamegetInternalSettinggetMembergetNamegetSerializationTypegetSerializedNamegetSerializergetTypegetTypeSerializergetViewsgetWrapperNamehasNullSerializerhasSerializerisUnwrappingremoveInternalSettingrenameserializeAsOmittedElementserializeAsOmittedPropertysetInternalSettingsetNonTrivialBaseTypetoStringunwrappingWriterwillSuppressNullswouldConflictWithName

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

_propertyAccessorback to summary
protected final BeanPropertyAccessor _propertyAccessor
_propertyIndexback to summary
protected final int _propertyIndex
brokenback to summary
protected boolean broken
fallbackWriterback to summary
protected final BeanPropertyWriter fallbackWriter

Constructor Detail

OptimizedBeanPropertyWriterback to summary
protected OptimizedBeanPropertyWriter(BeanPropertyWriter src, BeanPropertyAccessor propertyAccessor, int propertyIndex, ValueSerializer<Object> ser)
OptimizedBeanPropertyWriterback to summary
protected OptimizedBeanPropertyWriter(OptimizedBeanPropertyWriter<?> base, PropertyName name)

Method Detail

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter._new.

Doc from tools.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(ValueSerializer<Object> nullSer)

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignNullSerializer.

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

Method called to assign null value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignSerializer.

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

Method called to assign value serializer for property

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

Overrides tools.jackson.databind.ser.BeanPropertyWriter.assignTypeSerializer.

Doc from tools.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 g, SerializationContext ctxt) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.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 abstract void serializeAsProperty(Object bean, JsonGenerator g, SerializationContext ctxt) throws Exception

Overrides tools.jackson.databind.ser.BeanPropertyWriter.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
unwrapFallbackWriterback to summary
private BeanPropertyWriter unwrapFallbackWriter(BeanPropertyWriter srcIn)
withAccessorback to summary
public abstract T withAccessor(BeanPropertyAccessor acc)
withSerializerback to summary
public abstract BeanPropertyWriter withSerializer(ValueSerializer<Object> ser)