import com.example.classmate.ClassScanner;
import com.example.classmate.ReflectUtils;
public class Main {
public static void main(String[] args) {
ClassScanner scanner = new ClassScanner("com.example");
List<Class<?>> classes = scanner.scan();
for (Class<?> clazz : classes) {
System.out.println("Class: " + clazz.getName());
List<Method> methods = ReflectUtils.getMethods(clazz);
for (Method method : methods) {
System.out.println("Method: " + method.getName());
ReflectUtils.invokeMethod(clazz, method);
}
}
}
}