/** * Returns a message describing a {@code NoSuchMethodException} that occurred on a method lookup. * @param targetClass the target class of the not found method * @param methodName the name of the not found method * @param parameterTypes parameter list of the not found method * @return the error message */ public static String noSuchMethod(Class<?> targetClass, String methodName, final List<? extends Value<Class<?>>> parameterTypes) { StringBuffer message = new StringBuffer(); message.append("No such method '"); appendParameterList(message, parameterTypes); message.append("' found on ").append(targetClass); return message.toString(); }
/** * Returns a message describing a {@code NoSuchMethodException} that occurred on a method lookup. * @param targetClass the target class of the not found method * @param methodName the name of the not found method * @param parameterTypes parameter list of the not found method * @return the error message */ public static String noSuchMethod(Class<?> targetClass, String methodName, final List<? extends Value<Class<?>>> parameterTypes) { StringBuffer message = new StringBuffer(); message.append("No such method '"); appendParameterList(message, parameterTypes); message.append("' found on ").append(targetClass); return message.toString(); }
/** * Returns a message describing a {@code NoSuchMethodException} that occurred on a constructor lookup. * * @param targetClass the target class of the not found constructor * @param parameterTypes parameter list of the not found constructor * @return the error message */ public static String noSuchConstructor(Class<?> targetClass, final List<? extends Value<Class<?>>> parameterTypes) { StringBuffer message = new StringBuffer(); message.append("No such constructor found '"); message.append(targetClass); appendParameterList(message, parameterTypes); message.append('\''); return message.toString(); }
/** * Returns a message describing a {@code NoSuchMethodException} that occurred on a constructor lookup. * * @param targetClass the target class of the not found constructor * @param parameterTypes parameter list of the not found constructor * @return the error message */ public static String noSuchConstructor(Class<?> targetClass, final List<? extends Value<Class<?>>> parameterTypes) { StringBuffer message = new StringBuffer(); message.append("No such constructor found '"); message.append(targetClass); appendParameterList(message, parameterTypes); message.append('\''); return message.toString(); }