Interface EnhancedAnnotatedMethod<T,X>
- All Superinterfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedCallable<X>,jakarta.enterprise.inject.spi.AnnotatedMember<X>,jakarta.enterprise.inject.spi.AnnotatedMethod<X>,EnhancedAnnotated<T,,Method> EnhancedAnnotatedCallable<T,,X, Method> EnhancedAnnotatedMember<T,X, Method>
- All Known Implementing Classes:
EnhancedAnnotatedMethodImpl
public interface EnhancedAnnotatedMethod<T,X>
extends EnhancedAnnotatedCallable<T,X,Method>, jakarta.enterprise.inject.spi.AnnotatedMethod<X>
AnnotatedType provides a uniform access to the annotations on an annotated
class defined either in Java or XML
- Author:
- Pete Muir
-
Field Summary
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS -
Method Summary
Modifier and TypeMethodDescriptiongetEnhancedParameters(Class<? extends Annotation> annotationType) Get the parameters annotated with a given annotation type.Class<?>[]Get the parameter types as an arrayGets the property namebooleanisEquivalent(Method method) Checks if a this is equivalent to a JLR methodjakarta.enterprise.inject.spi.AnnotatedMethod<X>slim()Returns a lightweight implementation ofAnnotatedMethodwith minimal memory footprint.Methods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedCallable
getParametersMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMember
isStaticMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMethod
getAnnotations, getJavaMemberMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedCallable
getEnhancedParametersMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
Method Details
-
getParameterTypesAsArray
Class<?>[] getParameterTypesAsArray()Get the parameter types as an array -
getPropertyName
String getPropertyName()Gets the property name- Returns:
- The name
-
isEquivalent
Checks if a this is equivalent to a JLR method- Parameters:
method- The JLR method- Returns:
- true if equivalent
-
getSignature
MethodSignature getSignature() -
getEnhancedParameters
List<EnhancedAnnotatedParameter<?,X>> getEnhancedParameters(Class<? extends Annotation> annotationType) Get the parameters annotated with a given annotation type.- Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedCallable<T,X, Method> - Parameters:
annotationType- The annotation to match- Returns:
- A set of matching parameter abstractions. Returns an empty list if there are no matches.
-
slim
jakarta.enterprise.inject.spi.AnnotatedMethod<X> slim()Returns a lightweight implementation ofAnnotatedMethodwith minimal memory footprint.- Specified by:
slimin interfaceEnhancedAnnotated<T,X> - Specified by:
slimin interfaceEnhancedAnnotatedCallable<T,X, Method> - Specified by:
slimin interfaceEnhancedAnnotatedMember<T,X, Method> - Returns:
- the slim version of this
AnnotatedMethod
-