Java Method Call invoke(final Method m, final Object obj, final Object... args)

Here you can find the source of invoke(final Method m, final Object obj, final Object... args)

Description

invoke

License

Open Source License

Declaration

public static final Object invoke(final Method m, final Object obj, final Object... args) 

Method Source Code

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

import java.lang.reflect.Method;

public class Main {
    public static final Object invoke(final Method m, final Object obj, final Object... args) {
        try {/*  ww  w  .j  a  v a  2 s  .  co m*/
            return m.invoke(obj, args);
        } catch (final Exception e) {
            e.printStackTrace();
        } catch (final Error e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. invoke(Class clazz, String methodName, Class[] parameterTypes, Object instance, Object[] args, Class returnType)
  2. invoke(Class clazz, String methodName, Object instance, Class[] signature, Object... args)
  3. invoke(Class cls, String methodName, Object... parameter)
  4. invoke(Class returnType, Method m, Object obj, Object... args)
  5. invoke(E e, String methodName)
  6. invoke(final Method method, final Object obj, final Object... args)
  7. invoke(final Object component, final Method method, final Class type, final String value)
  8. invoke(final Object instance, final String method, final Object... parameters)
  9. invoke(final Object instance, final String methodName, final Class[] methodParams, final Object[] args)