org.jboss.webbeans.introspector
Interface AnnotatedClass<T>

All Superinterfaces:
AnnotatedItem<T,java.lang.Class<T>>, AnnotatedType<T>
All Known Implementing Classes:
AnnotatedClassImpl, ForwardingAnnotatedClass, WrappedAnnotatedClass

public interface AnnotatedClass<T>
extends AnnotatedType<T>

Represents a Class

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Method Summary
 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
 AnnotatedConstructor<T> getConstructor(java.util.List<java.lang.Class<?>> arguments)
          Gets the constructor with arguments given
 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
 AnnotatedMethod<?> getDeclaredMethod(java.lang.reflect.Method method)
           
 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)
          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
 AnnotatedClass<?> getSuperclass()
          Gets the superclass.
 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, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic
 

Method Detail

getFields

java.util.Set<AnnotatedField<?>> getFields()
Gets all fields on the type

Returns:
A set of abstracted fields

getAnnotatedFields

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

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted fields with the given annotation. Returns an empty set if there are no matches

getDeclaredAnnotatedFields

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.

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted fields with the given annotation. Returns an empty set if there are no matches

getMetaAnnotatedFields

java.util.Set<AnnotatedField<?>> getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all fields which are meta-annotated with metaAnnotationType

Parameters:
metaAnnotationType - The meta annotation to match
Returns:
A set of abstracted fields with the given meta-annotation. Returns an empty set if there are no matches

getAnnotatedConstructors

java.util.Set<AnnotatedConstructor<T>> getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all constructors which are annotated with annotationType

Parameters:
annotationType - The annotation type to match
Returns:
A set of abstracted fields with the given annotation. Returns an empty set if there are no matches

getConstructors

java.util.Set<AnnotatedConstructor<T>> getConstructors()
Gets all constructors

Returns:
A set of abstracted constructors

getConstructor

AnnotatedConstructor<T> getConstructor(java.util.List<java.lang.Class<?>> arguments)
Gets the constructor with arguments given

Parameters:
arguments - The list of arguments to match
Returns:
A set of abstracted constructors with the given arguments. Returns an empty set if there are no matches

getAnnotatedMethods

java.util.Set<AnnotatedMethod<?>> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted methods with the given annotation. Returns an empty set if there are no matches

getDeclaredAnnotatedMethods

java.util.Set<AnnotatedMethod<?>> getDeclaredAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted methods with the given annotation. Returns an empty set if there are no matches

getMethod

AnnotatedMethod<?> getMethod(java.lang.reflect.Method method)
Find the annotated method for a given methodDescriptor

Parameters:
methodDescriptor -
Returns:

getDeclaredMethod

AnnotatedMethod<?> getDeclaredMethod(java.lang.reflect.Method method)

getMethodsWithAnnotatedParameters

java.util.Set<AnnotatedMethod<?>> getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted methods with the given annotation. Returns an empty set if there are no matches

getDeclaredMethodsWithAnnotatedParameters

java.util.Set<AnnotatedMethod<?>> getDeclaredMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType

Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted methods with the given annotation. Returns an empty set if there are no matches

getSuperclass

AnnotatedClass<?> getSuperclass()
Gets the superclass.

Specified by:
getSuperclass in interface AnnotatedType<T>
Returns:
The abstracted superclass, null if there is no superclass

isNonStaticMemberClass

boolean isNonStaticMemberClass()
Determine if this is a non-static member class

Returns:
true if this is a non-static member

isParameterizedType

boolean isParameterizedType()


Copyright © 2008-2009. All Rights Reserved.