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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<EnhancedAnnotatedParameter<?,X>>
getEnhancedParameters(Class<? extends Annotation> annotationType)
Get the parameters annotated with a given annotation type.Class<?>[]
getParameterTypesAsArray()
Get the parameter types as an arrayString
getPropertyName()
Gets the property nameMethodSignature
getSignature()
boolean
isEquivalent(Method method)
Checks if a this is equivalent to a JLR methodjakarta.enterprise.inject.spi.AnnotatedMethod<X>
slim()
Returns a lightweight implementation ofAnnotatedMethod
with minimal memory footprint.-
Methods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMethod
getAnnotations, getJavaMember
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedCallable
getEnhancedParameters
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
-
-
-
Method Detail
-
getParameterTypesAsArray
Class<?>[] getParameterTypesAsArray()
Get the parameter types as an array
-
getPropertyName
String getPropertyName()
Gets the property name- Returns:
- The name
-
isEquivalent
boolean isEquivalent(Method method)
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:
getEnhancedParameters
in 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 ofAnnotatedMethod
with minimal memory footprint.- Specified by:
slim
in interfaceEnhancedAnnotated<T,X>
- Specified by:
slim
in interfaceEnhancedAnnotatedCallable<T,X,Method>
- Specified by:
slim
in interfaceEnhancedAnnotatedMember<T,X,Method>
- Returns:
- the slim version of this
AnnotatedMethod
-
-