Java Reflection Method Name getMethod(String methodName, Class[] params)

Here you can find the source of getMethod(String methodName, Class[] params)

Description

Returns the method object associated with the given method name.

License

Open Source License

Declaration

private static Method getMethod(String methodName, Class[] params)
        throws ClassNotFoundException, NoSuchMethodException 

Method Source Code

//package com.java2s;

import java.lang.reflect.Method;

public class Main {
    /**//from ww  w .j a  v a 2  s.  c o m
     * color well class.
     */
    private static Class m_cwc;

    /**
     * Returns the method object associated with the given method name.
     */
    private static Method getMethod(String methodName, Class[] params)
            throws ClassNotFoundException, NoSuchMethodException {
        if (m_cwc == null)
            m_cwc = Class.forName("com.jeta.forms.components.colors.JETAColorWell");

        return m_cwc.getMethod(methodName, params);
    }
}

Related

  1. getMethod(String methodName, Class clazz)
  2. getMethod(String methodName, Class clazz, Class... args)
  3. getMethod(String methodName, Class klass)
  4. getMethod(String methodName, Class type)
  5. getMethod(String methodName, Class[] paramTypes, Class targetClass)
  6. getMethod(String methodName, Method method, boolean fromComponentType)
  7. getMethod(String name, Class pojoClass)
  8. getMethod(String name, Method method)
  9. getMethod(String name, String methodDesc, Class actual)