public abstract class Annotated
extends java.lang.Object
AnnotationMap
).Modifier | Constructor and Description |
---|---|
protected |
Annotated() |
Modifier and Type | Method and Description |
---|---|
protected abstract AnnotationMap |
getAllAnnotations() |
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) |
abstract java.lang.reflect.Type |
getGenericType()
Full generic type of the annotated element; definition
of what exactly this means depends on sub-class.
|
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.
|
JavaType |
getType(TypeBindings context)
Full generic type of the annotated element; definition
of what exactly this means depends on sub-class.
|
<A extends java.lang.annotation.Annotation> |
hasAnnotation(java.lang.Class<A> acls) |
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.
|
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 final <A extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<A> acls)
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 JavaType getType(TypeBindings context)
public abstract java.lang.reflect.Type getGenericType()
public abstract java.lang.Class<?> getRawType()
protected abstract AnnotationMap getAllAnnotations()