Class SettableAnyProperty.JsonNodeParameterAnyProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeParameterAnyProperty
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SettableAnyProperty
protected static class SettableAnyProperty.JsonNodeParameterAnyProperty extends SettableAnyProperty implements java.io.Serializable
[databind#562] Allow @JsonAnySetter on Creator constructor- Since:
- 2.18
- See Also:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description protected JsonNodeFactory_nodeFactoryprotected int_parameterIndex-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_keyDeserializer, _property, _setter, _setterIsField, _type, _valueDeserializer, _valueTypeDeserializer
-
-
Constructor Summary
Constructors Constructor Description JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_set(java.lang.Object instance, java.lang.Object propName, java.lang.Object value)java.lang.ObjectcreateParameterObject()Create an instance of value to pass through Creator parameter.java.lang.Objectdeserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt)intgetParameterIndex()Accessor for parameterIndex.SettableAnyPropertywithValueDeserializer(JsonDeserializer<java.lang.Object> deser)-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, isSetterType, set, toString
-
-
-
-
Field Detail
-
_nodeFactory
protected final JsonNodeFactory _nodeFactory
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Detail
-
JsonNodeParameterAnyProperty
public JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
-
Method Detail
-
deserialize
public java.lang.Object deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws java.io.IOException- Overrides:
deserializein classSettableAnyProperty- Throws:
java.io.IOException
-
_set
protected void _set(java.lang.Object instance, java.lang.Object propName, java.lang.Object value) throws java.lang.Exception- Specified by:
_setin classSettableAnyProperty- Throws:
java.lang.Exception
-
withValueDeserializer
public SettableAnyProperty withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
- Specified by:
withValueDeserializerin 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
public java.lang.Object createParameterObject()
Description copied from class:SettableAnyPropertyCreate an instance of value to pass through Creator parameter.- Overrides:
createParameterObjectin classSettableAnyProperty
-
-