public interface EnhancedAnnotatedType<T> extends EnhancedAnnotated<T,Class<T>>, javax.enterprise.inject.spi.AnnotatedType<T>
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Modifier and Type | Method and Description |
---|---|
<U> EnhancedAnnotatedType<? extends U> |
asEnhancedSubclass(EnhancedAnnotatedType<U> clazz) |
<S> S |
cast(Object object) |
EnhancedAnnotatedConstructor<T> |
getDeclaredEnhancedConstructor(ConstructorSignature signature)
Get the constructor which matches the argument list provided
|
<F> EnhancedAnnotatedField<F,?> |
getDeclaredEnhancedField(String fieldName)
Get a field by name
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getDeclaredEnhancedFields()
Gets all fields declared on this class only.
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getDeclaredEnhancedFields(Class<? extends Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this
class only.
|
EnhancedAnnotatedMethod<?,?> |
getDeclaredEnhancedMethod(Method method)
Deprecated.
|
<M> EnhancedAnnotatedMethod<M,?> |
getDeclaredEnhancedMethod(MethodSignature signature)
Get a method by name
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethods()
Gets all methods on the type
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethods(Class<? extends Annotation> annotationType)
Gets all methods annotated with annotationType
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
Gets declared with parameters annotated with annotationType
|
Collection<Annotation> |
getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item with the
given meta annotation type
|
Collection<EnhancedAnnotatedConstructor<T>> |
getEnhancedConstructors()
Gets all constructors
|
Collection<EnhancedAnnotatedConstructor<T>> |
getEnhancedConstructors(Class<? extends Annotation> annotationType)
Gets all constructors which are annotated with annotationType
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getEnhancedFields()
Gets all fields on the type
|
Collection<EnhancedAnnotatedField<?,?>> |
getEnhancedFields(Class<? extends Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this
class and all super classes
|
EnhancedAnnotatedMethod<?,?> |
getEnhancedMethod(Method method)
Deprecated.
|
<M> EnhancedAnnotatedMethod<M,?> |
getEnhancedMethod(MethodSignature signature)
Get a method by name
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethods()
Gets all methods on the type including those declared on a superclass of
EnhancedAnnotated.getJavaClass() . |
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethods(Class<? extends Annotation> annotationType)
Gets all methods annotated with annotationType including those declared on a superclass of
EnhancedAnnotated.getJavaClass() . |
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
Gets all methods with parameters annotated with annotationType including those declared on a superclass of
EnhancedAnnotated.getJavaClass() . |
EnhancedAnnotatedType<? super T> |
getEnhancedSuperclass()
Gets the superclass.
|
EnhancedAnnotatedConstructor<T> |
getNoArgsEnhancedConstructor()
Gets the no-args constructor
|
String |
getSimpleName() |
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() |
SlimAnnotatedType<T> |
slim()
Returns a lightweight implementation of
AnnotatedType with minimal memory footprint. |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStatic
Collection<EnhancedAnnotatedField<?,? super T>> getEnhancedFields()
Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods()
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods()
<F> EnhancedAnnotatedField<F,?> getDeclaredEnhancedField(String fieldName)
F
- the expected type of the fieldfieldName
- the field nameCollection<EnhancedAnnotatedField<?,?>> getEnhancedFields(Class<? extends Annotation> annotationType)
annotationType
- The annotation to matchCollection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields()
Collection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields(Class<? extends Annotation> annotationType)
annotationType
- The annotation to matchCollection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors()
Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType)
annotationType
- The annotation type to matchEnhancedAnnotatedConstructor<T> getNoArgsEnhancedConstructor()
EnhancedAnnotatedConstructor<T> getDeclaredEnhancedConstructor(ConstructorSignature signature)
parameterTypes
- the parameters of the constructorCollection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods(Class<? extends Annotation> annotationType)
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.annotationType
- The annotation to matchCollection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods(Class<? extends Annotation> annotationType)
annotationType
- The annotation to match@Deprecated EnhancedAnnotatedMethod<?,?> getEnhancedMethod(Method method)
methodDescriptor
- <M> EnhancedAnnotatedMethod<M,?> getDeclaredEnhancedMethod(MethodSignature signature)
M
- the expected return typesignature
- the name of the method<M> EnhancedAnnotatedMethod<M,?> getEnhancedMethod(MethodSignature signature)
M
- the expected return typesignature
- the name of the method@Deprecated EnhancedAnnotatedMethod<?,?> getDeclaredEnhancedMethod(Method method)
Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
annotationType
- The annotation to matchCollection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.annotationType
- The annotation to matchEnhancedAnnotatedType<? super T> getEnhancedSuperclass()
boolean isParameterizedType()
isParameterizedType
in interface EnhancedAnnotated<T,Class<T>>
boolean isAbstract()
boolean isEnum()
boolean isMemberClass()
boolean isLocalClass()
boolean isAnonymousClass()
boolean isSerializable()
boolean isDiscovered()
<S> S cast(Object object)
<U> EnhancedAnnotatedType<? extends U> asEnhancedSubclass(EnhancedAnnotatedType<U> clazz)
boolean isEquivalent(Class<?> clazz)
clazz
- The Java classString getSimpleName()
Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
The
- meta annotation to matchSlimAnnotatedType<T> slim()
AnnotatedType
with minimal memory footprint.slim
in interface EnhancedAnnotated<T,Class<T>>
AnnotatedType
Copyright © 2016. All rights reserved.