Class OptimizedBeanPropertyWriter<T extends OptimizedBeanPropertyWriter<T>>
java.lang.Object
com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
com.fasterxml.jackson.databind.ser.PropertyWriter
com.fasterxml.jackson.databind.ser.BeanPropertyWriter
com.fasterxml.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter<T>
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty, com.fasterxml.jackson.databind.util.Named, Serializable
- Direct Known Subclasses:
BooleanPropertyWriter, IntPropertyWriter, LongPropertyWriter, ObjectPropertyWriter, StringPropertyWriter
abstract class OptimizedBeanPropertyWriter<T extends OptimizedBeanPropertyWriter<T>>
extends com.fasterxml.jackson.databind.ser.BeanPropertyWriter
Intermediate base class that is used for concrete
per-type implementations
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
com.fasterxml.jackson.databind.BeanProperty.Bogus, com.fasterxml.jackson.databind.BeanProperty.Std -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.core.SerializableStringLocally stored version of efficiently serializable name.protected booleanprotected final com.fasterxml.jackson.databind.ser.BeanPropertyWriterFields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTYFields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadataFields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOptimizedBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) protectedOptimizedBeanPropertyWriter(OptimizedBeanPropertyWriter<?> base, com.fasterxml.jackson.databind.PropertyName name) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_handleProblem(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov, Throwable t, boolean element) protected abstract com.fasterxml.jackson.databind.ser.BeanPropertyWriter_new(com.fasterxml.jackson.databind.PropertyName newName) protected void_reportProblem(Object bean, Throwable e) voidassignNullSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> nullSer) voidassignSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser) voidassignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) abstract voidserializeAsElement(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider prov) abstract voidserializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider prov) private com.fasterxml.jackson.databind.ser.BeanPropertyWriterunwrapFallbackWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter srcIn) abstract com.fasterxml.jackson.databind.ser.BeanPropertyWriterwithSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser) Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithNameMethods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter
findAnnotationMethods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
Field Details
-
_fastName
protected final com.fasterxml.jackson.core.SerializableString _fastNameLocally stored version of efficiently serializable name. Used to work around earlier problems with typing between interface, implementation -
fallbackWriter
protected final com.fasterxml.jackson.databind.ser.BeanPropertyWriter fallbackWriter -
broken
protected boolean broken
-
-
Constructor Details
-
OptimizedBeanPropertyWriter
protected OptimizedBeanPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) -
OptimizedBeanPropertyWriter
protected OptimizedBeanPropertyWriter(OptimizedBeanPropertyWriter<?> base, com.fasterxml.jackson.databind.PropertyName name)
-
-
Method Details
-
unwrapFallbackWriter
private com.fasterxml.jackson.databind.ser.BeanPropertyWriter unwrapFallbackWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter srcIn) -
_new
protected abstract com.fasterxml.jackson.databind.ser.BeanPropertyWriter _new(com.fasterxml.jackson.databind.PropertyName newName) - Overrides:
_newin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
assignTypeSerializer
public void assignTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) - Overrides:
assignTypeSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
assignSerializer
- Overrides:
assignSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
assignNullSerializer
- Overrides:
assignNullSerializerin classcom.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
withSerializer
public abstract com.fasterxml.jackson.databind.ser.BeanPropertyWriter withSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> ser) -
serializeAsField
-
serializeAsElement
-
_handleProblem
-
_reportProblem
-