Interface EnhancedAnnotatedMethod<T,X>
-
- All Superinterfaces:
Annotated,AnnotatedCallable<X>,AnnotatedMember<X>,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>, 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 arrayStringgetPropertyName()Gets the property nameMethodSignaturegetSignature()booleanisEquivalent(Method method)Checks if a this is equivalent to a JLR methodAnnotatedMethod<X>slim()Returns a lightweight implementation ofAnnotatedMethodwith minimal memory footprint.-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedCallable
getParameters
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
-
Methods inherited from interface javax.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:
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
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
-
-