Class SettableAnyProperty.MapParameterAnyProperty
java.lang.Object
com.fasterxml.jackson.databind.deser.SettableAnyProperty
com.fasterxml.jackson.databind.deser.SettableAnyProperty.MapParameterAnyProperty
- All Implemented Interfaces:
Serializable
- Enclosing class:
SettableAnyProperty
protected static class SettableAnyProperty.MapParameterAnyProperty
extends SettableAnyProperty
implements Serializable
[databind#562] Allow @JsonAnySetter on Creator constructor
- Since:
- 2.18
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
SettableAnyProperty.JsonNodeFieldAnyProperty, SettableAnyProperty.JsonNodeParameterAnyProperty, SettableAnyProperty.MapFieldAnyProperty, SettableAnyProperty.MapParameterAnyProperty, SettableAnyProperty.MethodAnyProperty
-
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_keyDeserializer, _property, _setter, _setterIsField, _type, _valueDeserializer, _valueTypeDeserializer
-
Constructor Summary
ConstructorsConstructorDescriptionMapParameterAnyProperty
(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst, int parameterIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create an instance of value to pass through Creator parameter.int
Accessor for parameterIndex.Methods inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserialize, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, set, toString
-
Field Details
-
_valueInstantiator
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Details
-
MapParameterAnyProperty
public MapParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst, int parameterIndex)
-
-
Method Details
-
withValueDeserializer
- Specified by:
withValueDeserializer
in classSettableAnyProperty
-
_set
- Specified by:
_set
in classSettableAnyProperty
-
getParameterIndex
public int getParameterIndex()Description copied from class:SettableAnyProperty
Accessor for parameterIndex.- Overrides:
getParameterIndex
in classSettableAnyProperty
- Returns:
- -1 if not a parameterized setter, otherwise index of parameter
-
createParameterObject
Description copied from class:SettableAnyProperty
Create an instance of value to pass through Creator parameter.- Overrides:
createParameterObject
in classSettableAnyProperty
-