Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.impl

public final Class InnerClassProperty

extends Delegating
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Constructor, com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.SettableBeanProperty, com.fasterxml.jackson.databind.introspect.*, com.fasterxml.jackson.databind.util.ClassUtil

This sub-class is used to handle special case of value being a non-static inner class. If so, we will have to use a special alternative for default constructor; but otherwise can delegate to regular implementation.

Field Summary

Modifier and TypeField and Description
protected AnnotatedConstructor
_annotated

Serializable version of single-arg constructor we use for value instantiation.

protected final transient Constructor<?>
_creator

Constructor used when deserializing this property.

private static final long
Inherited from com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating:
delegate

Constructor Summary

AccessConstructor and Description
public
protected
InnerClassProperty(SettableBeanProperty src, AnnotatedConstructor ann)

Constructor used with JDK Serialization; needed to handle transient Constructor, wrap/unwrap in/out-of Annotated variant.

Method Summary

Modifier and TypeMethod and Description
public void
deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object bean)

Overrides com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeAndSet.

Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism.
public Object
deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance)

Overrides com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeSetAndReturn.

Alternative to deserializeAndSet that returns either return value of setter method called (if one is), or null to indicate that no return value is available.
pack-priv Object
protected SettableBeanProperty
withDelegate(SettableBeanProperty d)

Implements abstract com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Method sub-classes must implement, to construct a new instance with given delegate.
pack-priv Object
Inherited from com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating:
_withassignIndexfixAccessgetAnnotationgetCreatorIndexgetDeclaringClassgetDelegategetInjectableValueIdgetManagedReferenceNamegetMembergetObjectIdInfogetPropertyIndexgetValueDeserializergetValueTypeDeserializerhasValueDeserializerhasValueTypeDeserializerhasViewsisInjectionOnlysetsetAndReturnvisibleInViewwithNamewithNullProviderwithValueDeserializer

Field Detail

_annotatedback to summary
protected AnnotatedConstructor _annotated

Serializable version of single-arg constructor we use for value instantiation.

_creatorback to summary
protected final transient Constructor<?> _creator

Constructor used when deserializing this property. Transient since there is no need to persist; only needed during construction of objects.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase.serialVersionUID.

Constructor Detail

InnerClassPropertyback to summary
public InnerClassProperty(SettableBeanProperty delegate, Constructor<?> ctor)
InnerClassPropertyback to summary
protected InnerClassProperty(SettableBeanProperty src, AnnotatedConstructor ann)

Constructor used with JDK Serialization; needed to handle transient Constructor, wrap/unwrap in/out-of Annotated variant.

Method Detail

deserializeAndSetback to summary
public void deserializeAndSet(JsonParser p, DeserializationContext ctxt, Object bean) throws IOException

Overrides com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeAndSet.

Doc from com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserializeAndSet.

Method called to deserialize appropriate value, given parser (and context), and set it using appropriate mechanism. Pre-condition is that passed parser must point to the first token that should be consumed to produce the value (the only value for scalars, multiple for Objects and Arrays).

Annotations
@Override
deserializeSetAndReturnback to summary
public Object deserializeSetAndReturn(JsonParser p, DeserializationContext ctxt, Object instance) throws IOException

Overrides com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeSetAndReturn.

Doc from com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserializeSetAndReturn.

Alternative to deserializeAndSet that returns either return value of setter method called (if one is), or null to indicate that no return value is available. Mostly used to support Builder style deserialization.

Annotations
@Override
readResolveback to summary
pack-priv Object readResolve()
withDelegateback to summary
protected SettableBeanProperty withDelegate(SettableBeanProperty d)

Implements abstract com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Doc from com.fasterxml.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Method sub-classes must implement, to construct a new instance with given delegate.

Annotations
@Override
writeReplaceback to summary
pack-priv Object writeReplace()