MCPcopy Index your code
hub / github.com/apache/groovy / chooseMethod

Method chooseMethod

src/main/java/groovy/lang/MetaClassImpl.java:3499–3504  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Calls 2

chooseMethodInternalMethod · 0.95
proxyMethod · 0.45

Tested by

no test coverage detected