public class BackedAnnotatedType<X> extends BackedAnnotated implements SlimAnnotatedType<X>, Serializable
SlimAnnotatedType.SerializationProxy<X>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear up cached content to save memory.
|
boolean |
equals(Object obj) |
protected AnnotatedElement |
getAnnotatedElement() |
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
Set<Annotation> |
getAnnotations()
Get all annotations of the program element.
|
Set<AnnotatedConstructor<X>> |
getConstructors()
Get the constructors of the type.
|
Set<AnnotatedField<? super X>> |
getFields()
Get the fields of the type.
|
AnnotatedTypeIdentifier |
getIdentifier() |
Class<X> |
getJavaClass()
Get the underlying
Class . |
Set<AnnotatedMethod<? super X>> |
getMethods()
Get the methods of the type.
|
ReflectionCache |
getReflectionCache() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X> BackedAnnotatedType<X> |
of(Class<X> javaClass,
SharedObjectCache sharedObjectCache,
ReflectionCache reflectionCache,
String bdaId) |
static <X> BackedAnnotatedType<X> |
of(Class<X> javaClass,
Type baseType,
SharedObjectCache sharedObjectCache,
ReflectionCache reflectionCache,
String bdaId) |
String |
toString() |
getTypeClosure, initTypeClosure
getBaseType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBaseType, getTypeClosure
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String bdaId)
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String bdaId)
protected AnnotatedElement getAnnotatedElement()
getAnnotatedElement
in class BackedAnnotated
public Class<X> getJavaClass()
AnnotatedType
Get the underlying Class
.
getJavaClass
in interface AnnotatedType<X>
Class
public Set<AnnotatedConstructor<X>> getConstructors()
AnnotatedType
Get the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.
getConstructors
in interface AnnotatedType<X>
public Set<AnnotatedMethod<? super X>> getMethods()
AnnotatedType
Get the methods of the type.
getMethods
in interface AnnotatedType<X>
public Set<AnnotatedField<? super X>> getFields()
AnnotatedType
Get the fields of the type.
getFields
in interface AnnotatedType<X>
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Annotated
Get program element annotation of a certain annotation type.
getAnnotation
in interface Annotated
T
- the type of the annotationannotationType
- the class of the annotation typepublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Annotated
Determine if the program element has an annotation of a certain annotation type.
isAnnotationPresent
in interface Annotated
annotationType
- the annotation type to check forpublic Set<Annotation> getAnnotations()
Annotated
Get all annotations of the program element.
getAnnotations
in interface Annotated
getAnnotations
in class BackedAnnotated
public void clear()
SlimAnnotatedType
clear
in interface SlimAnnotatedType<X>
public ReflectionCache getReflectionCache()
getReflectionCache
in class BackedAnnotated
public AnnotatedTypeIdentifier getIdentifier()
getIdentifier
in interface Identified<AnnotatedTypeIdentifier>
Copyright © 2013 Seam Framework. All Rights Reserved.