import com.ka.commons.reflection.ReflectionUtils; List<Field> fields = ReflectionUtils.getFields(MyClass.class); for (Field field : fields) { } MyClass myObject = new MyClass(); ReflectionUtils.invokeMethod(myObject, "methodName", arg1, arg2); List<Annotation> annotations = ReflectionUtils.getAnnotations(MyClass.class); for (Annotation annotation : annotations) { }


上一篇:
下一篇:
切换中文