Here you can find the source of getMethod(Class clazz, String name, Class... parameterTypes)
Parameter | Description |
---|---|
clazz | a parameter |
name | a parameter |
parameterTypes | a parameter |
private static Method getMethod(Class clazz, String name, Class... parameterTypes)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { /**//from w ww .j a v a 2s .c o m * Util method to get a method, ignoring checked exceptions * * @param clazz * @param name * @param parameterTypes * @return method */ private static Method getMethod(Class clazz, String name, Class... parameterTypes) { Method method = null; try { method = clazz.getMethod(name, parameterTypes); } catch (Exception e) { e.printStackTrace(); } return method; } }