having the method
public void foo(){
//..
}
Is there a way to get the methodName (in this case foo) at runtime?
I know how to get the classname via
this.getClass().getName()
or to get all public methods via
Method[] methods = this.getClass().getMethods();
Once I have the method name the parameters would also be important as there could be several methods with same name