BeanUtil { public static boolean isAbstract(final Method method) { int mod = method.getModifiers(); return Modifier.isAbstract(mod); }  static boolean isAbstract(final Method method); static String[] getMethodParamNames(final Class<?> clazz, final String method, final Class<?>... paramTypes); static String[] getMethodParamNames(final Method method); static String getMethodSignature(final Method method); static Set<Class<?>> getClasses(final String pk); static String toUnderlineName(final String s); static String toCamelCase(final String str); static String camelStr2underLine(final String camelStr); static String toCapitalizeCamelCase(final String str); static boolean isSimpleValueType(final Class<?> clazz); static boolean isSimpleProperty(final Class<?> clazz);  }
@Test public void isAbstract() { Method[] methods = Runnable.class.getMethods(); Method method = methods[0]; boolean b = BeanUtil.isAbstract(method); Assert.isTrue(b, ErrorCodeDef.SYSTEM_ERROR_10001); System.out.println(method + "是抽象方法"); methods = StartupListener.class.getMethods(); method = methods[0]; b = BeanUtil.isAbstract(method); Assert.isFalse(b, ErrorCodeDef.SYSTEM_ERROR_10001); System.out.println("接口中的default方法不是抽象方法。"); }