|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WeldClass<T>
Represents a Class
Field Summary |
---|
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated |
---|
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS |
Method Summary | ||
---|---|---|
|
asWeldSubclass(WeldClass<U> clazz)
|
|
|
cast(Object object)
|
|
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 |
|
|
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. |
|
|
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 |
|
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. |
|
|
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 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 |
---|
getConstructors, getFields, getJavaClass, getMethods |
Methods inherited from interface javax.enterprise.inject.spi.Annotated |
---|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
Method Detail |
---|
Collection<WeldField<?,?>> getWeldFields()
Collection<WeldMethod<?,? super T>> getWeldMethods()
Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods()
<F> WeldField<F,?> getDeclaredWeldField(String fieldName)
F
- the expected type of the fieldfieldName
- the field name
Collection<WeldField<?,?>> getWeldFields(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match
Collection<WeldField<?,? super T>> getDeclaredWeldFields(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match
Collection<WeldConstructor<T>> getWeldConstructors(Class<? extends Annotation> annotationType)
annotationType
- The annotation type to match
WeldConstructor<T> getNoArgsWeldConstructor()
WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
parameterTypes
- the parameters of the constructor
Collection<WeldMethod<?,?>> getWeldMethods(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match
Collection<WeldMethod<?,? super T>> getDeclaredWeldMethods(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match
@Deprecated WeldMethod<?,?> getWeldMethod(Method method)
methodDescriptor
-
<M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature)
M
- the expected return typesignature
- the name of the method
<M> WeldMethod<M,?> getWeldMethod(MethodSignature signature)
M
- the expected return typesignature
- the name of the method
@Deprecated WeldMethod<?,?> getDeclaredWeldMethod(Method method)
Collection<WeldMethod<?,? super T>> getDeclaredWeldMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match
WeldClass<? super T> getWeldSuperclass()
boolean isParameterizedType()
isParameterizedType
in interface WeldAnnotated<T,Class<T>>
boolean isAbstract()
boolean isEnum()
boolean isMemberClass()
boolean isLocalClass()
boolean isAnonymousClass()
boolean isSerializable()
boolean isDiscovered()
<S> S cast(Object object)
<U> WeldClass<? extends U> asWeldSubclass(WeldClass<U> clazz)
boolean isEquivalent(Class<?> clazz)
clazz
- The Java class
String getSimpleName()
Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
The
- meta annotation to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |