Top Description Fields Constructors Methods
tools.jackson.databind.deser.impl

public final Class InnerClassProperty

extends Delegating
Class Inheritance
Imports
java.lang.reflect.Constructor, tools.jackson.core.*, tools.jackson.databind.*, tools.jackson.databind.deser.SettableBeanProperty, tools.jackson.databind.introspect.*, tools.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.

Inherited from tools.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 tools.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 tools.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.

protected SettableBeanProperty
withDelegate(SettableBeanProperty d)

Implements abstract tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

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

Inherited from tools.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.

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 JacksonException

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeAndSet.

Doc from tools.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 JacksonException

Overrides tools.jackson.databind.deser.SettableBeanProperty.Delegating.deserializeSetAndReturn.

Doc from tools.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
withDelegateback to summary
protected SettableBeanProperty withDelegate(SettableBeanProperty d)

Implements abstract tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

Doc from tools.jackson.databind.deser.SettableBeanProperty.Delegating.withDelegate.

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

Annotations
@Override