Java Reflection Method Name getMethod(String className, String functionName, Class[] paramTypes)

Here you can find the source of getMethod(String className, String functionName, Class[] paramTypes)

Description

get Method

License

Apache License

Declaration

public static Method getMethod(String className, String functionName, Class[] paramTypes)
            throws ClassNotFoundException, SecurityException, NoSuchMethodException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.lang.reflect.Method;

public class Main {
    public static Method getMethod(String className, String functionName, Class[] paramTypes)
            throws ClassNotFoundException, SecurityException, NoSuchMethodException {
        Method method = null;/*w w w.j  av a  2  s.  c o m*/
        Class actionClassObj;
        actionClassObj = Class.forName(className);
        method = actionClassObj.getMethod(functionName, paramTypes);
        return method;
    }
}

Related

  1. getMethod(int requireMod, int bannedMod, Class clazz, String methodName, Class... params)
  2. getMethod(Method[] methods, String name)
  3. getMethod(Method[] methods, String name, Class[] params)
  4. getMethod(String className)
  5. getMethod(String className, String functionName, Class[] paramTypes)
  6. getMethod(String className, String methodName, Class[] params)
  7. getMethod(String methodName, Class clazz)
  8. getMethod(String methodName, Class clazz, Class... args)
  9. getMethod(String methodName, Class klass)