org.jboss.webbeans.introspector
Class ForwardingAnnotatedClass<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,java.lang.Class<T>>
      extended by org.jboss.webbeans.introspector.ForwardingAnnotatedType<T>
          extended by org.jboss.webbeans.introspector.ForwardingAnnotatedClass<T>
All Implemented Interfaces:
AnnotatedClass<T>, AnnotatedItem<T,java.lang.Class<T>>, AnnotatedType<T>
Direct Known Subclasses:
WrappedAnnotatedClass

public abstract class ForwardingAnnotatedClass<T>
extends ForwardingAnnotatedType<T>
implements AnnotatedClass<T>


Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingAnnotatedClass()
           
 
Method Summary
protected abstract  AnnotatedClass<T> delegate()
          Gets the annotated item
 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 of the type
 boolean isNonStaticMemberClass()
          Determine if this is a non-static member class
 boolean isParameterizedType()
           
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedType
getSimpleName, isEquivalent
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

ForwardingAnnotatedClass

public ForwardingAnnotatedClass()
Method Detail

delegate

protected abstract AnnotatedClass<T> delegate()
Description copied from class: ForwardingAnnotatedItem
Gets the annotated item

Specified by:
delegate in class ForwardingAnnotatedType<T>
Returns:
The annotated item

getAnnotatedConstructors

public java.util.Set<AnnotatedConstructor<T>> getAnnotatedConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all constructors which are annotated with annotationType

Specified by:
getAnnotatedConstructors in interface AnnotatedClass<T>
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

getAnnotatedFields

public java.util.Set<AnnotatedField<?>> getAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all fields which are annotated with the given annotation type on this class and all super classes

Specified by:
getAnnotatedFields in interface AnnotatedClass<T>
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

getAnnotatedMethods

public java.util.Set<AnnotatedMethod<?>> getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all methods annotated with annotationType

Specified by:
getAnnotatedMethods in interface AnnotatedClass<T>
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

getConstructor

public AnnotatedConstructor<T> getConstructor(java.util.List<java.lang.Class<?>> arguments)
Description copied from interface: AnnotatedClass
Gets the constructor with arguments given

Specified by:
getConstructor in interface AnnotatedClass<T>
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

getConstructors

public java.util.Set<AnnotatedConstructor<T>> getConstructors()
Description copied from interface: AnnotatedClass
Gets all constructors

Specified by:
getConstructors in interface AnnotatedClass<T>
Returns:
A set of abstracted constructors

getDeclaredAnnotatedFields

public java.util.Set<AnnotatedField<?>> getDeclaredAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all fields which are annotated with the given annotation type on this class only.

Specified by:
getDeclaredAnnotatedFields in interface AnnotatedClass<T>
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

getDeclaredAnnotatedMethods

public java.util.Set<AnnotatedMethod<?>> getDeclaredAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all methods annotated with annotationType

Specified by:
getDeclaredAnnotatedMethods in interface AnnotatedClass<T>
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

public java.util.Set<AnnotatedMethod<?>> getDeclaredMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all with parameters annotated with annotationType

Specified by:
getDeclaredMethodsWithAnnotatedParameters in interface AnnotatedClass<T>
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

getFields

public java.util.Set<AnnotatedField<?>> getFields()
Description copied from interface: AnnotatedClass
Gets all fields on the type

Specified by:
getFields in interface AnnotatedClass<T>
Returns:
A set of abstracted fields

getMetaAnnotatedFields

public java.util.Set<AnnotatedField<?>> getMetaAnnotatedFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: AnnotatedClass
Gets all fields which are meta-annotated with metaAnnotationType

Specified by:
getMetaAnnotatedFields in interface AnnotatedClass<T>
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

getMethod

public AnnotatedMethod<?> getMethod(java.lang.reflect.Method method)
Description copied from interface: AnnotatedClass
Find the annotated method for a given methodDescriptor

Specified by:
getMethod in interface AnnotatedClass<T>
Returns:

getMethodsWithAnnotatedParameters

public java.util.Set<AnnotatedMethod<?>> getMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedClass
Gets all with parameters annotated with annotationType

Specified by:
getMethodsWithAnnotatedParameters in interface AnnotatedClass<T>
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

public AnnotatedClass<?> getSuperclass()
Description copied from interface: AnnotatedType
Gets the superclass of the type

Specified by:
getSuperclass in interface AnnotatedClass<T>
Specified by:
getSuperclass in interface AnnotatedType<T>
Overrides:
getSuperclass in class ForwardingAnnotatedType<T>
Returns:
The abstracted superclass

isNonStaticMemberClass

public boolean isNonStaticMemberClass()
Description copied from interface: AnnotatedClass
Determine if this is a non-static member class

Specified by:
isNonStaticMemberClass in interface AnnotatedClass<T>
Returns:
true if this is a non-static member

isParameterizedType

public boolean isParameterizedType()
Specified by:
isParameterizedType in interface AnnotatedClass<T>

getDeclaredMethod

public AnnotatedMethod<?> getDeclaredMethod(java.lang.reflect.Method method)
Specified by:
getDeclaredMethod in interface AnnotatedClass<T>


Copyright © 2008-2009. All Rights Reserved.