Java Method Call invoke(Object o, Method method, Object... param)

Here you can find the source of invoke(Object o, Method method, Object... param)

Description

invoke

License

Open Source License

Declaration

public static Object invoke(Object o, Method method, Object... param)
            throws InvocationTargetException, IllegalAccessException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.lang.reflect.*;

public class Main {
    public static Object invoke(Object o, Method method, Object... param)
            throws InvocationTargetException, IllegalAccessException {
        return method.invoke(o, param);
    }/*w w  w .  j a  va2 s .  c  o  m*/
}

Related

  1. invoke(Object instance, Method method, Object... params)
  2. invoke(Object instance, String method, Class[] paramTypes, Object... parameters)
  3. invoke(Object invoker, String cmd, Map params)
  4. invoke(Object methodHostInstance, String methodName, Class[] parameterTypes, Object[] args)
  5. invoke(Object o, Method m)
  6. invoke(Object o, String m, Object... params)
  7. invoke(Object o, String method, Object... args)
  8. invoke(Object o, String name)
  9. invoke(Object o, String name, Object[] args)