T - public class WeldMethodImpl<T,X> extends AbstractWeldCallable<T,X,java.lang.reflect.Method> implements WeldMethod<T,X>
MAPPED_PARAMETER_ANNOTATIONSMAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getDelegate() |
java.util.List<AnnotatedParameter<X>> |
getParameters()
Get the parameters of the callable member.
|
java.lang.Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array
|
java.lang.String |
getPropertyName()
Gets the property name
|
MethodSignature |
getSignature() |
java.util.List<WeldParameter<?,X>> |
getWeldParameters()
Gets the abstracted parameters of the method
|
java.util.List<WeldParameter<?,X>> |
getWeldParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the list of annotated parameters for a given annotation
|
T |
invoke(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the method
|
T |
invokeOnInstance(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the method on the class of the passed instance, not the declaring
class.
|
boolean |
isEquivalent(java.lang.reflect.Method method)
Checks if a this is equivalent to a JLR method
|
boolean |
isGeneric() |
static <T,X> WeldMethodImpl<T,X> |
of(AnnotatedMethod<? super X> method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
static <T,X> WeldMethodImpl<T,X> |
of(java.lang.reflect.Method method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
java.lang.String |
toString()
Gets a string representation of the member
|
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransientaddMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclaringTypegetActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStaticgetJavaMemberisStaticgetAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentpublic static <T,X> WeldMethodImpl<T,X> of(java.lang.reflect.Method method, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public static <T,X> WeldMethodImpl<T,X> of(AnnotatedMethod<? super X> method, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public java.lang.reflect.Method getDelegate()
getDelegate in class AbstractWeldAnnotated<T,java.lang.reflect.Method>public java.util.List<WeldParameter<?,X>> getWeldParameters()
WeldCallablegetWeldParameters in interface WeldCallable<T,X,java.lang.reflect.Method>public java.lang.Class<?>[] getParameterTypesAsArray()
WeldMethodgetParameterTypesAsArray in interface WeldMethod<T,X>public java.util.List<WeldParameter<?,X>> getWeldParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldCallablegetWeldParameters in interface WeldCallable<T,X,java.lang.reflect.Method>annotationType - The annotation to matchpublic boolean isEquivalent(java.lang.reflect.Method method)
WeldMethodisEquivalent in interface WeldMethod<T,X>method - The JLR methodpublic T invokeOnInstance(java.lang.Object instance, java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
WeldMethodinvokeOnInstance in interface WeldMethod<T,X>instance - The instance to invokejava.lang.IllegalArgumentExceptionjava.lang.SecurityExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionpublic T invoke(java.lang.Object instance, java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
WeldMethodinvoke in interface WeldMethod<T,X>instance - The instance to invokeparameters - The method parametersjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic java.lang.String getPropertyName()
WeldMethodgetPropertyName in interface WeldMethod<T,X>public java.lang.String toString()
AbstractWeldMembertoString in class AbstractWeldMember<T,X,java.lang.reflect.Method>public MethodSignature getSignature()
getSignature in interface WeldMethod<T,X>public java.util.List<AnnotatedParameter<X>> getParameters()
AnnotatedCallableGet the parameters of the callable member.
getParameters in interface AnnotatedCallable<X>public boolean isGeneric()
isGeneric in interface WeldAnnotated<T,java.lang.reflect.Method>Copyright © 2014 Seam Framework. All Rights Reserved.