Class StringMethodPropertyWriter
- 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.afterburner.ser.OptimizedBeanPropertyWriter<StringMethodPropertyWriter>
-
- com.fasterxml.jackson.module.afterburner.ser.StringMethodPropertyWriter
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty
,com.fasterxml.jackson.databind.util.Named
,java.io.Serializable
public class StringMethodPropertyWriter extends OptimizedBeanPropertyWriter<StringMethodPropertyWriter>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.module.afterburner.ser.OptimizedBeanPropertyWriter
_fastName, _propertyAccessor, _propertyIndex, broken, fallbackWriter
-
Fields 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_EMPTY
-
-
Constructor Summary
Constructors Constructor Description StringMethodPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, BeanPropertyAccessor acc, int index, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov)
void
serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov)
StringMethodPropertyWriter
withAccessor(BeanPropertyAccessor acc)
com.fasterxml.jackson.databind.ser.BeanPropertyWriter
withSerializer(com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
Methods inherited from class com.fasterxml.jackson.module.afterburner.ser.OptimizedBeanPropertyWriter
_handleProblem, _reportProblem, assignNullSerializer, assignSerializer, assignTypeSerializer
-
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, 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, wouldConflictWithName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StringMethodPropertyWriter
public StringMethodPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, BeanPropertyAccessor acc, int index, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
-
Method Detail
-
withSerializer
public com.fasterxml.jackson.databind.ser.BeanPropertyWriter withSerializer(com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
- Specified by:
withSerializer
in classOptimizedBeanPropertyWriter<StringMethodPropertyWriter>
-
withAccessor
public StringMethodPropertyWriter withAccessor(BeanPropertyAccessor acc)
- Specified by:
withAccessor
in classOptimizedBeanPropertyWriter<StringMethodPropertyWriter>
-
serializeAsField
public final void serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws java.lang.Exception
- Specified by:
serializeAsField
in classOptimizedBeanPropertyWriter<StringMethodPropertyWriter>
- Throws:
java.lang.Exception
-
serializeAsElement
public final void serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws java.lang.Exception
- Specified by:
serializeAsElement
in classOptimizedBeanPropertyWriter<StringMethodPropertyWriter>
- Throws:
java.lang.Exception
-
-