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