public class StandardMethod<T> extends StandardProcedure<T> implements IMethod<T>
_method
ARRAY_DESCRIPTOR_NAME, DESCRIPTOR_NAME
INTERNAL_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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExceptionTypes, getMethod, getParameterTypes, getReturnType
getDeclaringClass, getMember, getModifiers, getName, isAccessible, setAccessible
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
public StandardMethod(Method method)
public Object invoke(T obj, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
IMethod
IMethod
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 args
IllegalAccessException
- 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.