Class Annotated
java.lang.Object
com.fasterxml.jackson.databind.introspect.Annotated
- Direct Known Subclasses:
AnnotatedClass,AnnotatedMember
Shared base class used for anything on which annotations (included
within a
AnnotationMap).-
Method Summary
Modifier and TypeMethodDescriptionabstract Iterable<Annotation> Deprecated.abstract booleanabstract AnnotatedElementMethod that can be used to find actual JDK element that this instance represents.abstract <A extends Annotation>
AgetAnnotation(Class<A> acls) abstract StringgetName()abstract Class<?> "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.abstract JavaTypegetType()Full generic type of the annotated element; definition of what exactly this means depends on sub-class.abstract booleanhasAnnotation(Class<?> acls) abstract inthashCode()abstract booleanhasOneOf(Class<? extends Annotation>[] annoClasses) booleanisPublic()booleanisStatic()abstract StringtoString()
-
Method Details
-
getAnnotation
-
hasAnnotation
-
hasOneOf
- Since:
- 2.7
-
getAnnotated
Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart. -
isPublic
public boolean isPublic() -
isStatic
public boolean isStatic()- Since:
- 2.16.2
-
getName
-
getType
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.- Since:
- 2.7
-
getRawType
"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class. -
annotations
Deprecated.Since 2.9 should instead usegetAnnotated()Accessor that can be used to iterate over all the annotations associated with annotated component.- Since:
- 2.3
-
equals
-
hashCode
public abstract int hashCode() -
toString
-
getAnnotated()