Class EnhancedAnnotatedMethodImpl<T,X>
java.lang.Object
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,S>
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember<T,X,S>
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedCallable<T,X,Method>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedMethodImpl<T,X>
- Type Parameters:
T-
- All Implemented Interfaces:
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> EnhancedAnnotatedMethod<T,X>
public class EnhancedAnnotatedMethodImpl<T,X>
extends AbstractEnhancedAnnotatedCallable<T,X,Method>
implements EnhancedAnnotatedMethod<T,X>
Represents an annotated method
This class is immutable and therefore threadsafe
- Author:
- Pete Muir
-
Field Summary
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS -
Method Summary
Modifier and TypeMethodDescriptionGets the abstracted parameters of the methodgetEnhancedParameters(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 methodbooleanstatic <T,X, Y extends X>
EnhancedAnnotatedMethodImpl<T,X> of(jakarta.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer) jakarta.enterprise.inject.spi.AnnotatedMethod<X>slim()Returns a lightweight implementation ofAnnotatedMethodwith minimal memory footprint.toString()Gets a string representation of the memberMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedCallable
validateParameterCountMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransientMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive, processMetaAnnotations, processMetaAnnotations, processMetaAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentMethods 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, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
Method Details
-
of
public static <T,X, EnhancedAnnotatedMethodImpl<T,Y extends X> X> of(jakarta.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod, EnhancedAnnotatedType<Y> declaringClass, ClassTransformer classTransformer) -
getDelegate
- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Method>
-
getEnhancedParameters
Description copied from interface:EnhancedAnnotatedCallableGets the abstracted parameters of the method- Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedCallable<T,X, Method> - Returns:
- A list of parameters. Returns an empty list if no parameters are present.
-
getParameterTypesAsArray
Description copied from interface:EnhancedAnnotatedMethodGet the parameter types as an array- Specified by:
getParameterTypesAsArrayin interfaceEnhancedAnnotatedMethod<T,X>
-
getEnhancedParameters
public List<EnhancedAnnotatedParameter<?,X>> getEnhancedParameters(Class<? extends Annotation> annotationType) Description copied from interface:EnhancedAnnotatedMethodGet the parameters annotated with a given annotation type.- Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedCallable<T,X, Method> - Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedMethod<T,X> - Parameters:
annotationType- The annotation to match- Returns:
- A set of matching parameter abstractions. Returns an empty list if there are no matches.
-
isEquivalent
Description copied from interface:EnhancedAnnotatedMethodChecks if a this is equivalent to a JLR method- Specified by:
isEquivalentin interfaceEnhancedAnnotatedMethod<T,X> - Parameters:
method- The JLR method- Returns:
- true if equivalent
-
getPropertyName
Description copied from interface:EnhancedAnnotatedMethodGets the property name- Specified by:
getPropertyNamein interfaceEnhancedAnnotatedMethod<T,X> - Returns:
- The name
-
toString
Description copied from class:AbstractEnhancedAnnotatedMemberGets a string representation of the member- Overrides:
toStringin classAbstractEnhancedAnnotatedMember<T,X, Method> - Returns:
- A string representation
-
getSignature
- Specified by:
getSignaturein interfaceEnhancedAnnotatedMethod<T,X>
-
getParameters
- Specified by:
getParametersin interfacejakarta.enterprise.inject.spi.AnnotatedCallable<T>
-
isGeneric
public boolean isGeneric()- Specified by:
isGenericin interfaceEnhancedAnnotated<T,X>
-
slim
Description copied from interface:EnhancedAnnotatedMethodReturns 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> - Specified by:
slimin interfaceEnhancedAnnotatedMethod<T,X> - Returns:
- the slim version of this
AnnotatedMethod
-