Module tools.jackson.databind
Package tools.jackson.databind.deser
Class SettableAnyProperty.JsonNodeParameterAnyProperty
java.lang.Object
tools.jackson.databind.deser.SettableAnyProperty
tools.jackson.databind.deser.SettableAnyProperty.JsonNodeParameterAnyProperty
- 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
ConstructorsConstructorDescriptionJsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, ValueDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory, 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.deserialize(JsonParser p, DeserializationContext ctxt) intAccessor for parameterIndex.Methods inherited from class tools.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, isSetterType, set, toString
-
Field Details
-
_nodeFactory
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Details
-
JsonNodeParameterAnyProperty
public JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, ValueDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
-
Method Details
-
deserialize
- Overrides:
deserializein classSettableAnyProperty- Throws:
JacksonException
-
_set
protected void _set(DeserializationContext ctxt, Object instance, Object propName, Object value) throws Exception - Specified by:
_setin classSettableAnyProperty- Throws:
Exception
-
withValueDeserializer
- 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
Description copied from class:SettableAnyPropertyCreate an instance of value to pass through Creator parameter.- Overrides:
createParameterObjectin classSettableAnyProperty
-