Class AbstractMethod<T>
java.lang.Object
com.gigaspaces.internal.reflection.standard.StandardProcedure<T>
com.gigaspaces.internal.reflection.fast.AbstractMethod<T>
- All Implemented Interfaces:
IMember<T>,IMethod<T>,IProcedure<T>,AnnotatedElement
Provides a base class for the dynamic method implementation. Wraps any exception thrown with
InvocationTargetException.
- Since:
- 7.0
- Author:
- guy
-
Field Summary
FieldsFields inherited from class com.gigaspaces.internal.reflection.standard.StandardProcedure
_methodFields inherited from interface com.gigaspaces.internal.reflection.IMethod
ARRAY_DESCRIPTOR_NAME, DESCRIPTOR_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.gigaspaces.internal.reflection.standard.StandardProcedure
equals, getAnnotation, getAnnotations, getDeclaredAnnotations, getDeclaringClass, getExceptionTypes, getMember, getMethod, getModifiers, getName, getParameterTypes, getReturnType, hashCode, isAccessible, isAnnotationPresent, setAccessible, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresentMethods inherited from interface com.gigaspaces.internal.reflection.IMember
getDeclaringClass, getMember, getModifiers, getName, isAccessible, setAccessibleMethods inherited from interface com.gigaspaces.internal.reflection.IProcedure
getExceptionTypes, getMethod, getParameterTypes, getReturnType
-
Field Details
-
INTERNAL_NAME
-
-
Constructor Details
-
AbstractMethod
-
-
Method Details
-
invoke
public Object invoke(T obj, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException Description copied from interface:IMethodInvokes the underlying method represented by thisIMethodobject, on the specified object with the specified parameters. Individual parameters are automatically unwrapped to match primitive formal parameters, and both primitive and reference parameters are subject to method invocation conversions as necessary.- Specified by:
invokein interfaceIMethod<T>- Parameters:
obj- the object the underlying method is invoked fromargs- the arguments used for the method call- Returns:
- the result of dispatching the method represented by this object on
objwith parametersargs - Throws:
IllegalAccessException- if thisMethodobject enforces Java language access control and the underlying method is inaccessible.IllegalArgumentException- if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.InvocationTargetException- if the underlying method throws an exception.
-
internalInvoke
-