Class Annotated
java.lang.Object
org.codehaus.jackson.map.introspect.Annotated
- Direct Known Subclasses:
AnnotatedClass
,AnnotatedMember
Shared base class used for anything on which annotations (included
within a
AnnotationMap
).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AnnotationMap
abstract AnnotatedElement
Method that can be used to find actual JDK element that this instance represents.abstract <A extends Annotation>
AgetAnnotation
(Class<A> acls) abstract Type
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.protected abstract int
abstract String
getName()
abstract Class<?>
"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.getType
(TypeBindings context) Full generic type of the annotated element; definition of what exactly this means depends on sub-class.final <A extends Annotation>
booleanhasAnnotation
(Class<A> acls) final boolean
isPublic()
abstract Annotated
withAnnotations
(AnnotationMap fallback) Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.final Annotated
withFallBackAnnotationsFrom
(Annotated annotated) Fluent factory method that will construct a new instance that uses annotations from specifiedAnnotated
as fallback annotations
-
Constructor Details
-
Annotated
protected Annotated()
-
-
Method Details
-
getAnnotation
-
hasAnnotation
-
withAnnotations
Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.- Since:
- 1.9
-
withFallBackAnnotationsFrom
Fluent factory method that will construct a new instance that uses annotations from specifiedAnnotated
as fallback annotations- Since:
- 1.9
-
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. -
getModifiers
protected abstract int getModifiers() -
isPublic
public final boolean isPublic() -
getName
-
getType
Full generic type of the annotated element; definition of what exactly this means depends on sub-class. -
getGenericType
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.- Since:
- 1.5
-
getRawType
"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.- Since:
- 1.5
-
getAllAnnotations
-