public abstract class Annotated extends Object
AnnotationMap
).Modifier | Constructor and Description |
---|---|
protected |
Annotated() |
Modifier and Type | Method and Description |
---|---|
abstract Iterable<Annotation> |
annotations()
Accessor that can be used to iterate over all the annotations
associated with annotated component.
|
abstract boolean |
equals(Object o) |
protected abstract AnnotationMap |
getAllAnnotations()
Internal helper method used to access annotation information;
not exposed to developers since instances are mutable.
|
abstract AnnotatedElement |
getAnnotated()
Method that can be used to find actual JDK element that this instance
represents.
|
abstract <A extends Annotation> |
getAnnotation(Class<A> acls) |
Type |
getGenericType()
Deprecated.
Since 2.7 should instead use
getType() . To be removed from 2.8 |
protected abstract int |
getModifiers() |
abstract String |
getName() |
abstract 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(Class<?> acls) |
abstract int |
hashCode() |
boolean |
isPublic() |
abstract 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 Annotation> A getAnnotation(Class<A> acls)
public abstract boolean hasAnnotation(Class<?> acls)
public abstract Annotated withAnnotations(AnnotationMap fallback)
public final Annotated withFallBackAnnotationsFrom(Annotated annotated)
Annotated
as fallback annotationspublic abstract AnnotatedElement getAnnotated()
protected abstract int getModifiers()
public final boolean isPublic()
public abstract String getName()
public abstract JavaType getType()
@Deprecated public final JavaType getType(TypeBindings bogus)
getType()
instead. To be removed from 2.8.@Deprecated public Type getGenericType()
getType()
. To be removed from 2.8public abstract Class<?> getRawType()
public abstract Iterable<Annotation> annotations()
protected abstract AnnotationMap getAllAnnotations()
Copyright © 2008–2015 FasterXML. All rights reserved.