public class BackedAnnotatedType<X> extends BackedAnnotated implements SlimAnnotatedType<X>, java.io.Serializable
SlimAnnotatedType.SerializationProxy<X>| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear up cached content to save memory.
|
boolean |
equals(java.lang.Object obj) |
protected java.lang.reflect.AnnotatedElement |
getAnnotatedElement() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType)
Get program element annotation of a certain annotation type.
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Get all annotations of the program element.
|
java.util.Set<AnnotatedConstructor<X>> |
getConstructors()
Get the constructors of the type.
|
java.util.Set<AnnotatedField<? super X>> |
getFields()
Get the fields of the type.
|
AnnotatedTypeIdentifier |
getIdentifier() |
java.lang.Class<X> |
getJavaClass()
Get the underlying
Class. |
java.util.Set<AnnotatedMethod<? super X>> |
getMethods()
Get the methods of the type.
|
ReflectionCache |
getReflectionCache() |
int |
hashCode() |
protected LazyValueHolder<java.util.Set<java.lang.reflect.Type>> |
initTypeClosure(java.lang.reflect.Type baseType,
SharedObjectCache cache) |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
static <X> BackedAnnotatedType<X> |
of(java.lang.Class<X> javaClass,
SharedObjectCache sharedObjectCache,
ReflectionCache reflectionCache,
java.lang.String contextId,
java.lang.String bdaId) |
static <X> BackedAnnotatedType<X> |
of(java.lang.Class<X> javaClass,
java.lang.reflect.Type baseType,
SharedObjectCache sharedObjectCache,
ReflectionCache reflectionCache,
java.lang.String contextId,
java.lang.String bdaId) |
java.lang.String |
toString() |
getTypeClosuregetBaseTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBaseType, getTypeClosurepublic static <X> BackedAnnotatedType<X> of(java.lang.Class<X> javaClass, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, java.lang.String contextId, java.lang.String bdaId)
public static <X> BackedAnnotatedType<X> of(java.lang.Class<X> javaClass, java.lang.reflect.Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, java.lang.String contextId, java.lang.String bdaId)
protected LazyValueHolder<java.util.Set<java.lang.reflect.Type>> initTypeClosure(java.lang.reflect.Type baseType, SharedObjectCache cache)
initTypeClosure in class BackedAnnotatedprotected java.lang.reflect.AnnotatedElement getAnnotatedElement()
getAnnotatedElement in class BackedAnnotatedpublic java.lang.Class<X> getJavaClass()
AnnotatedType
Get the underlying Class.
getJavaClass in interface AnnotatedType<X>Classpublic java.util.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 java.util.Set<AnnotatedMethod<? super X>> getMethods()
AnnotatedTypeGet the methods of the type.
getMethods in interface AnnotatedType<X>public java.util.Set<AnnotatedField<? super X>> getFields()
AnnotatedTypeGet the fields of the type.
getFields in interface AnnotatedType<X>public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.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(java.lang.Class<? extends java.lang.annotation.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 java.util.Set<java.lang.annotation.Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
getAnnotations in interface AnnotatedgetAnnotations in class BackedAnnotatedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
SlimAnnotatedTypeclear in interface SlimAnnotatedType<X>public ReflectionCache getReflectionCache()
getReflectionCache in class BackedAnnotatedpublic AnnotatedTypeIdentifier getIdentifier()
getIdentifier in interface Identified<AnnotatedTypeIdentifier>Copyright © 2015. All Rights Reserved.