org.jboss.weld.introspector
Class ForwardingWeldClass<T>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated<T,S>
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,java.lang.Class<T>>
          extended by org.jboss.weld.introspector.ForwardingWeldClass<T>
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedType<T>, WeldAnnotated<T,java.lang.Class<T>>, WeldClass<T>
Direct Known Subclasses:
ForwardingWeldAnnotation

public abstract class ForwardingWeldClass<T>
extends ForwardingWeldAnnotated<T,java.lang.Class<T>>
implements WeldClass<T>


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldClass()
           
 
Method Summary
<U> WeldClass<? extends U>
asWeldSubclass(WeldClass<U> clazz)
           
<S> S
cast(java.lang.Object object)
           
protected abstract  WeldClass<T> delegate()
           
 java.util.Set<WeldConstructor<T>> getAnnotatedWeldConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all constructors which are annotated with annotationType
 java.util.Set<WeldField<?,?>> getAnnotatedWeldFields(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<WeldMethod<?,?>> getAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all methods annotated with annotationType
 java.util.Set<WeldField<?,T>> getDeclaredAnnotatedWeldFields(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<WeldMethod<?,T>> getDeclaredAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all methods annotated with annotationType
 WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
          Get the constructor which matches the argument list provided
<F> WeldField<F,?>
getDeclaredWeldField(java.lang.String fieldName, WeldClass<F> expectedType)
          Get a field by name
 WeldMethod<?,?> getDeclaredWeldMethod(java.lang.reflect.Method method)
          Deprecated. 
<M> WeldMethod<M,?>
getDeclaredWeldMethod(MethodSignature signature, WeldClass<M> expectedReturnType)
          Get a method by name
 java.util.Set<WeldMethod<?,T>> getDeclaredWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all with parameters annotated with annotationType
 java.util.Set<WeldField<?,?>> getMetaAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all fields which are meta-annotated with metaAnnotationType
 WeldConstructor<T> getNoArgsWeldConstructor()
          Gets the no-args constructor
 java.lang.String getSimpleName()
           
<M> WeldMethod<M,?>
getWBMethod(MethodSignature signature)
          Get a method by name
 java.util.Set<WeldConstructor<T>> getWeldConstructors()
          Gets all constructors
 java.util.Set<WeldConstructor<?>> getWeldConstructorsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all with constructors annotated with annotationType
 java.util.Set<WeldField<?,?>> getWeldFields()
          Gets all fields on the type
 WeldMethod<?,?> getWeldMethod(java.lang.reflect.Method method)
          Deprecated. 
 java.util.Set<WeldMethod<?,?>> getWeldMethods()
          Gets all fields on the type
 java.util.Set<WeldMethod<?,?>> getWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all with parameters annotated with annotationType
 WeldClass<?> getWeldSuperclass()
          Gets the superclass.
 boolean isAbstract()
           
 boolean isEnum()
           
 boolean isEquivalent(java.lang.Class<?> clazz)
          Check if this is equivalent to a java class
 boolean isNonStaticMemberClass()
          Determine if this is a non-static member class
 boolean isParameterizedType()
           
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isPrivate, isProxyable, isPublic, isStatic
 
Methods inherited from class org.jboss.weld.introspector.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.introspector.WeldClass
getDeclaredWeldMethods
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isPrivate, isProxyable, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType
getConstructors, getFields, getJavaClass, getMethods
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

ForwardingWeldClass

public ForwardingWeldClass()
Method Detail

delegate

protected abstract WeldClass<T> delegate()
Specified by:
delegate in class ForwardingWeldAnnotated<T,java.lang.Class<T>>

getAnnotatedWeldConstructors

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

Specified by:
getAnnotatedWeldConstructors in interface WeldClass<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

getAnnotatedWeldFields

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

Specified by:
getAnnotatedWeldFields in interface WeldClass<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

getAnnotatedWeldMethods

public java.util.Set<WeldMethod<?,?>> getAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldClass
Gets all methods annotated with annotationType

Specified by:
getAnnotatedWeldMethods in interface WeldClass<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

getNoArgsWeldConstructor

public WeldConstructor<T> getNoArgsWeldConstructor()
Description copied from interface: WeldClass
Gets the no-args constructor

Specified by:
getNoArgsWeldConstructor in interface WeldClass<T>
Returns:
The no-args constructor, or null if not defined

getWeldConstructors

public java.util.Set<WeldConstructor<T>> getWeldConstructors()
Description copied from interface: WeldClass
Gets all constructors

Specified by:
getWeldConstructors in interface WeldClass<T>
Returns:
A set of abstracted constructors

getWeldMethods

public java.util.Set<WeldMethod<?,?>> getWeldMethods()
Description copied from interface: WeldClass
Gets all fields on the type

Specified by:
getWeldMethods in interface WeldClass<T>
Returns:
A set of abstracted fields

getDeclaredAnnotatedWeldFields

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

Specified by:
getDeclaredAnnotatedWeldFields in interface WeldClass<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

getDeclaredAnnotatedWeldMethods

public java.util.Set<WeldMethod<?,T>> getDeclaredAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldClass
Gets all methods annotated with annotationType

Specified by:
getDeclaredAnnotatedWeldMethods in interface WeldClass<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

getDeclaredWeldMethodsWithAnnotatedParameters

public java.util.Set<WeldMethod<?,T>> getDeclaredWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldClass
Gets all with parameters annotated with annotationType

Specified by:
getDeclaredWeldMethodsWithAnnotatedParameters in interface WeldClass<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

getWeldFields

public java.util.Set<WeldField<?,?>> getWeldFields()
Description copied from interface: WeldClass
Gets all fields on the type

Specified by:
getWeldFields in interface WeldClass<T>
Returns:
A set of abstracted fields

getMetaAnnotatedWeldFields

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

Specified by:
getMetaAnnotatedWeldFields in interface WeldClass<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

getWeldMethod

@Deprecated
public WeldMethod<?,?> getWeldMethod(java.lang.reflect.Method method)
Deprecated. 

Description copied from interface: WeldClass
Find the annotated method for a given methodDescriptor

Specified by:
getWeldMethod in interface WeldClass<T>
Returns:

getWBMethod

public <M> WeldMethod<M,?> getWBMethod(MethodSignature signature)
Description copied from interface: WeldClass
Get a method by name

Specified by:
getWBMethod in interface WeldClass<T>
Type Parameters:
M - the expected return type
Parameters:
signature - the name of the method
Returns:
the method, or null if it doesn't exist

getWeldMethodsWithAnnotatedParameters

public java.util.Set<WeldMethod<?,?>> getWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldClass
Gets all with parameters annotated with annotationType

Specified by:
getWeldMethodsWithAnnotatedParameters in interface WeldClass<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

getWeldConstructorsWithAnnotatedParameters

public java.util.Set<WeldConstructor<?>> getWeldConstructorsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldClass
Gets all with constructors annotated with annotationType

Specified by:
getWeldConstructorsWithAnnotatedParameters in interface WeldClass<T>
Parameters:
annotationType - The annotation to match
Returns:
A set of abstracted constructors with the given annotation. Returns an empty set if there are no matches

getWeldSuperclass

public WeldClass<?> getWeldSuperclass()
Description copied from interface: WeldClass
Gets the superclass.

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

isNonStaticMemberClass

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

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

isParameterizedType

public boolean isParameterizedType()
Specified by:
isParameterizedType in interface WeldAnnotated<T,java.lang.Class<T>>
Specified by:
isParameterizedType in interface WeldClass<T>
Overrides:
isParameterizedType in class ForwardingWeldAnnotated<T,java.lang.Class<T>>

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface WeldClass<T>

isEnum

public boolean isEnum()
Specified by:
isEnum in interface WeldClass<T>

getDeclaredWeldMethod

@Deprecated
public WeldMethod<?,?> getDeclaredWeldMethod(java.lang.reflect.Method method)
Deprecated. 

Specified by:
getDeclaredWeldMethod in interface WeldClass<T>

getDeclaredWeldField

public <F> WeldField<F,?> getDeclaredWeldField(java.lang.String fieldName,
                                               WeldClass<F> expectedType)
Description copied from interface: WeldClass
Get a field by name

Specified by:
getDeclaredWeldField in interface WeldClass<T>
Type Parameters:
F - the expected type of the field
Parameters:
fieldName - the field name
expectedType - the expected type of the field
Returns:
the field

getDeclaredWeldMethod

public <M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature,
                                                 WeldClass<M> expectedReturnType)
Description copied from interface: WeldClass
Get a method by name

Specified by:
getDeclaredWeldMethod in interface WeldClass<T>
Type Parameters:
M - the expected return type
Parameters:
signature - the name of the method
expectedReturnType - the expected return type
Returns:
the method, or null if it doesn't exist

getDeclaredWeldConstructor

public WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
Description copied from interface: WeldClass
Get the constructor which matches the argument list provided

Specified by:
getDeclaredWeldConstructor in interface WeldClass<T>
Returns:
the matching constructor, or null if not defined

asWeldSubclass

public <U> WeldClass<? extends U> asWeldSubclass(WeldClass<U> clazz)
Specified by:
asWeldSubclass in interface WeldClass<T>

cast

public <S> S cast(java.lang.Object object)
Specified by:
cast in interface WeldClass<T>

isEquivalent

public boolean isEquivalent(java.lang.Class<?> clazz)
Description copied from interface: WeldClass
Check if this is equivalent to a java class

Specified by:
isEquivalent in interface WeldClass<T>
Parameters:
clazz - The Java class
Returns:
true if equivalent

getSimpleName

public java.lang.String getSimpleName()
Specified by:
getSimpleName in interface WeldClass<T>


Copyright © 2008-2009 Seam Framework. All Rights Reserved.