|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,java.lang.Class<T>>
org.jboss.webbeans.introspector.jlr.AbstractAnnotatedType<T>
org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl<T>
T - public class AnnotatedClassImpl<T>
Represents an annotated class This class is immutable, and therefore threadsafe
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
AbstractAnnotatedItem.AnnotationMap |
| Field Summary |
|---|
| Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
MAPPED_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
AnnotatedClassImpl(java.lang.Class<T> clazz)
Constructor Calls another constructor with the class annotations array |
|
AnnotatedClassImpl(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
Constructor Initializes superclass with built annotation map, sets the raw type and determines the actual type arguments |
|
| Method Summary | |
|---|---|
java.lang.reflect.Type[] |
getActualTypeArguments()
Gets the actual type arguments |
java.lang.Class<? extends T> |
getAnnotatedClass()
Gets the implementing class |
java.util.Set<AnnotatedConstructor<T>> |
getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets constructors with given annotation type |
java.util.Set<AnnotatedField<java.lang.Object>> |
getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the abstracted field annotated with a specific annotation type If the fields map is null, initialize it first |
java.util.Set<AnnotatedMethod<java.lang.Object>> |
getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the abstracted methods that have a certain annotation type present If the annotated methods map is null, initialize it first |
AnnotatedConstructor<T> |
getConstructor(java.util.List<java.lang.Class<?>> arguments)
Gets a constructor with given arguments |
java.util.Set<AnnotatedConstructor<T>> |
getConstructors()
Gets the abstracted constructors of the class Initializes the constructors if they are null |
java.lang.Class<T> |
getDelegate()
Gets the delegate (class) |
java.util.Set<AnnotatedField<java.lang.Object>> |
getFields()
Gets the abstracted fields of the class Initializes the fields if they are null |
java.util.Set<AnnotatedField<java.lang.Object>> |
getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets abstracted fields with requested meta-annotation type present If the meta-annotations map is null, it is initializes. |
AnnotatedMethod<java.lang.Object> |
getMethod(MethodDescriptor methodDescriptor)
Find the annotated method for a given methodDescriptor |
java.util.Set<AnnotatedMethod<java.lang.Object>> |
getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType |
java.lang.Class<T> |
getType()
Gets the type of the class |
java.lang.String |
toDetailedString()
|
java.lang.String |
toString()
Gets a string representation of the class |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedType |
|---|
getName, getSuperclass, isFinal, isStatic |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
buildAnnotationMap, buildAnnotationMap, equals, getAnnotation, getAnnotationMap, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getParameterValues, getParameterValues, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isProxyable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedClass |
|---|
getSuperclass |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getName, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isFinal, isProxyable, isStatic |
| Constructor Detail |
|---|
public AnnotatedClassImpl(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
rawType - The raw type of the classtype - The type of the classannotations - The array of annotations on the classpublic AnnotatedClassImpl(java.lang.Class<T> clazz)
clazz - The implementing class| Method Detail |
|---|
public java.lang.Class<? extends T> getAnnotatedClass()
public java.lang.Class<T> getDelegate()
getDelegate in class AbstractAnnotatedItem<T,java.lang.Class<T>>public java.util.Set<AnnotatedField<java.lang.Object>> getFields()
getFields in interface AnnotatedClass<T>public java.util.Set<AnnotatedConstructor<T>> getConstructors()
getConstructors in interface AnnotatedClass<T>public java.util.Set<AnnotatedField<java.lang.Object>> getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
getMetaAnnotatedFields in interface AnnotatedClass<T>metaAnnotationType - The meta-annotation type to match
public java.util.Set<AnnotatedField<java.lang.Object>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedFields in interface AnnotatedClass<T>annotationType - The annotation type to match
public java.lang.Class<T> getType()
getType in interface AnnotatedItem<T,java.lang.Class<T>>public java.lang.reflect.Type[] getActualTypeArguments()
getActualTypeArguments in interface AnnotatedItem<T,java.lang.Class<T>>AnnotatedItem.getActualTypeArguments()public java.util.Set<AnnotatedMethod<java.lang.Object>> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedMethods in interface AnnotatedClass<T>annotationType - The annotation type to match
AnnotatedClass.getAnnotatedMethods(Class)public java.util.Set<AnnotatedConstructor<T>> getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedConstructors in interface AnnotatedClass<T>annotationType - The annotation type to match
AnnotatedClass.getAnnotatedConstructors(Class)public AnnotatedConstructor<T> getConstructor(java.util.List<java.lang.Class<?>> arguments)
getConstructor in interface AnnotatedClass<T>arguments - The arguments to match
AnnotatedClass.getConstructor(List)public java.util.Set<AnnotatedMethod<java.lang.Object>> getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedClass
getMethodsWithAnnotatedParameters in interface AnnotatedClass<T>annotationType - The annotation to match
public AnnotatedMethod<java.lang.Object> getMethod(MethodDescriptor methodDescriptor)
AnnotatedClass
getMethod in interface AnnotatedClass<T>public java.lang.String toString()
toString in class AbstractAnnotatedType<T>public java.lang.String toDetailedString()
toDetailedString in class AbstractAnnotatedType<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||