public abstract class Annotated
extends java.lang.Object
AnnotationMap
).Modifier | Constructor and Description |
---|---|
protected |
Annotated() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Iterable<java.lang.annotation.Annotation> |
annotations()
Accessor that can be used to iterate over all the annotations
associated with annotated component.
|
abstract boolean |
equals(java.lang.Object o) |
protected abstract AnnotationMap |
getAllAnnotations()
Internal helper method used to access annotation information;
not exposed to developers since instances are mutable.
|
abstract java.lang.reflect.AnnotatedElement |
getAnnotated()
Method that can be used to find actual JDK element that this instance
represents.
|
abstract <A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> acls) |
java.lang.reflect.Type |
getGenericType()
Deprecated.
Since 2.7 should instead use
getType() . To be removed from 2.8 |
protected abstract int |
getModifiers() |
abstract java.lang.String |
getName() |
abstract java.lang.Class<?> |
getRawType()
"Raw" type (type-erased class) of the annotated element; definition
of what exactly this means depends on sub-class.
|
abstract JavaType |
getType()
Full generic type of the annotated element; definition
of what exactly this means depends on sub-class.
|
JavaType |
getType(TypeBindings bogus)
Deprecated.
Since 2.7 Use
getType() instead. To be removed from 2.8. |
abstract boolean |
hasAnnotation(java.lang.Class<?> acls) |
abstract int |
hashCode() |
abstract boolean |
hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses) |
boolean |
isPublic() |
abstract java.lang.String |
toString() |
abstract Annotated |
withAnnotations(AnnotationMap fallback)
Fluent factory method that will construct a new instance that uses specified
instance annotations instead of currently configured ones.
|
Annotated |
withFallBackAnnotationsFrom(Annotated annotated)
Fluent factory method that will construct a new instance that uses
annotations from specified
Annotated as fallback annotations |
public abstract <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
public abstract boolean hasAnnotation(java.lang.Class<?> acls)
public abstract boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
public abstract Annotated withAnnotations(AnnotationMap fallback)
public final Annotated withFallBackAnnotationsFrom(Annotated annotated)
Annotated
as fallback annotationspublic abstract java.lang.reflect.AnnotatedElement getAnnotated()
protected abstract int getModifiers()
public final boolean isPublic()
public abstract java.lang.String getName()
public abstract JavaType getType()
@Deprecated public final JavaType getType(TypeBindings bogus)
getType()
instead. To be removed from 2.8.@Deprecated public java.lang.reflect.Type getGenericType()
getType()
. To be removed from 2.8TypeResolutionContext
, and
as a result use of this method was deprecated in Jackson 2.7: see
getType()
for replacement.public abstract java.lang.Class<?> getRawType()
public abstract java.lang.Iterable<java.lang.annotation.Annotation> annotations()
protected abstract AnnotationMap getAllAnnotations()
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract java.lang.String toString()
toString
in class java.lang.Object