Class SettableAnyProperty.JsonNodeParameterAnyProperty
java.lang.Object
com.fasterxml.jackson.databind.deser.SettableAnyProperty
com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeParameterAnyProperty
- All Implemented Interfaces:
Serializable
- Enclosing class:
SettableAnyProperty
protected static class SettableAnyProperty.JsonNodeParameterAnyProperty
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
ConstructorsConstructorDescriptionJsonNodeParameterAnyProperty
(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create an instance of value to pass through Creator parameter.deserialize
(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) int
Accessor for parameterIndex.Methods inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, set, toString
-
Field Details
-
_nodeFactory
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Details
-
JsonNodeParameterAnyProperty
public JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
-
Method Details
-
deserialize
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws IOException - Overrides:
deserialize
in classSettableAnyProperty
- Throws:
IOException
-
_set
- Specified by:
_set
in classSettableAnyProperty
- Throws:
Exception
-
withValueDeserializer
- Specified by:
withValueDeserializer
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
-