How can I use reflection in an interface / abstract class to get all its methods?
For instance,
MyInterfaceOrAbstractClass.class.getDeclaredMethods();
Class clazz = Something.class; Method[] methods = clazz.getDeclaredMethods(); for (Method method : methods) { // do what you have to do with the method System.out.println(method.getName()); }