MCPcopy
hub / github.com/apache/groovy / invokeMethod

Method invokeMethod

src/main/java/groovy/lang/GroovyObject.java:37–37  ·  view source on GitHub ↗

Invokes the given method. @param name the name of the method to call @param args the arguments to use for the method call @return the result of invoking the method

(String name, Object args)

Source from the content-addressed store, hash-verified

35 * @return the result of invoking the method
36 */
37 @Internal // marked as internal just for backward compatibility, e.g. AbstractCallSite.createGroovyObjectGetPropertySite will check `isMarkedInternal`
38 default Object invokeMethod(String name, Object args) {
39 return getMetaClass().invokeMethod(this, name, args);
40 }

Callers 15

doCallMethod · 0.95
createTemplateClosureMethod · 0.95
GStringTemplateMethod · 0.95
testTreeMethod · 0.95
testVerboseTreeMethod · 0.95
testSmallTreeMethod · 0.95
testLittleClosureMethod · 0.95
testNestedClosureBugMethod · 0.95
testCompileMethod · 0.95
testConstructorMethod · 0.95

Implementers 7

Tt1cgisrc/test/groovy/gls/ch06/s05/testClass
Tt1gisrc/test/groovy/gls/ch06/s05/testClass
Sequencesrc/main/java/groovy/lang/Sequence.jav
DelegatingMetaClasssrc/main/java/groovy/lang/DelegatingMe
ExpandoMetaClasssrc/main/java/groovy/lang/ExpandoMetaC
GroovyObjectSupportsrc/main/java/groovy/lang/GroovyObject
Wrappersrc/main/java/org/codehaus/groovy/runt

Calls

no outgoing calls

Tested by 15

testTreeMethod · 0.76
testVerboseTreeMethod · 0.76
testSmallTreeMethod · 0.76
testLittleClosureMethod · 0.76
testNestedClosureBugMethod · 0.76
testCompileMethod · 0.76
testConstructorMethod · 0.76
testArrayBugMethod · 0.76
testPostfixMethod · 0.76
testMapMethod · 0.76