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

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,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,Class<T>>, WeldClass<T>
Direct Known Subclasses:
ForwardingWeldAnnotation

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


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldClass()
           
 
Method Summary
<U> WeldClass<? extends U>
asWeldSubclass(WeldClass<U> clazz)
           
<S> S
cast(Object object)
           
protected abstract  WeldClass<T> delegate()
           
 Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
           
 Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
          Gets all annotations which are declared on this annotated item with the given meta annotation type
 WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
          Get the constructor which matches the argument list provided
<F> WeldField<F,?>
getDeclaredWeldField(String fieldName)
          Get a field by name
 Collection<WeldField<?,? super T>> getDeclaredWeldFields(Class<? extends Annotation> annotationType)
          Gets all fields which are annotated with the given annotation type on this class only.
 WeldMethod<?,?> getDeclaredWeldMethod(Method method)
          Deprecated. 
<M> WeldMethod<M,?>
getDeclaredWeldMethod(MethodSignature signature)
          Get a method by name
<M> WeldMethod<M,?>
getDeclaredWeldMethod(MethodSignature signature, WeldClass<M> expectedReturnType)
           
 Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods()
          Gets all fields on the type
 Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods(Class<? extends Annotation> annotationType)
          Gets all methods annotated with annotationType
 Collection<WeldMethod<?,? super T>> getDeclaredWeldMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
          Gets declared with parameters annotated with annotationType
 Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
           
 Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
           
 WeldConstructor<T> getNoArgsWeldConstructor()
          Gets the no-args constructor
 String getSimpleName()
           
 Collection<WeldConstructor<T>> getWeldConstructors(Class<? extends Annotation> annotationType)
          Gets all constructors which are annotated with annotationType
 Collection<WeldField<?,?>> getWeldFields()
          Gets all fields on the type
 Collection<WeldField<?,?>> getWeldFields(Class<? extends Annotation> annotationType)
          Gets all fields which are annotated with the given annotation type on this class and all super classes
 WeldMethod<?,?> getWeldMethod(Method method)
          Deprecated. 
<M> WeldMethod<M,?>
getWeldMethod(MethodSignature signature)
          Get a method by name
 Collection<WeldMethod<?,? super T>> getWeldMethods()
          Gets all fields on the type
 Collection<WeldMethod<?,?>> getWeldMethods(Class<? extends Annotation> annotationType)
          Gets all methods annotated with annotationType
 WeldClass<? super T> getWeldSuperclass()
          Gets the superclass.
 boolean isAbstract()
           
 boolean isAnonymousClass()
           
 boolean isDiscovered()
           
 boolean isEnum()
           
 boolean isEquivalent(Class<?> clazz)
          Check if this is equivalent to a java class
 boolean isLocalClass()
           
 boolean isMemberClass()
           
 boolean isParameterizedType()
           
 boolean isSerializable()
           
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, 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.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType
getJavaClass
 
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,Class<T>>

getDeclaredWeldMethods

public Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods()
Description copied from interface: WeldClass
Gets all fields on the type

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

getDeclaredWeldMethod

public <M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature)
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
Returns:
the method, or null if it doesn't exist

getConstructors

public Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
Specified by:
getConstructors in interface javax.enterprise.inject.spi.AnnotatedType<T>

getMethods

public Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
Specified by:
getMethods in interface javax.enterprise.inject.spi.AnnotatedType<T>

getFields

public Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
Specified by:
getFields in interface javax.enterprise.inject.spi.AnnotatedType<T>

getWeldConstructors

public Collection<WeldConstructor<T>> getWeldConstructors(Class<? extends Annotation> annotationType)
Description copied from interface: WeldClass
Gets all constructors which are annotated with annotationType

Specified by:
getWeldConstructors 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

getWeldFields

public Collection<WeldField<?,?>> getWeldFields(Class<? extends 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:
getWeldFields 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

getWeldMethods

public Collection<WeldMethod<?,?>> getWeldMethods(Class<? extends Annotation> annotationType)
Description copied from interface: WeldClass
Gets all methods annotated with annotationType

Specified by:
getWeldMethods 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

getWeldMethods

public Collection<WeldMethod<?,? super T>> 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

getDeclaredWeldFields

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

Specified by:
getDeclaredWeldFields 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

getDeclaredWeldMethods

public Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods(Class<? extends Annotation> annotationType)
Description copied from interface: WeldClass
Gets all methods annotated with annotationType

Specified by:
getDeclaredWeldMethods 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 Collection<WeldMethod<?,? super T>> getDeclaredWeldMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
Description copied from interface: WeldClass
Gets declared 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 Collection<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

getWeldMethod

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

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

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

getWeldMethod

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

Specified by:
getWeldMethod 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

getWeldSuperclass

public WeldClass<? super T> 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

isLocalClass

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

isMemberClass

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

isAnonymousClass

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

isParameterizedType

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

isAbstract

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

isEnum

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

isSerializable

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

getDeclaredWeldMethod

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

Specified by:
getDeclaredWeldMethod in interface WeldClass<T>

getDeclaredWeldField

public <F> WeldField<F,?> getDeclaredWeldField(String fieldName)
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
Returns:
the field

getDeclaredWeldMethod

public <M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature,
                                                 WeldClass<M> expectedReturnType)

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(Object object)
Specified by:
cast in interface WeldClass<T>

isEquivalent

public boolean isEquivalent(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 String getSimpleName()
Specified by:
getSimpleName in interface WeldClass<T>

getDeclaredMetaAnnotations

public Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
Description copied from interface: WeldClass
Gets all annotations which are declared on this annotated item with the given meta annotation type

Specified by:
getDeclaredMetaAnnotations in interface WeldClass<T>
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.

isDiscovered

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


Copyright © 2013 Seam Framework. All Rights Reserved.