I would to know if there is a way to retrieve the method name by a definition in this way
Eg :
getMethodName ( MyObject.myMethod() ) -> "myMethod"
this because i would use a sort of C# delegate (achieved through java's reflection) but i'm afraid about the absence of compiler's checking, during method invocation.
But if i could retrieve safely the method's name , i should execute reflection without the risk of calling an unexisting method.
Thanks in advance for the help.