/** * Finds a RefMethod in this RefClass * * @param name the method its name * @param parameters the method its parameters * @return the matched method or if not found null <code>null</code> */ public RefMethod getMethod(String name, Class<?>[] parameters) { try { for (RefMethod method : getMethods()) { if (method.getName().equals(name)) { if (parameters == null) { return method; } if (method.getParameterTypes().equals(parameters)) { return method; } } } } catch (Throwable t) { t.printStackTrace(); } return null; }