|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotatedClass<T>
Represents a Class
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Method Summary | ||
---|---|---|
|
asSubclass(AnnotatedClass<U> clazz)
|
|
|
cast(java.lang.Object object)
|
|
java.util.Set<AnnotatedConstructor<T>> |
getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all constructors which are annotated with annotationType |
|
java.util.Set<AnnotatedField<?>> |
getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this class and all super classes |
|
java.util.Set<AnnotatedMethod<?>> |
getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType |
|
java.util.Set<AnnotatedConstructor<T>> |
getConstructors()
Gets all constructors |
|
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 |
|
AnnotatedMethod<?> |
getDeclaredMethod(java.lang.reflect.Method method)
Deprecated. |
|
|
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.util.Set<AnnotatedField<?>> |
getFields()
Gets all fields on the type |
|
java.util.Set<AnnotatedField<?>> |
getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all fields which are meta-annotated with metaAnnotationType |
|
AnnotatedMethod<?> |
getMethod(java.lang.reflect.Method method)
Deprecated. |
|
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 |
|
AnnotatedClass<?> |
getSuperclass()
Gets the superclass. |
|
boolean |
isAbstract()
|
|
boolean |
isEnum()
|
|
boolean |
isNonStaticMemberClass()
Determine if this is a non-static member class |
|
boolean |
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 |
---|
java.util.Set<AnnotatedField<?>> getFields()
<F> AnnotatedField<F> getDeclaredField(java.lang.String fieldName, AnnotatedClass<F> expectedType)
F
- the expected type of the fieldfieldName
- the field nameexpectedType
- the expected type of the field
java.util.Set<AnnotatedField<?>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
java.util.Set<AnnotatedField<?>> getDeclaredAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
java.util.Set<AnnotatedField<?>> getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
metaAnnotationType
- The meta annotation to match
java.util.Set<AnnotatedConstructor<T>> getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation type to match
java.util.Set<AnnotatedConstructor<T>> getConstructors()
AnnotatedConstructor<T> getNoArgsConstructor()
AnnotatedConstructor<T> getDeclaredConstructor(ConstructorSignature signature)
parameterTypes
- the parameters of the constructor
java.util.Set<AnnotatedMethod<?>> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
java.util.Set<AnnotatedMethod<?>> getDeclaredAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
@Deprecated AnnotatedMethod<?> getMethod(java.lang.reflect.Method method)
methodDescriptor
-
<M> AnnotatedMethod<M> getDeclaredMethod(MethodSignature signature, AnnotatedClass<M> expectedReturnType)
M
- the expected return typesignature
- the name of the methodexpectedReturnType
- the expected return type
@Deprecated AnnotatedMethod<?> getDeclaredMethod(java.lang.reflect.Method method)
java.util.Set<AnnotatedMethod<?>> getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
java.util.Set<AnnotatedMethod<?>> getDeclaredMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- The annotation to match
AnnotatedClass<?> getSuperclass()
getSuperclass
in interface AnnotatedType<T>
boolean isNonStaticMemberClass()
boolean isParameterizedType()
isParameterizedType
in interface AnnotatedItem<T,java.lang.Class<T>>
boolean isAbstract()
boolean isEnum()
<S> S cast(java.lang.Object object)
<U> AnnotatedClass<? extends U> asSubclass(AnnotatedClass<U> clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |