org.codehaus.groovy.runtime
public class MethodClosure extends Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
Constructor and Description |
---|
MethodClosure(java.lang.Object owner,
java.lang.String method) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doCall(java.lang.Object arguments) |
java.lang.String |
getMethod() |
java.lang.Object |
getProperty(java.lang.String property)
Retrieves a property value.
|
asWritable, call, call, call, clone, curry, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException
getMetaClass, invokeMethod, setMetaClass
public MethodClosure(java.lang.Object owner, java.lang.String method)
public java.lang.String getMethod()
protected java.lang.Object doCall(java.lang.Object arguments)
public java.lang.Object getProperty(java.lang.String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class Closure
property
- the name of the property of interest