samedi 27 mai 2017

ignore CaseSensitive "method Name" for getting a method of a Class in java

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 ingore "MethodName" CaseSensitive? for example if there is a method in "theClass" with name "foO", How Can I find it with having MethodName="FOo"?





Aucun commentaire:

Enregistrer un commentaire