public abstract class ForwardingWeldMethod<T,X> extends ForwardingWeldMember<T,X,Method> implements WeldMethod<T,X>
MAPPED_PARAMETER_ANNOTATIONS
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Constructor and Description |
---|
ForwardingWeldMethod() |
Modifier and Type | Method and Description |
---|---|
protected abstract WeldMethod<T,X> |
delegate() |
List<WeldParameter<?,X>> |
getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType) |
Method |
getJavaMember() |
List<javax.enterprise.inject.spi.AnnotatedParameter<X>> |
getParameters() |
Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array
|
String |
getPropertyName()
Gets the property name
|
MethodSignature |
getSignature() |
List<? extends WeldParameter<?,X>> |
getWeldParameters()
Gets the abstracted parameters of the method
|
List<WeldParameter<?,X>> |
getWeldParameters(Class<? extends Annotation> metaAnnotationType)
Gets the list of annotated parameters for a given annotation
|
T |
invoke(Object instance,
Object... parameters)
Invokes the method
|
T |
invokeOnInstance(Object instance,
Object... parameters)
Invokes the method on the class of the passed instance, not the declaring
class.
|
boolean |
isEquivalent(Method method)
Checks if a this is equivalent to a JLR method
|
getDeclaringType
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringType
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
protected abstract WeldMethod<T,X> delegate()
delegate
in class ForwardingWeldMember<T,X,Method>
public List<WeldParameter<?,X>> getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType)
public Class<?>[] getParameterTypesAsArray()
WeldMethod
getParameterTypesAsArray
in interface WeldMethod<T,X>
public List<? extends WeldParameter<?,X>> getWeldParameters()
WeldCallable
getWeldParameters
in interface WeldCallable<T,X,Method>
public String getPropertyName()
WeldMethod
getPropertyName
in interface WeldMethod<T,X>
public T invoke(Object instance, Object... parameters) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
WeldMethod
invoke
in interface WeldMethod<T,X>
instance
- The instance to invokeparameters
- The method parametersIllegalArgumentException
IllegalAccessException
InvocationTargetException
public T invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
WeldMethod
invokeOnInstance
in interface WeldMethod<T,X>
instance
- The instance to invokeIllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public boolean isEquivalent(Method method)
WeldMethod
isEquivalent
in interface WeldMethod<T,X>
method
- The JLR methodpublic MethodSignature getSignature()
getSignature
in interface WeldMethod<T,X>
public List<WeldParameter<?,X>> getWeldParameters(Class<? extends Annotation> metaAnnotationType)
WeldCallable
getWeldParameters
in interface WeldCallable<T,X,Method>
metaAnnotationType
- The annotation to matchpublic List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
getParameters
in interface javax.enterprise.inject.spi.AnnotatedCallable<X>
Copyright © 2013 Seam Framework. All rights reserved.