Java Reflection Method Name getMethod(Class klass, String methodName)

Here you can find the source of getMethod(Class klass, String methodName)

Description

get Method

License

Open Source License

Declaration

public static Method getMethod(Class<?> klass, String methodName) 

Method Source Code

//package com.java2s;

import java.lang.reflect.Method;

public class Main {
    public static Method getMethod(Class<?> klass, String methodName) {
        try {//  ww w .  java  2  s.  c  o m
            return klass.getMethod(methodName);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. getMethod(Class cls, String name)
  2. getMethod(Class cls, String name)
  3. getMethod(Class cls, String name, Class... types)
  4. getMethod(Class clss, String name, Class... params)
  5. getMethod(Class clz, String name)
  6. getMethod(Class klass, String methodName, Class requestClass)
  7. getMethod(Class klass, String methodName, Class... paramTypes)
  8. getMethod(Class klass, String name, String name2)
  9. getMethod(Class theClass, String methodName, Class[] paramTypes)