| Modifier and Type | Field and Description |
|---|---|
| protected BeanPropertyWriter | |
| protected BeanPropertyWriter | |
| protected BeanPropertyWriter | |
| protected BeanPropertyWriter | |
| protected BeanPropertyWriter | |
| protected BeanPropertyWriter | |
| protected final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | UnrolledBeanSerializer(JavaType type, BeanSerializerBuilder
Builder object that contains collected information
that may be needed for serializer builder, BeanPropertyWriter[] Property writers used for actual serialization properties, BeanPropertyWriter[] filteredProperties)
|
| protected | |
| protected | UnrolledBeanSerializer(UnrolledBeanSerializer src, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected BeanSerializerBase | asArraySerializer()
Implements abstract tools. Mutant factory for creating a variant that output POJO as a JSON Array. |
| public void | resolve(SerializationContext provider)
Overrides tools. We need to resolve dependant serializers here to be able to properly handle cyclic type references. |
| public void | serialize(Object bean, JsonGenerator gen, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| protected void | |
| public static UnrolledBeanSerializer | tryConstruct(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
Factory method that will construct optimized instance if all the constraints are obeyed; or, if not, return `null` to indicate that instance cannot be created. |
| public ValueSerializer | unwrappingSerializer(NameTransformer unwrapper)
Implements abstract tools. Lets force sub-classes to implement this, to avoid accidental missing of handling... |
| protected BeanSerializerBase | withByNameInclusion(Set<String> toIgnore, Set<String> toInclude)
Implements abstract tools. Mutant factory used for creating a new instance with additional set of properties to ignore or include (from properties this instance otherwise has) |
| public BeanSerializerBase | withFilterId(Object filterId)
Implements abstract tools. Mutant factory used for creating a new instance with different
filter id (used with |
| public ValueSerializer | withIgnoredProperties(Set<String> toIgnore)
Overrides tools. Mutant factory method called to create a new instance after excluding specified set of properties by name, if there is any. |
| public BeanSerializerBase | withObjectIdWriter(ObjectIdWriter objectIdWriter)
Implements abstract tools. Mutant factory used for creating a new instance with different
|
| protected BeanSerializerBase | withProperties(BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
Implements abstract tools. Mutant factory used for creating a new instance with modified set of properties |
| _prop1 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop1 | |
| _prop2 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop2 | |
| _prop3 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop3 | |
| _prop4 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop4 | |
| _prop5 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop5 | |
| _prop6 | back to summary |
|---|---|
| protected BeanPropertyWriter _prop6 | |
| _propCount | back to summary |
|---|---|
| protected final int _propCount | |
| MAX_PROPS | back to summary |
|---|---|
| private static final int MAX_PROPS | |
| UnrolledBeanSerializer | back to summary |
|---|---|
public UnrolledBeanSerializer(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
| |
| UnrolledBeanSerializer | back to summary |
|---|---|
| protected UnrolledBeanSerializer(UnrolledBeanSerializer src, Set<String> toIgnore, Set<String> toInclude) | |
| UnrolledBeanSerializer | back to summary |
|---|---|
| protected UnrolledBeanSerializer(UnrolledBeanSerializer src, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) | |
| _calcUnrolled | back to summary |
|---|---|
| private void _calcUnrolled() | |
| asArraySerializer | back to summary |
|---|---|
| protected BeanSerializerBase asArraySerializer() Implements abstract tools. Doc from tools. Mutant factory for creating a variant that output POJO as a JSON Array. Implementations may ignore this request if output as array is not possible (either at all, or reliably).
| |
| resolve | back to summary |
|---|---|
| public void resolve(SerializationContext provider) Overrides tools. Doc from tools. We need to resolve dependant serializers here to be able to properly handle cyclic type references.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Object bean, JsonGenerator gen, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| serializeNonFiltered | back to summary |
|---|---|
| protected void serializeNonFiltered(Object bean, JsonGenerator gen, SerializationContext provider) throws JacksonException | |
| tryConstruct | back to summary |
|---|---|
| public static UnrolledBeanSerializer tryConstruct(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) Factory method that will construct optimized instance if all the constraints are obeyed; or, if not, return `null` to indicate that instance cannot be created. | |
| unwrappingSerializer | back to summary |
|---|---|
| public ValueSerializer Implements abstract tools. Doc from tools. Lets force sub-classes to implement this, to avoid accidental missing of handling...
| |
| withByNameInclusion | back to summary |
|---|---|
| protected BeanSerializerBase withByNameInclusion(Set<String> toIgnore, Set<String> toInclude) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with additional set of properties to ignore or include (from properties this instance otherwise has)
| |
| withFilterId | back to summary |
|---|---|
| public BeanSerializerBase withFilterId(Object filterId) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with different
filter id (used with
| |
| withIgnoredProperties | back to summary |
|---|---|
| public ValueSerializer Overrides tools. Doc from tools. Mutant factory method called to create a new instance after excluding specified set of properties by name, if there is any.
| |
| withObjectIdWriter | back to summary |
|---|---|
| public BeanSerializerBase withObjectIdWriter(ObjectIdWriter objectIdWriter) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with different
| |
| withProperties | back to summary |
|---|---|
| protected BeanSerializerBase withProperties(BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with modified set of properties
| |