T
- the type of the classpublic class WeldClassImpl<T> extends AbstractWeldAnnotated<T,Class<T>> implements WeldClass<T>
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Modifier | Constructor and Description |
---|---|
protected |
WeldClassImpl(Class<T> rawType,
Type type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
LazyValueHolder<Set<Type>> typeClosure,
Map<Class<? extends Annotation>,Annotation> annotationMap,
Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap,
ClassTransformer classTransformer) |
Modifier and Type | Method and Description |
---|---|
<U> WeldClass<? extends U> |
asWeldSubclass(WeldClass<U> clazz) |
<S> S |
cast(Object object) |
Class<? extends T> |
getAnnotatedClass()
Gets the implementing class
|
Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> |
getConstructors() |
Collection<WeldField<?,?>> |
getDeclaredFields() |
Set<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) |
<M> WeldMethod<M,?> |
getDeclaredWeldMethod(MethodSignature signature)
Get a method by name
|
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
|
Class<T> |
getDelegate()
Gets the delegate (class)
|
Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> |
getFields() |
Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> |
getMethods() |
String |
getName()
Gets the name of the type
|
WeldConstructor<T> |
getNoArgsWeldConstructor()
Gets the no-args constructor
|
Package |
getPackage() |
String |
getSimpleName() |
Collection<WeldConstructor<T>> |
getWeldConstructors(Class<? extends Annotation> annotationType)
Gets constructors with given annotation type
|
Collection<WeldField<?,?>> |
getWeldFields()
Gets the abstracted fields of the class
Initializes the fields if they are null
|
Collection<WeldField<?,?>> |
getWeldFields(Class<? extends Annotation> annotationType)
Gets the abstracted field annotated with a specific annotation type
If the fields map is null, initialize it first
|
WeldMethod<?,?> |
getWeldMethod(Method methodDescriptor)
Find the annotated method for a given methodDescriptor
|
<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 the abstracted methods that have a certain annotation type present
If the annotated methods map is null, initialize it first
|
WeldClass<? super T> |
getWeldSuperclass()
Gets the superclass abstraction of the type
|
boolean |
isAbstract() |
boolean |
isAnonymousClass() |
boolean |
isDiscovered() |
boolean |
isEnum() |
boolean |
isEquivalent(Class<?> clazz)
Check if this is equivalent to a java class
|
boolean |
isFinal()
Indicates if the type if final
|
boolean |
isGeneric() |
boolean |
isLocalClass() |
boolean |
isMemberClass() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isPublic()
Indicates if this annotated item is public
|
boolean |
isSerializable() |
boolean |
isStatic()
Indicates if the type is static
|
static <T> WeldClass<T> |
of(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
ClassTransformer classTransformer) |
static <T> WeldClass<T> |
of(Class<T> clazz,
ClassTransformer classTransformer) |
static <T> WeldClass<T> |
of(Class<T> rawType,
Type type,
ClassTransformer classTransformer) |
String |
toString()
Gets a string representation of the class
|
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isParameterizedType
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isPrimitive
protected WeldClassImpl(Class<T> rawType, Type type, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, LazyValueHolder<Set<Type>> typeClosure, Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer)
public static <T> WeldClass<T> of(Class<T> clazz, ClassTransformer classTransformer)
public static <T> WeldClass<T> of(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, ClassTransformer classTransformer)
public static <T> WeldClass<T> of(Class<T> rawType, Type type, ClassTransformer classTransformer)
public Class<? extends T> getAnnotatedClass()
public Class<T> getDelegate()
getDelegate
in class AbstractWeldAnnotated<T,Class<T>>
public Collection<WeldField<?,?>> getWeldFields()
getWeldFields
in interface WeldClass<T>
public Collection<WeldField<?,?>> getDeclaredFields()
public <F> WeldField<F,?> getDeclaredWeldField(String fieldName)
WeldClass
getDeclaredWeldField
in interface WeldClass<T>
F
- the expected type of the fieldfieldName
- the field namepublic Collection<WeldField<?,? super T>> getDeclaredWeldFields(Class<? extends Annotation> annotationType)
WeldClass
getDeclaredWeldFields
in interface WeldClass<T>
annotationType
- The annotation to matchpublic WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
WeldClass
getDeclaredWeldConstructor
in interface WeldClass<T>
public Collection<WeldField<?,?>> getWeldFields(Class<? extends Annotation> annotationType)
getWeldFields
in interface WeldClass<T>
annotationType
- The annotation type to matchpublic boolean isLocalClass()
isLocalClass
in interface WeldClass<T>
public boolean isAnonymousClass()
isAnonymousClass
in interface WeldClass<T>
public boolean isMemberClass()
isMemberClass
in interface WeldClass<T>
public boolean isAbstract()
isAbstract
in interface WeldClass<T>
public boolean isSerializable()
isSerializable
in interface WeldClass<T>
public Collection<WeldMethod<?,?>> getWeldMethods(Class<? extends Annotation> annotationType)
getWeldMethods
in interface WeldClass<T>
annotationType
- The annotation type to matchWeldClass.getWeldMethods(Class)
public Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods(Class<? extends Annotation> annotationType)
WeldClass
getDeclaredWeldMethods
in interface WeldClass<T>
annotationType
- The annotation to matchpublic Collection<WeldConstructor<T>> getWeldConstructors(Class<? extends Annotation> annotationType)
getWeldConstructors
in interface WeldClass<T>
annotationType
- The annotation type to matchWeldClass.getWeldConstructors(Class)
public WeldConstructor<T> getNoArgsWeldConstructor()
WeldClass
getNoArgsWeldConstructor
in interface WeldClass<T>
public Collection<WeldMethod<?,? super T>> getDeclaredWeldMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
WeldClass
getDeclaredWeldMethodsWithAnnotatedParameters
in interface WeldClass<T>
annotationType
- The annotation to matchpublic WeldMethod<?,?> getWeldMethod(Method methodDescriptor)
WeldClass
getWeldMethod
in interface WeldClass<T>
public Collection<WeldMethod<?,? super T>> getWeldMethods()
WeldClass
getWeldMethods
in interface WeldClass<T>
public WeldMethod<?,?> getDeclaredWeldMethod(Method method)
getDeclaredWeldMethod
in interface WeldClass<T>
public Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods()
WeldClass
getDeclaredWeldMethods
in interface WeldClass<T>
public <M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature)
WeldClass
getDeclaredWeldMethod
in interface WeldClass<T>
M
- the expected return typesignature
- the name of the methodpublic <M> WeldMethod<M,?> getWeldMethod(MethodSignature signature)
WeldClass
getWeldMethod
in interface WeldClass<T>
M
- the expected return typesignature
- the name of the methodpublic String toString()
public String getSimpleName()
getSimpleName
in interface WeldClass<T>
public boolean isStatic()
isStatic
in interface WeldAnnotated<T,Class<T>>
WeldAnnotated.isStatic()
public boolean isFinal()
isFinal
in interface WeldAnnotated<T,Class<T>>
WeldAnnotated.isFinal()
public boolean isPublic()
WeldAnnotated
isPublic
in interface WeldAnnotated<T,Class<T>>
public boolean isGeneric()
isGeneric
in interface WeldAnnotated<T,Class<T>>
public String getName()
getName
in interface WeldAnnotated<T,Class<T>>
WeldAnnotated.getName()
public WeldClass<? super T> getWeldSuperclass()
getWeldSuperclass
in interface WeldClass<T>
public boolean isEquivalent(Class<?> clazz)
WeldClass
isEquivalent
in interface WeldClass<T>
clazz
- The Java classpublic boolean isPrivate()
isPrivate
in interface WeldAnnotated<T,Class<T>>
public boolean isPackagePrivate()
isPackagePrivate
in interface WeldAnnotated<T,Class<T>>
public Package getPackage()
getPackage
in interface WeldAnnotated<T,Class<T>>
public <U> WeldClass<? extends U> asWeldSubclass(WeldClass<U> clazz)
asWeldSubclass
in interface WeldClass<T>
public Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
getConstructors
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
getFields
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
getMethods
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
WeldClass
getDeclaredMetaAnnotations
in interface WeldClass<T>
public boolean isDiscovered()
isDiscovered
in interface WeldClass<T>
Copyright © 2012 Seam Framework. All Rights Reserved.