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

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

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<java.lang.Object>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all annotations which are annotated with the given annotation type
 java.util.Set<AnnotatedMethod<java.lang.Object>> 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<java.lang.Object>> getFields()
          Gets all fields on the type
 java.util.Set<AnnotatedField<java.lang.Object>> getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all fields which are meta-annotated with metaAnnotationType
 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
 AnnotatedClass<java.lang.Object> getSuperclass()
          Gets the superclass
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isFinal, isProxyable, isStatic
 

Method Detail

getFields

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

Returns:
A set of abstracted fields

getAnnotatedFields

java.util.Set<AnnotatedField<java.lang.Object>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all annotations which are annotated with the given annotation type

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<java.lang.Object>> 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<java.lang.Object>> 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

getMethod

AnnotatedMethod<java.lang.Object> getMethod(MethodDescriptor methodDescriptor)
Find the annotated method for a given methodDescriptor

Parameters:
methodDescriptor -
Returns:

getMethodsWithAnnotatedParameters

java.util.Set<AnnotatedMethod<java.lang.Object>> 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

getSuperclass

AnnotatedClass<java.lang.Object> getSuperclass()
Gets the superclass

Specified by:
getSuperclass in interface AnnotatedType<T>
Returns:
The abstracted superclass


Copyright © 2008. All Rights Reserved.