public class StandardMethod<T> extends StandardProcedure<T> implements IMethod<T>
_methodARRAY_DESCRIPTOR_NAME, DESCRIPTOR_NAMEINTERNAL_NAME| Constructor and Description |
|---|
StandardMethod(Method method) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(T obj,
Object... args)
Invokes the underlying method represented by this
IMethod object, on the
specified object with the specified parameters. |
equals, getAnnotation, getAnnotations, getDeclaredAnnotations, getDeclaringClass, getExceptionTypes, getMember, getMethod, getModifiers, getName, getParameterTypes, getReturnType, hashCode, isAccessible, isAnnotationPresent, setAccessible, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExceptionTypes, getMethod, getParameterTypes, getReturnTypegetDeclaringClass, getMember, getModifiers, getName, isAccessible, setAccessiblegetAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresentpublic StandardMethod(Method method)
public Object invoke(T obj, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
IMethodIMethod object, 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.invoke in interface IMethod<T>obj - the object the underlying method is invoked fromargs - the arguments used for the method callobj
with parameters argsIllegalAccessException - if this Method object 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.Copyright © GigaSpaces.