Class ParameterNamesAnnotationIntrospector
java.lang.Object
com.fasterxml.jackson.databind.AnnotationIntrospector
com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector
com.fasterxml.jackson.module.paramnames.ParameterNamesAnnotationIntrospector
- All Implemented Interfaces:
Versioned,Serializable
Introspector that uses parameter name information provided by the Java Reflection API additions in Java 8 to
determine the parameter name for methods and constructors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
AnnotationIntrospector.ReferenceProperty, AnnotationIntrospector.XmlExtensions -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector
instance -
Method Summary
Modifier and TypeMethodDescriptionfindCreatorAnnotation(MapperConfig<?> config, Annotated a) Method called to check whether potential Creator (constructor or static factory method) has explicit annotation to indicate it as actual Creator; and if so, whichJsonCreator.Modeto use.Method for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent.Methods inherited from class com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector
versionMethods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
allIntrospectors, allIntrospectors, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorBinding, findDefaultEnumValue, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationConverter, findDeserializer, findEnumAliases, findEnumAliases, findEnumNamingStrategy, findEnumValue, findEnumValues, findEnumValues, findFilterId, findFormat, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPolymorphicTypeInfo, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnoralByName, findPropertyIgnorals, findPropertyInclusion, findPropertyInclusionByName, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRenameByField, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsKey, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, nopInstance, pair, refineDeserializationType, refineSerializationType, resolveSetterConflict
-
Method Details
-
findImplicitPropertyName
Description copied from class:AnnotationIntrospectorMethod for finding implicit name for a property that given annotated member (field, method, creator parameter) may represent. This is different from explicit, annotation-based property name, in that it is "weak" and does not either proof that a property exists (for example, if visibility is not high enough), or override explicit names. In practice this method is used to introspect optional names for creator parameters (which may or may not be available and cannot be detected by standard databind); or to provide alternate name mangling for fields, getters and/or setters.- Overrides:
findImplicitPropertyNamein classAnnotationIntrospector
-
findCreatorAnnotation
Description copied from class:AnnotationIntrospectorMethod called to check whether potential Creator (constructor or static factory method) has explicit annotation to indicate it as actual Creator; and if so, whichJsonCreator.Modeto use.NOTE: caller needs to consider possibility of both `null` (no annotation found) and
JsonCreator.Mode.DISABLED(annotation found, but disabled); latter is necessary as marker in case multiple introspectors are chained, as well as possibly as when using mix-in annotations.- Overrides:
findCreatorAnnotationin classAnnotationIntrospector- Parameters:
config- Configuration settings in effect (for serialization or deserialization)a- Annotated accessor (usually constructor or static method) to check- Returns:
- Creator mode found, if any;
nullif none
-