public class MethodClosure extends Closure
Modifier and Type | Field and Description |
---|---|
static boolean |
ALLOW_RESOLVE |
static String |
ANY_INSTANCE_METHOD_EXISTS |
static String |
NEW |
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
Constructor and Description |
---|
MethodClosure(Object owner,
String method) |
Modifier and Type | Method and Description |
---|---|
protected Object |
doCall(Object arguments) |
String |
getMethod() |
Object |
getProperty(String property)
Retrieves a property value.
|
andThen, andThenSelf, andThenSelf, asWritable, call, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline
getMetaClass, setMetaClass
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeMethod
public static final String NEW
public static final String ANY_INSTANCE_METHOD_EXISTS
public static boolean ALLOW_RESOLVE
public String getMethod()
public Object getProperty(String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class Closure
property
- the name of the property of interest