class Foo{
static void fooMethod1(){
// do something
}
static void fooMethod2(){
// do something
}
static void fooMethod3(){
// do something
}
}
class bar{
public static void main(String[]args){
Foo.fooMethod1();
Foo.fooMethod2();
Foo.fooMethod3();
}
}
Using reflection, how to know (without knowing method name) that fooMethod1 || 2 || 3 is called (not from the current Thread)?