I want to discover at run-time ONLY the static Methods of a class, how can I do this? Or, how to differentiate between static and non-static methods.
You can get the static methods like this:
for (Method m : MyClass.class.getMethods()) { if (Modifier.isStatic(m.getModifiers())) System.out.println("Static Method: " + m.getName()); }