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

Method invokeMethod

src/main/java/groovy/lang/MetaClass.java:54–54  ·  view source on GitHub ↗

Invokes a method on the given receiver for the specified arguments. The sender is the class that invoked the method on the object. The MetaClass will attempt to establish the method to invoke based on the name and arguments provided. The isCallToSuper and fromInsideClass help the Groovy runti

(Class sender, Object receiver, String methodName, Object[] arguments, boolean isCallToSuper, boolean fromInsideClass)

Source from the content-addressed store, hash-verified

52 * @return The method's return value.
53 */
54 Object invokeMethod(Class sender, Object receiver, String methodName, Object[] arguments, boolean isCallToSuper, boolean fromInsideClass);
55
56 /**
57 * <p>Retrieves a property on the given receiver for the specified arguments. The sender is the class that is requesting the property from the object.

Callers 15

notFilteredMethod · 0.95
testMetaClassMethod · 0.95
testArrayMethod · 0.95
testStringMethod · 0.95
testObjectMethod · 0.95
testCompileMethod · 0.95
invokeMethodClosureMethod · 0.95
invokeMethodMethod · 0.95
invokeOuterMethodMethod · 0.95
averageMethod · 0.95
sumMethod · 0.95

Implementers 2

MetaClassImplsrc/main/java/groovy/lang/MetaClassImp
DelegatingMetaClasssrc/main/java/groovy/lang/DelegatingMe

Calls

no outgoing calls

Tested by 15

testMetaClassMethod · 0.76
testArrayMethod · 0.76
testStringMethod · 0.76
testObjectMethod · 0.76
testCompileMethod · 0.76
invokeMethodMethod · 0.52
testFailingMethodMethod · 0.52
doCallMethod · 0.52
methodThatFailsMethod · 0.52