java.lang.Object
tools.jackson.databind.introspect.Annotated
tools.jackson.databind.introspect.AnnotatedMember
- Direct Known Subclasses:
AnnotatedField,AnnotatedParameter,AnnotatedWithParams,VirtualAnnotatedMember
Intermediate base class for annotated entities that are members of
a class; fields, methods and constructors. This is a superset
of things that can represent logical properties as it contains
constructors in addition to fields and methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationMapprotected final TypeResolutionContextContext object needed for resolving generic type associated with this member (method parameter or return value, or field type). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCopy-constructor.protectedAnnotatedMember(TypeResolutionContext ctxt, AnnotationMap annotations) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Not to be used by code outside jackson-databind.final voidfixAccess(boolean force) Method that can be called to modify access rights, by callingAccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean)on the underlying annotated element.final <A extends Annotation>
AgetAnnotation(Class<A> acls) abstract Class<?>Actual physical class in which this member was declared.abstract Memberabstract ObjectOptional method that can be used to access the value of this member on given object, if this is a supported operation for member type.final booleanhasAnnotation(Class<? extends Annotation> acls) booleanhasOneOf(Class<? extends Annotation>[] annoClasses) abstract voidOptional method that can be used to assign value of this member on given object, if this is a supported operation for member type.abstract AnnotatedwithAnnotations(AnnotationMap fallback) Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.Methods inherited from class tools.jackson.databind.introspect.Annotated
equals, getAnnotated, getModifiers, getName, getRawType, getType, hashCode, isPublic, isStatic, toString
-
Field Details
-
_typeContext
Context object needed for resolving generic type associated with this member (method parameter or return value, or field type). -
_annotations
-
-
Constructor Details
-
AnnotatedMember
-
AnnotatedMember
Copy-constructor.
-
-
Method Details
-
withAnnotations
Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones. -
getDeclaringClass
Actual physical class in which this member was declared. -
getMember
-
getFullName
-
getAnnotation
- Specified by:
getAnnotationin classAnnotated
-
hasAnnotation
- Specified by:
hasAnnotationin classAnnotated
-
hasOneOf
-
annotations
- Specified by:
annotationsin classAnnotated
-
fixAccess
public final void fixAccess(boolean force) Method that can be called to modify access rights, by callingAccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean)on the underlying annotated element.Note that caller should verify that
MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERSis enabled before calling this method; as well as passforceflag appropriately. -
setValue
public abstract void setValue(Object pojo, Object value) throws UnsupportedOperationException, IllegalArgumentException Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type.This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
-
getValue
public abstract Object getValue(Object pojo) throws UnsupportedOperationException, IllegalArgumentException Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type.This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
-
_annotationMap
Deprecated.Not to be used by code outside jackson-databind.Internal method used byPOJOProperiesCollectorto merge annotations from this member with those from another member.NOTE: NOT to be used by code outside jackson-databind (but has to be public to be accessible from POJOPropertiesCollector).
-