1.Method.getAnnotations():用于获取方法上的注解;
2.method.getGenericParameterTypes():用于获取方法的参数类型;
3.method.getParameterAnnotations():用于获取方法的参数上的注解;
java 反射机制之Method类
最新推荐文章于 2024-07-09 16:17:35 发布
1.Method.getAnnotations():用于获取方法上的注解;
2.method.getGenericParameterTypes():用于获取方法的参数类型;
3.method.getParameterAnnotations():用于获取方法的参数上的注解;