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 contextId,
String bdaId) |
static <X> BackedAnnotatedType<X> |
of(Class<X> javaClass,
Type baseType,
SharedObjectCache sharedObjectCache,
ReflectionCache reflectionCache,
String contextId,
String bdaId) |
String |
toString() |
getTypeClosure, initTypeClosuregetBaseTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBaseType, getTypeClosurepublic static <X> BackedAnnotatedType<X> of(Class<X> javaClass, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)
protected AnnotatedElement getAnnotatedElement()
getAnnotatedElement in class BackedAnnotatedpublic Class<X> getJavaClass()
AnnotatedType
Get the underlying Class.
getJavaClass in interface AnnotatedType<X>Classpublic Set<AnnotatedConstructor<X>> getConstructors()
AnnotatedTypeGet 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()
AnnotatedTypeGet the methods of the type.
getMethods in interface AnnotatedType<X>public Set<AnnotatedField<? super X>> getFields()
AnnotatedTypeGet the fields of the type.
getFields in interface AnnotatedType<X>public <T extends Annotation> T getAnnotation(Class<T> annotationType)
AnnotatedGet program element annotation of a certain annotation type.
getAnnotation in interface AnnotatedT - the type of the annotationannotationType - the class of the annotation typepublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
isAnnotationPresent in interface AnnotatedannotationType - the annotation type to check forpublic Set<Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
getAnnotations in interface AnnotatedgetAnnotations in class BackedAnnotatedpublic void clear()
SlimAnnotatedTypeclear in interface SlimAnnotatedType<X>public ReflectionCache getReflectionCache()
getReflectionCache in class BackedAnnotatedpublic AnnotatedTypeIdentifier getIdentifier()
getIdentifier in interface Identified<AnnotatedTypeIdentifier>Copyright © 2013 Seam Framework. All Rights Reserved.