MCPcopy Create free account
hub / github.com/apache/groovy / setDelegate

Method setDelegate

src/main/java/groovy/util/DelegatingScript.java:109–112  ·  view source on GitHub ↗

Sets the delegation target.

(Object delegate)

Source from the content-addressed store, hash-verified

107 * Sets the delegation target.
108 */
109 public void setDelegate(Object delegate) {
110 this.delegate = delegate;
111 this.metaClass = InvokerHelper.getMetaClass(delegate.getClass());
112 }
113
114 /**
115 * Delegates method invocation before falling back to normal script dispatch.

Callers 14

setClosureDelegateMethod · 0.45
setClosureDelegateMethod · 0.45
withBuilderMethod · 0.45
invokeMethodMethod · 0.45
toStringMethod · 0.45
equalsMethod · 0.45
hashCodeMethod · 0.45
setClassNameResolverMethod · 0.45
setIdentifierResolverMethod · 0.45

Calls 2

getMetaClassMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected