T
- Type of the class that contains this method.public interface IMethod<T> extends IProcedure<T>
Modifier and Type | Field and Description |
---|---|
static String |
ARRAY_DESCRIPTOR_NAME |
static String |
DESCRIPTOR_NAME |
INTERNAL_NAME
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. |
getExceptionTypes, getMethod, getParameterTypes, getReturnType
getDeclaringClass, getMember, getModifiers, getName, isAccessible, setAccessible
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
static final String DESCRIPTOR_NAME
static final String ARRAY_DESCRIPTOR_NAME
Object invoke(T obj, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
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.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.NullPointerException
- if the specified object is null and the method is an
instance method.ExceptionInInitializerError
- if the initialization provoked by this method fails.Copyright © GigaSpaces.