Ignore case-sensitive "methodName" for getting a method of a Class in Java

Viewed 3214

I want to get a Method of a Class in this Way:

int value = 5;
Class paramType = value.getClass();
String MethodName = "myMethod";
Class<?> theClass = obj.getClass();
Method m = theClass.getMethod(MethodName, paramType);

Is it possible to ignore MethodName case-sensitive? For example, if there is a method in theClass with name foo, how can I find it with having MethodName=fOO?

1 Answers
Related