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
?