Module tools.jackson.databind
Package tools.jackson.databind.deser
Class SettableAnyProperty.MapParameterAnyProperty
java.lang.Object
tools.jackson.databind.deser.SettableAnyProperty
tools.jackson.databind.deser.SettableAnyProperty.MapParameterAnyProperty
- Enclosing class:
- SettableAnyProperty
[databind#562] Allow @JsonAnySetter on Creator constructor
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.deser.SettableAnyProperty
SettableAnyProperty.JsonNodeFieldAnyProperty, SettableAnyProperty.JsonNodeParameterAnyProperty, SettableAnyProperty.MapFieldAnyProperty, SettableAnyProperty.MapParameterAnyProperty, SettableAnyProperty.MethodAnyProperty -
Field Summary
FieldsFields inherited from class tools.jackson.databind.deser.SettableAnyProperty
_keyDeserializer, _property, _setter, _setterIsField, _type, _valueDeserializer, _valueTypeDeserializer -
Constructor Summary
ConstructorsConstructorDescriptionMapParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst, int parameterIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_set(DeserializationContext ctxt, Object instance, Object propName, Object value) Create an instance of value to pass through Creator parameter.intAccessor for parameterIndex.Methods inherited from class tools.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserialize, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, isSetterType, set, toString
-
Field Details
-
_valueInstantiator
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Details
-
MapParameterAnyProperty
public MapParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst, int parameterIndex)
-
-
Method Details
-
withValueDeserializer
- Specified by:
withValueDeserializerin classSettableAnyProperty
-
_set
- Specified by:
_setin classSettableAnyProperty
-
getParameterIndex
public int getParameterIndex()Description copied from class:SettableAnyPropertyAccessor for parameterIndex.- Overrides:
getParameterIndexin classSettableAnyProperty- Returns:
- -1 if not a parameterized setter, otherwise index of parameter
-
createParameterObject
Description copied from class:SettableAnyPropertyCreate an instance of value to pass through Creator parameter.- Overrides:
createParameterObjectin classSettableAnyProperty
-