AnnotationIntrospector implementation that handles standard
Jackson annotations.
| Modifier and Type | Field and Description |
|---|---|
| protected transient LRUMap | _annotationsInside
Since introspection of annotation types is a performance issue in some use cases (rare, but do exist), let's try a simple cache to reduce need for actual meta-annotation introspection. |
| protected boolean | |
| private static final Java7Support | |
| private static final Class | |
| private static final Class | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | |
| protected Class | |
| protected StdTypeResolverBuilder | _constructNoTypeResolverBuilder()
Helper method for dealing with "no type info" marker; can't be null (as it'd be replaced by default typing) |
| protected StdTypeResolverBuilder | _constructStdTypeResolverBuilder()
Helper method for constructing standard |
| protected TypeResolverBuilder | _constructStdTypeResolverBuilder(MapperConfig<?> config, JsonTypeInfo.
Helper method for constructing standard |
| protected BeanPropertyWriter | _constructVirtualProperty(JsonAppend.
|
| protected BeanPropertyWriter | |
| private JsonMappingException | |
| private JsonMappingException | |
| protected PropertyName | |
| private final Boolean | |
| protected TypeResolverBuilder | _findTypeResolver(MapperConfig<?> config, Annotated ann, JavaType baseType)
Helper method called to construct and initialize instance of |
| protected boolean | |
| private boolean | |
| private boolean | |
| protected PropertyName | |
| private JsonInclude. | |
| public void | findAndAddVirtualProperties(MapperConfig<?> config, AnnotatedClass ac, List<BeanPropertyWriter> properties)
Overrides com. |
| public VisibilityChecker | findAutoDetectVisibility(AnnotatedClass
Annotated class to introspect ac, VisibilityChecker<?> Default visibility settings in effect before any override checker)Overrides com. |
| public String | findClassDescription(AnnotatedClass
Annotated class to introspect ac)Overrides com. |
| public Object | findContentDeserializer(Annotated a)
Overrides com. Collection, array or
Map property.
|
| public Object | findContentSerializer(Annotated a)
Overrides com. Collection, array or Map property.
|
| public JsonCreator. | findCreatorAnnotation(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated accessor (usually constructor or static method) to check a)Overrides com. com. to use.
|
| public JsonCreator. | findCreatorBinding(Annotated
Annotated entity to check a)Overrides com.
Deprecated
Method for finding indication of creator binding mode for
a creator (something for which hasCreatorAnnotation returns
true), for cases where there may be ambiguity (currently: single-argument
creator with implicit but no explicit name for the argument).
|
| public Enum | findDefaultEnumValue(Class<Enum<?>>
The Enum class to scan for the default value enumCls)Overrides com.
Deprecated
Finds the Enum value that should be considered the default value, if possible.
|
| public Enum | Returns: null if none found or it's not possible to determine one.The Enum class to scan for the default value annotation. annotatedClass, Enum<?>[] The Enum values of the Enum class. enumValues)Overrides com. |
| public Object | findDeserializationContentConverter(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Converter that annotated property
has indicated needs to be used for values of container type
(this also means that method should only be called for properties
of container types, List/Map/array properties).
|
| public Object | findDeserializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Converter that annotated entity
(property or class) has indicated to be used as part of
deserialization.
|
| public Object | findDeserializer(Annotated a)
Overrides com. |
| public void | findEnumAliases(Class<?>
Type of Enumeration enumType, Enum<?>[] Values of enumeration enumValues, String[][] (in/out) Pre-allocated array where aliases found, if any, may be
added (in indexes matching those of aliasList)enumValues)Overrides com.
Deprecated
Method that is related to findEnumValues but is called to check if
there are alternative names (aliased) that can be accepted for entries, in
addition to primary names introspected earlier.
|
| public void | findEnumAliases(MapperConfig<?>
The configuration of the mapper config, AnnotatedClass The annotated class of the enumeration type annotatedClass, Enum<?>[] The values of the enumeration enumValues, String[][] (in/out) Pre-allocated array where aliases found, if any, may be added (in indexes
matching those of aliasList)enumValues)Overrides com. findEnumValues.
|
| public Object | findEnumNamingStrategy(MapperConfig<?> config, AnnotatedClass
Annotated class to introspect ac)Overrides com. EnumNamingStrategy for given
class, if any specified by annotations; and if so, either return
a EnumNamingStrategy instance, or Class to use for
creating instance
|
| public String | findEnumValue(Enum<?>
Enum value to introspect value)Overrides com.
Deprecated
Since 2.6, we have supported use of JsonProperty for specifying
explicit serialized name
|
| public String[] | findEnumValues(Class<?>
Type of Enumeration enumType, Enum<?>[] Values of enumeration enumValues, String[] Matching declared names of enumeration values (with indexes
matching names)enumValues entries)Overrides com.
Deprecated
Method for efficiently figuring out which if given set of Enum values
have explicitly defined name.
|
| public String[] | findEnumValues(MapperConfig<?>
the mapper configuration to use config, AnnotatedClass the annotated class for which to find the explicit names annotatedClass, Enum<?>[] the set of enumValues, String[] Enum values to find the explicit names forthe matching declared names of enumeration values (with indexes matching
names)enumValues entries)Overrides com. Enum values, if any.
|
| public Object | findFilterId(Annotated
Annotated entity to introspect a)Overrides com. |
| public JsonFormat. | findFormat(Annotated ann)
Overrides com. |
| public String | findImplicitPropertyName(AnnotatedMember m)
Overrides com. |
| public JacksonInject. | findInjectableValue(AnnotatedMember
Member to check m)Overrides com. |
| public Object | |
| public Object | findKeyDeserializer(Annotated a)
Overrides com. Map property.
|
| public Object | findKeySerializer(Annotated a)
Overrides com. java.util.Map property.
|
| public Boolean | findMergeInfo(Annotated
Annotated entity to check a)Overrides com. |
| public PropertyName | findNameForDeserialization(Annotated
Annotated entity to check a)Overrides com. |
| public PropertyName | findNameForSerialization(Annotated
Property accessor to check a)Overrides com. |
| public Object | findNamingStrategy(AnnotatedClass
Annotated class to introspect ac)Overrides com. PropertyNamingStrategy for given
class, if any specified by annotations; and if so, either return
a PropertyNamingStrategy instance, or Class to use for
creating instance
|
| public Object | findNullSerializer(Annotated a)
Overrides com. |
| public ObjectIdInfo | findObjectIdInfo(Annotated
Annotated entity to introspect ann)Overrides com. |
| public ObjectIdInfo | findObjectReferenceInfo(Annotated
Annotated entity to introspect ann, ObjectIdInfo (optional) Base Object Id information, if any; objectIdInfo)null if noneOverrides com. |
| public Class | findPOJOBuilder(AnnotatedClass
Annotated class to introspect ac)Overrides com. |
| public JsonPOJOBuilder. | findPOJOBuilderConfig(AnnotatedClass
Annotated class to introspect ac)Overrides com. |
| public JsonTypeInfo. | findPolymorphicTypeInfo(MapperConfig<?>
Effective mapper configuration in use config, Annotated Annotated entity to introspect ann)Overrides com. |
| public JsonProperty. | findPropertyAccess(Annotated m)
Overrides com. |
| public List | findPropertyAliases(Annotated m)
Overrides com. |
| public TypeResolverBuilder | findPropertyContentTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Type of property for which resolver is to be found (must be a container type) containerType)Overrides com. |
| public String | findPropertyDefaultValue(Annotated ann)
Overrides com. |
| public String | findPropertyDescription(Annotated ann)
Overrides com. |
| public JsonIgnoreProperties. | findPropertyIgnoralByName(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated entity (Class, Accessor) to introspect a)Overrides com. |
| public JsonIgnoreProperties. | findPropertyIgnorals(Annotated
Annotated class to introspect ac)Overrides com.
Deprecated
|
| public JsonInclude. | findPropertyInclusion(Annotated a)
Overrides com. |
| public JsonIncludeProperties. | findPropertyInclusionByName(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated entity (Class, Accessor) to introspect a)Overrides com. |
| public Integer | findPropertyIndex(Annotated ann)
Overrides com. |
| public TypeResolverBuilder | findPropertyTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Base java type of property for which resolver is to be found baseType)Overrides com. |
| public AnnotationIntrospector. | findReferenceType(AnnotatedMember member)
Overrides com. |
| public PropertyName | findRenameByField(MapperConfig<?>
Effective mapper configuration in use config, AnnotatedField Field to check f, PropertyName Implicit name of the field; usually name of field itself but not always,
used as the target name for accessors to rename. implName)Overrides com. |
| public PropertyName | findRootName(AnnotatedClass
Annotated class to introspect ac)Overrides com. |
| public Object | findSerializationContentConverter(AnnotatedMember
Annotated property (field, method) to check. a)Overrides com. Converter that annotated property
has indicated needs to be used for values of container type
(this also means that method should only be called for properties
of container types, List/Map/array properties).
|
| public Object | findSerializationConverter(Annotated
Annotated property (field, method) or class to check for
annotations a)Overrides com. Converter that annotated entity
(property or class) has indicated to be used as part of
serialization.
|
| public String[] | findSerializationPropertyOrder(AnnotatedClass ac)
Overrides com. |
| public Boolean | findSerializationSortAlphabetically(Annotated ann)
Overrides com. |
| public JsonSerialize. | findSerializationTyping(Annotated a)
Overrides com. |
| public Object | findSerializer(Annotated a)
Overrides com. |
| public JsonSetter. | findSetterInfo(Annotated
Annotated entity to check a)Overrides com. |
| public List | findSubtypes(Annotated
Annotated entity (class, field/method) to check for annotations a)Overrides com. |
| private List | |
| public String | findTypeName(AnnotatedClass
Class to check for type name annotations ac)Overrides com. |
| public TypeResolverBuilder | findTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedClass Annotated class to check for annotations ac, JavaType Base java type of value for which resolver is to be found baseType)Overrides com. |
| public NameTransformer | findUnwrappingNameTransformer(AnnotatedMember member)
Overrides com. |
| public Object | findValueInstantiator(AnnotatedClass
Annotated class to introspect ac)Overrides com. ValueInstantiator to use for given
type (class): return value can either be an instance of
instantiator, or class of instantiator to create.
|
| public Class | findViews(Annotated
Annotated property (represented by a method, field or ctor parameter) a)Overrides com. |
| public Boolean | hasAnyGetter(Annotated
Annotated entity to check a)Overrides com. |
| public boolean | hasAnyGetterAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public Boolean | hasAnySetter(Annotated
Annotated entity to check a)Overrides com. |
| public boolean | hasAnySetterAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public Boolean | hasAsKey(MapperConfig<?> config, Annotated a)
Overrides com. |
| public Boolean | hasAsValue(Annotated a)
Overrides com. |
| public boolean | hasAsValueAnnotation(AnnotatedMethod
Annotated method to check am)Overrides com.
Deprecated
|
| public boolean | hasCreatorAnnotation(Annotated
Annotated entity to check a)Overrides com.
Deprecated
Method for checking whether given annotated item (method, constructor)
has an annotation
that suggests that the method is a "creator" (aka factory)
method to be used for construct new instances of deserialized
values.
|
| public boolean | hasIgnoreMarker(AnnotatedMember m)
Overrides com. |
| public Boolean | hasRequiredMarker(AnnotatedMember m)
Overrides com. |
| public boolean | isAnnotationBundle(Annotation
Annotated entity to introspect ann)Overrides com. JacksonAnnotationsInside
are considered bundles.
|
| public Boolean | isIgnorableType(AnnotatedClass
Annotated class to introspect ac)Overrides com. |
| public Boolean | isTypeId(AnnotatedMember
Annotated accessor (field/method/constructor parameter) to check for annotations member)Overrides com. |
| protected Object | |
| public JavaType | refineDeserializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides com. |
| public JavaType | refineSerializationType(final MapperConfig<?> config, final Annotated a, final JavaType baseType)
Overrides com. |
| public AnnotatedMethod | resolveSetterConflict(MapperConfig<?> config, AnnotatedMethod setter1, AnnotatedMethod setter2)
Overrides com.
|
| public JacksonAnnotationIntrospector | setConstructorPropertiesImpliesCreator(boolean b)
Method for changing behavior of |
| public Version | version()
Implements abstract com. Implements com. Version for details).
|