|
||||||||||
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
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Method Summary | ||
---|---|---|
|
asSubclass(AnnotatedClass<U> clazz)
|
|
T |
cast(java.lang.Object object)
|
|
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<?>> |
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<?>> |
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 |
|
java.util.Set<AnnotatedConstructor<T>> |
getConstructors()
Gets the abstracted constructors of the class Initializes the constructors if they are null |
|
java.util.Set<AnnotatedField<?>> |
getDeclaredAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this class only. |
|
java.util.Set<AnnotatedMethod<?>> |
getDeclaredAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType |
|
AnnotatedConstructor<T> |
getDeclaredConstructor(ConstructorSignature signature)
Get the constructor which matches the argument list provided |
|
|
getDeclaredField(java.lang.String fieldName,
AnnotatedClass<F> expectedType)
Get a field by name |
|
java.util.Set<AnnotatedField<?>> |
getDeclaredFields()
|
|
AnnotatedMethod<?> |
getDeclaredMethod(java.lang.reflect.Method method)
|
|
|
getDeclaredMethod(MethodSignature signature,
AnnotatedClass<M> expectedReturnType)
Get a method by name |
|
java.util.Set<AnnotatedMethod<?>> |
getDeclaredMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType |
|
java.lang.Class<T> |
getDelegate()
Gets the delegate (class) |
|
java.util.Set<AnnotatedField<?>> |
getFields()
Gets the abstracted fields of the class Initializes the fields if they are null |
|
java.util.Set<AnnotatedField<?>> |
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<?> |
getMethod(java.lang.reflect.Method methodDescriptor)
Find the annotated method for a given methodDescriptor |
|
java.util.Set<AnnotatedMethod<?>> |
getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType |
|
AnnotatedConstructor<T> |
getNoArgsConstructor()
Gets the no-args constructor |
|
boolean |
isAbstract()
|
|
boolean |
isEnum()
|
|
boolean |
isNonStaticMemberClass()
Determine if this is a non-static member class |
|
static
|
of(java.lang.Class<T> clazz,
ClassTransformer classTransformer)
|
|
java.lang.String |
toString()
Gets a string representation of the class |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedType |
---|
getName, getSimpleName, getSuperclass, isEquivalent, isFinal, isPublic, isStatic |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
---|
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, 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, isParameterizedType |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedType |
---|
getSimpleName, isEquivalent |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic |
Method Detail |
---|
public static <T> AnnotatedClass<T> of(java.lang.Class<T> clazz, ClassTransformer classTransformer)
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<?>> getFields()
getFields
in interface AnnotatedClass<T>
public java.util.Set<AnnotatedField<?>> getDeclaredFields()
public <F> AnnotatedField<F> getDeclaredField(java.lang.String fieldName, AnnotatedClass<F> expectedType)
AnnotatedClass
getDeclaredField
in interface AnnotatedClass<T>
F
- the expected type of the fieldfieldName
- the field nameexpectedType
- the expected type of the field
public java.util.Set<AnnotatedField<?>> getDeclaredAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedClass
getDeclaredAnnotatedFields
in interface AnnotatedClass<T>
annotationType
- The annotation to match
public java.util.Set<AnnotatedConstructor<T>> getConstructors()
getConstructors
in interface AnnotatedClass<T>
public AnnotatedConstructor<T> getDeclaredConstructor(ConstructorSignature signature)
AnnotatedClass
getDeclaredConstructor
in interface AnnotatedClass<T>
public java.util.Set<AnnotatedField<?>> 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<?>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedFields
in interface AnnotatedClass<T>
annotationType
- The annotation type to match
public boolean isNonStaticMemberClass()
AnnotatedClass
isNonStaticMemberClass
in interface AnnotatedClass<T>
public boolean isAbstract()
isAbstract
in interface AnnotatedClass<T>
public boolean isEnum()
isEnum
in interface AnnotatedClass<T>
public java.util.Set<AnnotatedMethod<?>> 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<AnnotatedMethod<?>> getDeclaredAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedClass
getDeclaredAnnotatedMethods
in interface AnnotatedClass<T>
annotationType
- The annotation to match
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> getNoArgsConstructor()
AnnotatedClass
getNoArgsConstructor
in interface AnnotatedClass<T>
public java.util.Set<AnnotatedMethod<?>> getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedClass
getMethodsWithAnnotatedParameters
in interface AnnotatedClass<T>
annotationType
- The annotation to match
public java.util.Set<AnnotatedMethod<?>> getDeclaredMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedClass
getDeclaredMethodsWithAnnotatedParameters
in interface AnnotatedClass<T>
annotationType
- The annotation to match
public AnnotatedMethod<?> getMethod(java.lang.reflect.Method methodDescriptor)
AnnotatedClass
getMethod
in interface AnnotatedClass<T>
public AnnotatedMethod<?> getDeclaredMethod(java.lang.reflect.Method method)
getDeclaredMethod
in interface AnnotatedClass<T>
public <M> AnnotatedMethod<M> getDeclaredMethod(MethodSignature signature, AnnotatedClass<M> expectedReturnType)
AnnotatedClass
getDeclaredMethod
in interface AnnotatedClass<T>
M
- the expected return typesignature
- the name of the methodexpectedReturnType
- the expected return type
public java.lang.String toString()
toString
in class AbstractAnnotatedType<T>
public <U> AnnotatedClass<? extends U> asSubclass(AnnotatedClass<U> clazz)
asSubclass
in interface AnnotatedClass<T>
public T cast(java.lang.Object object)
cast
in interface AnnotatedClass<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |