X - the typepublic class UnbackedAnnotatedType<X> extends UnbackedAnnotated implements SlimAnnotatedType<X>, Serializable
AnnotatedType. This may seem unnecessary, however it does mean we are providing a
consistent view for debugging, error reporting etc. This implementation is also serializable no matter if the original
extension-provided AnnotatedType implementation is.SlimAnnotatedType.IdentifiedAnnotatedTypeSerializationProxy<X>| Constructor and Description |
|---|
UnbackedAnnotatedType(Type baseType,
Set<Type> typeClosure,
Set<Annotation> annotations,
Class<X> javaClass,
Set<AnnotatedConstructor<X>> originalConstructors,
Set<AnnotatedMethod<? super X>> originalMethods,
Set<AnnotatedField<? super X>> originalFields,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear up cached content to save memory.
|
boolean |
equals(Object obj) |
Set<AnnotatedConstructor<X>> |
getConstructors()
Get the constructors of the type.
|
Set<AnnotatedField<? super X>> |
getFields()
Get the fields of the type.
|
String |
getID()
The
AnnotatedType identifier |
Class<X> |
getJavaClass()
Get the underlying
Class. |
Set<AnnotatedMethod<? super X>> |
getMethods()
Get the methods of the type.
|
int |
hashCode() |
static <X> UnbackedAnnotatedType<X> |
of(AnnotatedType<X> originalType) |
static <X> UnbackedAnnotatedType<X> |
of(AnnotatedType<X> originalType,
String id) |
String |
toString() |
getAnnotation, getAnnotations, getTypeClosure, isAnnotationPresentgetBaseTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentpublic UnbackedAnnotatedType(Type baseType, Set<Type> typeClosure, Set<Annotation> annotations, Class<X> javaClass, Set<AnnotatedConstructor<X>> originalConstructors, Set<AnnotatedMethod<? super X>> originalMethods, Set<AnnotatedField<? super X>> originalFields, String id)
public static <X> UnbackedAnnotatedType<X> of(AnnotatedType<X> originalType)
public static <X> UnbackedAnnotatedType<X> of(AnnotatedType<X> originalType, String id)
public 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 String getID()
IdentifiedAnnotatedTypeAnnotatedType identifiergetID in interface IdentifiedAnnotatedType<X>public void clear()
SlimAnnotatedTypeclear in interface SlimAnnotatedType<X>Copyright © 2012 Seam Framework. All Rights Reserved.