Package org.jboss.weld.util.annotated
Class ForwardingWeldMethod<T,X>
- java.lang.Object
-
- org.jboss.weld.util.annotated.ForwardingAnnotated
-
- org.jboss.weld.util.annotated.ForwardingWeldAnnotated<T,S>
-
- org.jboss.weld.util.annotated.ForwardingWeldMember<T,X,Method>
-
- org.jboss.weld.util.annotated.ForwardingWeldMethod<T,X>
-
- All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated,javax.enterprise.inject.spi.AnnotatedCallable<X>,javax.enterprise.inject.spi.AnnotatedMember<X>,javax.enterprise.inject.spi.AnnotatedMethod<X>,EnhancedAnnotated<T,Method>,EnhancedAnnotatedCallable<T,X,Method>,EnhancedAnnotatedMember<T,X,Method>,EnhancedAnnotatedMethod<T,X>
public abstract class ForwardingWeldMethod<T,X> extends ForwardingWeldMember<T,X,Method> implements EnhancedAnnotatedMethod<T,X>
-
-
Field Summary
-
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
-
-
Constructor Summary
Constructors Constructor Description ForwardingWeldMethod()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract EnhancedAnnotatedMethod<T,X>delegate()List<EnhancedAnnotatedParameter<?,X>>getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType)List<? extends EnhancedAnnotatedParameter<?,X>>getEnhancedParameters()Gets the abstracted parameters of the methodList<EnhancedAnnotatedParameter<?,X>>getEnhancedParameters(Class<? extends Annotation> metaAnnotationType)Get the parameters annotated with a given annotation type.MethodgetJavaMember()List<javax.enterprise.inject.spi.AnnotatedParameter<X>>getParameters()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 methodjavax.enterprise.inject.spi.AnnotatedMethod<X>slim()Returns a lightweight implementation ofAnnotatedwith minimal memory footprint.-
Methods inherited from class org.jboss.weld.util.annotated.ForwardingWeldMember
getDeclaringType
-
Methods inherited from class org.jboss.weld.util.annotated.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
-
Methods inherited from class org.jboss.weld.util.annotated.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
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.EnhancedAnnotatedMember
getDeclaringType
-
-
-
-
Method Detail
-
delegate
protected abstract EnhancedAnnotatedMethod<T,X> delegate()
- Specified by:
delegatein classForwardingWeldMember<T,X,Method>
-
getAnnotatedParameters
public List<EnhancedAnnotatedParameter<?,X>> getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType)
-
getParameterTypesAsArray
public Class<?>[] getParameterTypesAsArray()
Description copied from interface:EnhancedAnnotatedMethodGet the parameter types as an array- Specified by:
getParameterTypesAsArrayin interfaceEnhancedAnnotatedMethod<T,X>
-
getEnhancedParameters
public List<? extends EnhancedAnnotatedParameter<?,X>> 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.
-
getPropertyName
public String getPropertyName()
Description copied from interface:EnhancedAnnotatedMethodGets the property name- Specified by:
getPropertyNamein interfaceEnhancedAnnotatedMethod<T,X>- Returns:
- The name
-
isEquivalent
public boolean isEquivalent(Method method)
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
-
getSignature
public MethodSignature getSignature()
- Specified by:
getSignaturein interfaceEnhancedAnnotatedMethod<T,X>
-
getEnhancedParameters
public List<EnhancedAnnotatedParameter<?,X>> getEnhancedParameters(Class<? extends Annotation> metaAnnotationType)
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:
metaAnnotationType- The annotation to match- Returns:
- A set of matching parameter abstractions. Returns an empty list if there are no matches.
-
getParameters
public List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
- Specified by:
getParametersin interfacejavax.enterprise.inject.spi.AnnotatedCallable<T>
-
getJavaMember
public Method getJavaMember()
-
slim
public javax.enterprise.inject.spi.AnnotatedMethod<X> slim()
Description copied from interface:EnhancedAnnotatedReturns a lightweight implementation ofAnnotatedwith 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>- Overrides:
slimin classForwardingWeldMember<T,X,Method>- Returns:
- the slim version of this
Annotated
-
-