Top Fields Constructors Methods
com.fasterxml.jackson.module.afterburner.deser

public final Class SuperSonicBeanDeserializer

extends BeanDeserializer
Class Inheritance
Imports
java.io.IOException, java.util.*, com.fasterxml.jackson.core.*, com.fasterxml.jackson.core.io.SerializedString, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.*, com.fasterxml.jackson.databind.util.NameTransformer

Field Summary

Modifier and TypeField and Description
protected SettableBeanProperty[]
_orderedProperties

Properties matching names in _orderedPropertyNames, assigned after resolution when property instances are finalized.

protected final SerializedString[]
_orderedPropertyNames

Names of properties being deserialized, in ordered they are expected to have been written (as per serialization settings); used for speculative order-based optimizations

private static final long
Inherited from com.fasterxml.jackson.databind.deser.BeanDeserializer:
_nullFromCreator

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
public Object
deserialize(JsonParser
Parser used for reading JSON content
p
,
DeserializationContext
Context that can be used to access information about this deserialization activity.
ctxt
)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Main deserialization method for bean-based objects (POJOs).

public final Object
deserialize(JsonParser p, DeserializationContext ctxt, Object bean)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Secondary deserialization method, called in cases where POJO instance is created as part of deserialization, potentially after collecting some or all of the properties to set.

public final Object
deserializeFromObject(JsonParser p, DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

public void
resolve(DeserializationContext
Context to use for accessing configuration, resolving secondary deserializers
ctxt
)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve.

Implements com.fasterxml.jackson.databind.deser.ResolvableDeserializer.resolve.

This method is overridden as we need to know expected order of properties.

public JsonDeserializer<Object>
unwrappingDeserializer(NameTransformer unwrapper)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.unwrappingDeserializer.

Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is.

Inherited from com.fasterxml.jackson.databind.deser.BeanDeserializer:
_creatorReturnedNullException_deserializeFromArray_deserializeOther_deserializeUsingPropertyBased_deserializeWithErrorWrapping_deserializeWithExternalTypeIdasArrayDeserializerdeserializeFromNulldeserializeUsingPropertyBasedWithExternalTypeIddeserializeUsingPropertyBasedWithUnwrappeddeserializeWithExternalTypeIddeserializeWithExternalTypeIddeserializeWithUnwrappeddeserializeWithUnwrappeddeserializeWithViewwithBeanPropertieswithByNameInclusionwithIgnoreAllUnknownwithObjectIdReader

Field Detail

_orderedPropertiesback to summary
protected SettableBeanProperty[] _orderedProperties

Properties matching names in _orderedPropertyNames, assigned after resolution when property instances are finalized.

_orderedPropertyNamesback to summary
protected final SerializedString[] _orderedPropertyNames

Names of properties being deserialized, in ordered they are expected to have been written (as per serialization settings); used for speculative order-based optimizations

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.BeanDeserializer.serialVersionUID.

Constructor Detail

SuperSonicBeanDeserializerback to summary
public SuperSonicBeanDeserializer(BeanDeserializer src, List<SettableBeanProperty> props)
SuperSonicBeanDeserializerback to summary
protected SuperSonicBeanDeserializer(SuperSonicBeanDeserializer src, NameTransformer unwrapper)

Method Detail

deserializeback to summary
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Doc from com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Main deserialization method for bean-based objects (POJOs).

Parameters
p:JsonParser

Doc from com.fasterxml.jackson.databind.JsonDeserializer.deserialize.

Parser used for reading JSON content

ctxt:DeserializationContext

Doc from com.fasterxml.jackson.databind.JsonDeserializer.deserialize.

Context that can be used to access information about this deserialization activity.

Returns:Object

Doc from com.fasterxml.jackson.databind.JsonDeserializer.deserialize.

Deserialized value

Annotations
@Override
deserializeback to summary
public final Object deserialize(JsonParser p, DeserializationContext ctxt, Object bean) throws IOException

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Doc from com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize.

Secondary deserialization method, called in cases where POJO instance is created as part of deserialization, potentially after collecting some or all of the properties to set.

Annotations
@Override
deserializeFromObjectback to summary
public final Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

Doc from com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

Annotations
@Override
resolveback to summary
public void resolve(DeserializationContext ctxt) throws JsonMappingException

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve.

Implements com.fasterxml.jackson.databind.deser.ResolvableDeserializer.resolve.

This method is overridden as we need to know expected order of properties.

Parameters
ctxt:DeserializationContext

Doc from com.fasterxml.jackson.databind.deser.ResolvableDeserializer.resolve.

Context to use for accessing configuration, resolving secondary deserializers

Annotations
@Override
unwrappingDeserializerback to summary
public JsonDeserializer<Object> unwrappingDeserializer(NameTransformer unwrapper)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.unwrappingDeserializer.

Doc from com.fasterxml.jackson.databind.JsonDeserializer.unwrappingDeserializer.

Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is.

Default implementation just returns 'this' indicating that no unwrapped variant exists

Annotations
@Override