* Returns the best matching method for the class.
*/
static ESMethodDescriptor bestMethod(Class cl, String name,
boolean isStatic, ArrayList args)
{
ESBeanInfo beanInfo;
try {
beanInfo = ESIntrospector.getBeanInfo(cl);
} catch (Exception e) {
return null;
}
ArrayList overload;
if (isStatic)
overload = beanInfo.getStaticMethods(name);
else
overload = beanInfo.getMethods(name);
if (overload == null)
return null;
ESMethodDescriptor []methods;