I would like to invoke a private static method. I have its name. I\'ve heard it can be done using Java reflection mechanism. How can I do it?
EDIT:
No, you can't say Map. This is because of type erasure. At runtime, there's no such thing.
Luckily, you can say just plain old Map.class. It's all the same at runtime.
If the warnings bother you, search for other questions related to generics and type erasure, there's a wealth of information on the subject here.