???????????????е????method????????
????public static Class<?> getMethodReturnType(Class<?> clazz?? String name) {
????if (clazz==null || name==null || name.isEmpty()) {
????return null;
????}
????name = name.toLowerCase();
????Class<?> returnType = null;
????for (Method method : clazz.getDeclaredMethods()) {
????if (method.getName().equals(name)) {
????returnType = method.getReturnType();
????break;
????}
????}
????return returnType;
????}
????????ReflectionUtil#getMethodReturnType(Class<?>?? String)??????????????????????????????????????????????????ReflectionUtil#getMethodReturnType(Class<?>?? String)????Class#getDeclaredMethods()????java.lang.reflect.Method#getName()?????????????????????????????????(Method#getReturnType()).
?????????????????????????
????@SuppressWarnings({ "unchecked"?? "rawtypes" })
????public static Object getEnumConstant(Class<?> clazz?? String name) {
????if (clazz==null || name==null || name.isEmpty()) {
????return null;
????}
????return Enum.valueOf((Class<Enum>)clazz?? name);
????}
????????ReflectionUtil#getEnumConstant(Class<?>?? String)??????????????????????????????????????????????????????????