jodd-bean/src/main/java/jodd/introspector/Methods.java
public MethodDescriptor getMethodDescriptor(final String name, final Class[] paramTypes) {
		final MethodDescriptor[] methodDescriptors = methodsMap.get(name);
		if (methodDescriptors == null) {
			return null;
		}
		for (MethodDescriptor methodDescriptor : methodDescriptors) {
			final Method m = methodDescriptor.getMethod();
			if (ClassUtil.compareParameters(m.getParameterTypes(), paramTypes)) {
				return methodDescriptor;
			}
		}
		return null;
	}
public MethodDescriptor getMethodDescriptor(final String name, final Class[] paramTypes) {
		final MethodDescriptor[] methodDescriptors = methodsMap.get(name);
		if (methodDescriptors == null) {
			return null;
		}
		for (MethodDescriptor methodDescriptor : methodDescriptors) {
			final Method m = methodDescriptor.getMethod();
			if (ClassUtil.compareParameters(m.getParameterTypes(), paramTypes)) {
				return methodDescriptor;
			}
		}
		return null;
	}
public MethodDescriptor getMethodDescriptor ( final String name , final Class [ ] paramTypes ) { final MethodDescriptor [ ] methodDescriptors = methodsMap . get ( name ) ; if ( methodDescriptors == null ) { return null ; } for ( MethodDescriptor methodDescriptor : methodDescriptors ) { final Method m = methodDescriptor . getMethod ( ) ; if ( ClassUtil . compareParameters ( m . getParameterTypes ( ) , paramTypes ) ) { return methodDescriptor ; } } return null ; }
Returns a method that matches given name and parameter types.
Returns <code>null</code> if method is not found.
Returns a method that matches given name and parameter types . Returns <code > null< / code > if method is not found .