Chooses the correct method to use from a list of methods which match by name. @param methodOrList the possible methods to choose from @param arguments the arguments
(String methodName, Object methodOrList, Class[] arguments)
| 3497 | * @param arguments the arguments |
| 3498 | */ |
| 3499 | protected Object chooseMethod(String methodName, Object methodOrList, Class[] arguments) throws MethodSelectionException { |
| 3500 | Object method = chooseMethodInternal(methodName, methodOrList, arguments); |
| 3501 | if (method instanceof GeneratedMetaMethod.Proxy) |
| 3502 | return ((GeneratedMetaMethod.Proxy) method).proxy(); |
| 3503 | return method; |
| 3504 | } |
| 3505 | |
| 3506 | private Object chooseMethodInternal(String methodName, Object methodOrList, Class[] arguments) throws MethodSelectionException { |
| 3507 | if (methodOrList instanceof ParameterTypes) { |
no test coverage detected