Uses of Class
com.fasterxml.jackson.databind.introspect.AnnotatedMethod
-
Packages that use AnnotatedMethod Package Description com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.deser Contains implementation classes of deserialization part of data binding.com.fasterxml.jackson.databind.deser.impl Contains those implementation classes of deserialization part of data binding that are not considered part of public or semi-public interfaces.com.fasterxml.jackson.databind.deser.std Contains public standard implementations of abstraction that Jackson uses.com.fasterxml.jackson.databind.introspect Functionality needed for Bean introspection, required for detecting accessors and mutators for Beans, as well as locating and handling method annotations.com.fasterxml.jackson.databind.util Utility classes for Mapper package. -
-
Uses of AnnotatedMethod in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return AnnotatedMethod Modifier and Type Method Description AnnotatedMethodBeanDescription. findAnySetter()Deprecated.Since 2.9: useBeanDescription.findAnySetterAccessor()insteadabstract AnnotatedMethodBeanDescription. findJsonValueMethod()Deprecated.abstract AnnotatedMethodBeanDescription. findMethod(java.lang.String name, java.lang.Class<?>[] paramTypes)AnnotatedMethodAnnotationIntrospector. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)Method called in cases where a class has two methods eligible to be used for the same logical property, and default logic is not enough to figure out clear precedence.Methods in com.fasterxml.jackson.databind that return types with arguments of type AnnotatedMethod Modifier and Type Method Description abstract java.util.List<AnnotatedMethod>BeanDescription. getFactoryMethods()Helper method that will check all static methods of the bean class that seem like factory methods eligible to be used as Creators.abstract java.util.List<AnnotatedAndMetadata<AnnotatedMethod,com.fasterxml.jackson.annotation.JsonCreator.Mode>>BeanDescription. getFactoryMethodsWithMode()Method similar toBeanDescription.getFactoryMethods()but will returnJsonCreator.Modemetadata along with qualifying factory method candidates.Methods in com.fasterxml.jackson.databind with parameters of type AnnotatedMethod Modifier and Type Method Description booleanAnnotationIntrospector. hasAnyGetterAnnotation(AnnotatedMethod am)Deprecated.Since 2.9 UseAnnotationIntrospector.hasAnyGetter(com.fasterxml.jackson.databind.introspect.Annotated)insteadbooleanAnnotationIntrospector. hasAnySetterAnnotation(AnnotatedMethod am)Deprecated.Since 2.9 useAnnotationIntrospector.hasAnySetter(com.fasterxml.jackson.databind.introspect.Annotated)instead.booleanAnnotationIntrospector. hasAsValueAnnotation(AnnotatedMethod am)Deprecated.Since 2.9 UseAnnotationIntrospector.hasAsValue(Annotated)instead.java.lang.StringPropertyNamingStrategies.NamingBase. nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)java.lang.StringPropertyNamingStrategy. nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Method called to find external name (name used in JSON) for given logical POJO property, as defined by given getter method; typically called when building a serializer.java.lang.StringPropertyNamingStrategy.PropertyNamingStrategyBase. nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Deprecated.java.lang.StringPropertyNamingStrategies.NamingBase. nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)java.lang.StringPropertyNamingStrategy. nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Method called to find external name (name used in JSON) for given logical POJO property, as defined by given setter method; typically called when building a deserializer (but not necessarily only then).java.lang.StringPropertyNamingStrategy.PropertyNamingStrategyBase. nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Deprecated.AnnotatedMethodAnnotationIntrospector. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)Method called in cases where a class has two methods eligible to be used for the same logical property, and default logic is not enough to figure out clear precedence. -
Uses of AnnotatedMethod in com.fasterxml.jackson.databind.deser
Fields in com.fasterxml.jackson.databind.deser declared as AnnotatedMethod Modifier and Type Field Description protected AnnotatedMethodBeanDeserializerBuilder. _buildMethodWhen creating Builder-based deserializers, this indicates method to call on builder to finalize value.protected AnnotatedMethodBuilderBasedDeserializer. _buildMethodMethods in com.fasterxml.jackson.databind.deser that return AnnotatedMethod Modifier and Type Method Description protected AnnotatedMethodBasicDeserializerFactory. _findJsonValueFor(DeserializationConfig config, JavaType enumType)Deprecated.since 2.8 callfindJsonValueMethodonBeanDescriptioninsteadAnnotatedMethodBeanDeserializerBuilder. getBuildMethod()Methods in com.fasterxml.jackson.databind.deser with parameters of type AnnotatedMethod Modifier and Type Method Description voidBeanDeserializerBuilder. setPOJOBuilder(AnnotatedMethod buildMethod, JsonPOJOBuilder.Value config) -
Uses of AnnotatedMethod in com.fasterxml.jackson.databind.deser.impl
Fields in com.fasterxml.jackson.databind.deser.impl declared as AnnotatedMethod Modifier and Type Field Description protected AnnotatedMethodMethodProperty. _annotatedprotected AnnotatedMethodSetterlessProperty. _annotatedprotected AnnotatedMethodBeanAsArrayBuilderDeserializer. _buildMethodConstructors in com.fasterxml.jackson.databind.deser.impl with parameters of type AnnotatedMethod Constructor Description BeanAsArrayBuilderDeserializer(BeanDeserializerBase delegate, JavaType targetType, SettableBeanProperty[] ordered, AnnotatedMethod buildMethod)Main constructor used both for creating new instances (byBeanDeserializer.asArrayDeserializer()) and for creating copies with different delegate.MethodProperty(BeanPropertyDefinition propDef, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMethod method)SetterlessProperty(BeanPropertyDefinition propDef, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMethod method) -
Uses of AnnotatedMethod in com.fasterxml.jackson.databind.deser.std
Methods in com.fasterxml.jackson.databind.deser.std with parameters of type AnnotatedMethod Modifier and Type Method Description static KeyDeserializerStdKeyDeserializers. constructEnumKeyDeserializer(EnumResolver enumResolver, AnnotatedMethod factory)static KeyDeserializerStdKeyDeserializers. constructEnumKeyDeserializer(EnumResolver enumResolver, AnnotatedMethod factory, EnumResolver enumNamingResolver, EnumResolver byToStringResolver, EnumResolver byIndexResolver)static JsonDeserializer<?>EnumDeserializer. deserializerForCreator(DeserializationConfig config, java.lang.Class<?> enumClass, AnnotatedMethod factory)Deprecated.Since 2.8static JsonDeserializer<?>EnumDeserializer. deserializerForCreator(DeserializationConfig config, java.lang.Class<?> enumClass, AnnotatedMethod factory, ValueInstantiator valueInstantiator, SettableBeanProperty[] creatorProps)Factory method used when Enum instances are to be deserialized using a creator (static factory method)static JsonDeserializer<?>EnumDeserializer. deserializerForNoArgsCreator(DeserializationConfig config, java.lang.Class<?> enumClass, AnnotatedMethod factory)Factory method used when Enum instances are to be deserialized using a zero-/no-args factory method -
Uses of AnnotatedMethod in com.fasterxml.jackson.databind.introspect
Fields in com.fasterxml.jackson.databind.introspect with type parameters of type AnnotatedMethod Modifier and Type Field Description protected java.util.LinkedList<AnnotatedMethod>POJOPropertiesCollector. _anySettersprotected POJOPropertyBuilder.Linked<AnnotatedMethod>POJOPropertyBuilder. _gettersprotected java.util.Map<MemberKey,AnnotatedMethod>AnnotatedMethodMap. _methodsprotected POJOPropertyBuilder.Linked<AnnotatedMethod>POJOPropertyBuilder. _settersjava.util.List<AnnotatedMethod>AnnotatedClass.Creators. creatorMethodsSingle argument static methods that might be usable as factory methodsMethods in com.fasterxml.jackson.databind.introspect that return AnnotatedMethod Modifier and Type Method Description protected AnnotatedMethodPOJOPropertyBuilder. _selectSetter(AnnotatedMethod currM, AnnotatedMethod nextM)protected AnnotatedMethodPOJOPropertyBuilder. _selectSetterFromMultiple(POJOPropertyBuilder.Linked<AnnotatedMethod> curr, POJOPropertyBuilder.Linked<AnnotatedMethod> next)Helper method called in cases where we have encountered two setter methods that have same precedence and cannot be resolved.AnnotatedMethodAnnotatedMethodMap. find(java.lang.reflect.Method m)AnnotatedMethodAnnotatedMethodMap. find(java.lang.String name, java.lang.Class<?>[] paramTypes)AnnotatedMethodBasicBeanDescription. findJsonValueMethod()Deprecated.AnnotatedMethodAnnotatedClass. findMethod(java.lang.String name, java.lang.Class<?>[] paramTypes)AnnotatedMethodBasicBeanDescription. findMethod(java.lang.String name, java.lang.Class<?>[] paramTypes)AnnotatedMethodPOJOPropertiesCollector. getAnySetterMethod()abstract AnnotatedMethodBeanPropertyDefinition. getGetter()AnnotatedMethodPOJOPropertyBuilder. getGetter()protected AnnotatedMethodPOJOPropertyBuilder. getGetterUnchecked()Variant ofPOJOPropertyBuilder.getGetter()that does NOT trigger pruning of getter candidates.AnnotatedMethodPOJOPropertiesCollector. getJsonValueMethod()Deprecated.abstract AnnotatedMethodBeanPropertyDefinition. getSetter()AnnotatedMethodPOJOPropertyBuilder. getSetter()protected AnnotatedMethodPOJOPropertyBuilder. getSetterUnchecked()Variant ofPOJOPropertyBuilder.getSetter()that does NOT trigger pruning of setter candidates.AnnotatedMethodAnnotationIntrospectorPair. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)AnnotatedMethodJacksonAnnotationIntrospector. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)Specific implementation that will use following tie-breaker on given setter parameter types: If either one is primitive type then either returnnull(both primitives) or one that is primitive (when only primitive) If only one is of typeString, return that setter Otherwise returnnullReturningnullwill indicate that resolution could not be done.AnnotatedMethodAnnotatedMethod. withAnnotations(AnnotationMap ann)Methods in com.fasterxml.jackson.databind.introspect that return types with arguments of type AnnotatedMethod Modifier and Type Method Description protected AnnotatedAndMetadata<AnnotatedMethod,com.fasterxml.jackson.annotation.JsonCreator.Mode>BasicBeanDescription. findFactoryMethodMetadata(AnnotatedMethod am)java.util.List<AnnotatedMethod>AnnotatedClass. getFactoryMethods()java.util.List<AnnotatedMethod>BasicBeanDescription. getFactoryMethods()java.util.List<AnnotatedAndMetadata<AnnotatedMethod,com.fasterxml.jackson.annotation.JsonCreator.Mode>>BasicBeanDescription. getFactoryMethodsWithMode()java.util.List<AnnotatedMethod>AnnotatedClass. getStaticMethods()Deprecated.Since 2.9; useAnnotatedClass.getFactoryMethods()instead.java.util.Iterator<AnnotatedMethod>AnnotatedMethodMap. iterator()java.lang.Iterable<AnnotatedMethod>AnnotatedClass. memberMethods()Methods in com.fasterxml.jackson.databind.introspect with parameters of type AnnotatedMethod Modifier and Type Method Description protected voidPOJOPropertiesCollector. _addGetterMethod(java.util.Map<java.lang.String,POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai)protected voidPOJOPropertiesCollector. _addSetterMethod(java.util.Map<java.lang.String,POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai)protected intPOJOPropertyBuilder. _getterPriority(AnnotatedMethod m)protected booleanDefaultAccessorNamingStrategy. _isCglibGetCallbacks(AnnotatedMethod am)protected booleanDefaultAccessorNamingStrategy. _isGroovyMetaClassGetter(AnnotatedMethod am)protected AnnotatedMethodPOJOPropertyBuilder. _selectSetter(AnnotatedMethod currM, AnnotatedMethod nextM)protected intPOJOPropertyBuilder. _setterPriority(AnnotatedMethod m)voidPOJOPropertyBuilder. addGetter(AnnotatedMethod a, PropertyName name, boolean explName, boolean visible, boolean ignored)voidPOJOPropertyBuilder. addSetter(AnnotatedMethod a, PropertyName name, boolean explName, boolean visible, boolean ignored)protected AnnotatedAndMetadata<AnnotatedMethod,com.fasterxml.jackson.annotation.JsonCreator.Mode>BasicBeanDescription. findFactoryMethodMetadata(AnnotatedMethod am)java.lang.StringAccessorNamingStrategy.Base. findNameForIsGetter(AnnotatedMethod method, java.lang.String name)abstract java.lang.StringAccessorNamingStrategy. findNameForIsGetter(AnnotatedMethod method, java.lang.String name)Method called to find whether given method would be considered an "is-getter" getter method in context of type introspected, and if so, what is the logical property it is associated with (which in turn suggest external name for property)java.lang.StringDefaultAccessorNamingStrategy. findNameForIsGetter(AnnotatedMethod am, java.lang.String name)java.lang.StringAccessorNamingStrategy.Base. findNameForMutator(AnnotatedMethod method, java.lang.String name)abstract java.lang.StringAccessorNamingStrategy. findNameForMutator(AnnotatedMethod method, java.lang.String name)Method called to find whether given method would be considered a "mutator" (usually setter, but for builders "with-method" or similar) in context of type introspected, and if so, what is the logical property it is associated with (which in turn suggest external name for property)java.lang.StringDefaultAccessorNamingStrategy. findNameForMutator(AnnotatedMethod am, java.lang.String name)java.lang.StringAccessorNamingStrategy.Base. findNameForRegularGetter(AnnotatedMethod method, java.lang.String name)abstract java.lang.StringAccessorNamingStrategy. findNameForRegularGetter(AnnotatedMethod method, java.lang.String name)Method called to find whether given method would be considered a "regular" getter method in context of type introspected, and if so, what is the logical property it is associated with (which in turn suggest external name for property)java.lang.StringDefaultAccessorNamingStrategy. findNameForRegularGetter(AnnotatedMethod am, java.lang.String name)java.lang.StringDefaultAccessorNamingStrategy.RecordNaming. findNameForRegularGetter(AnnotatedMethod am, java.lang.String name)booleanAnnotationIntrospectorPair. hasAnyGetterAnnotation(AnnotatedMethod am)Deprecated.booleanJacksonAnnotationIntrospector. hasAnyGetterAnnotation(AnnotatedMethod am)Deprecated.booleanAnnotationIntrospectorPair. hasAnySetterAnnotation(AnnotatedMethod am)Deprecated.booleanJacksonAnnotationIntrospector. hasAnySetterAnnotation(AnnotatedMethod am)Deprecated.booleanAnnotationIntrospectorPair. hasAsValueAnnotation(AnnotatedMethod am)Deprecated.booleanJacksonAnnotationIntrospector. hasAsValueAnnotation(AnnotatedMethod am)Deprecated.protected booleanBasicBeanDescription. isFactoryMethod(AnnotatedMethod am)booleanVisibilityChecker. isGetterVisible(AnnotatedMethod m)booleanVisibilityChecker.Std. isGetterVisible(AnnotatedMethod m)booleanVisibilityChecker. isIsGetterVisible(AnnotatedMethod m)booleanVisibilityChecker.Std. isIsGetterVisible(AnnotatedMethod m)booleanVisibilityChecker. isSetterVisible(AnnotatedMethod m)booleanVisibilityChecker.Std. isSetterVisible(AnnotatedMethod m)AnnotatedMethodAnnotationIntrospectorPair. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)AnnotatedMethodJacksonAnnotationIntrospector. resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)Specific implementation that will use following tie-breaker on given setter parameter types: If either one is primitive type then either returnnull(both primitives) or one that is primitive (when only primitive) If only one is of typeString, return that setter Otherwise returnnullReturningnullwill indicate that resolution could not be done.Method parameters in com.fasterxml.jackson.databind.introspect with type arguments of type AnnotatedMethod Modifier and Type Method Description protected AnnotatedMethodPOJOPropertyBuilder. _selectSetterFromMultiple(POJOPropertyBuilder.Linked<AnnotatedMethod> curr, POJOPropertyBuilder.Linked<AnnotatedMethod> next)Helper method called in cases where we have encountered two setter methods that have same precedence and cannot be resolved.Constructor parameters in com.fasterxml.jackson.databind.introspect with type arguments of type AnnotatedMethod Constructor Description AnnotatedMethodMap(java.util.Map<MemberKey,AnnotatedMethod> m) -
Uses of AnnotatedMethod in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util that return AnnotatedMethod Modifier and Type Method Description AnnotatedMethodSimpleBeanPropertyDefinition. getGetter()AnnotatedMethodSimpleBeanPropertyDefinition. getSetter()Methods in com.fasterxml.jackson.databind.util with parameters of type AnnotatedMethod Modifier and Type Method Description protected static booleanBeanUtil. isCglibGetCallbacks(AnnotatedMethod am)This method was added to address the need to weed out CGLib-injected "getCallbacks" method.protected static booleanBeanUtil. isGroovyMetaClassGetter(AnnotatedMethod am)Another helper method to deal with Groovy's problematic metadata accessorsstatic java.lang.StringBeanUtil. okNameForGetter(AnnotatedMethod am, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringBeanUtil. okNameForIsGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringBeanUtil. okNameForMutator(AnnotatedMethod am, java.lang.String prefix, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringBeanUtil. okNameForRegularGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringBeanUtil. okNameForSetter(AnnotatedMethod am, boolean stdNaming)Deprecated.
-