Java Reflection Method Parameter getMethod(final Class receiver, final String methodName, final Class... parameterTypes)

Here you can find the source of getMethod(final Class receiver, final String methodName, final Class... parameterTypes)

Description

get Method

License

Apache License

Declaration

public static <T> Method getMethod(final Class<T> receiver,
            final String methodName, final Class<?>... parameterTypes) 

Method Source Code

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

import java.lang.reflect.Method;

public class Main {
    public static <T> Method getMethod(final Class<T> receiver,
            final String methodName, final Class<?>... parameterTypes) {
        try {//w w  w  .j a v a2s. c o m
            return receiver.getMethod(methodName, parameterTypes);
        } catch (NoSuchMethodException | SecurityException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. getMethod(final Class aClass, final String methodName, Class[] parameterTypes)
  2. getMethod(final Class clazz, final String methodName, final Class... parameterTypes)
  3. getMethod(final Class clazz, final String name, final Class... parametertypes)
  4. getMethod(final Class clazz, final String name, final Class... parameterTypes)
  5. getMethod(final Class target, final String name, final Class... parameters)
  6. getMethod(final Field visitee, final String methodName, final Class... parameterTypes)
  7. getMethod(String classFullName, String methodName, Class... parameterTypes)
  8. getMethod0(Class c, String name, Class... parameterTypes)
  9. getMethod0(Class target, String name, Class[] parameterTypes)