[Java] Class MethodClosure
- org.codehaus.groovy.runtime.MethodClosure
public class MethodClosure
extends Closure
Represents a method on an object using a closure, which can be invoked at any time.
Field Summary
Inherited fields
Fields inherited from class |
Fields |
class Closure |
OWNER_FIRST, DELEGATE_FIRST, OWNER_ONLY, DELEGATE_ONLY, TO_SELF, DONE, SKIP, IDENTITY |
Constructor Summary
Methods Summary
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class Closure |
run, getProperty, clone, getParameterTypes, setProperty, setDelegate, getOwner, compose, andThen, call, call, call, leftShift, leftShift, memoize, andThenSelf, andThenSelf, memoizeAtMost, memoizeBetween, trampoline, trampoline, memoizeAtLeast, composeSelf, composeSelf, rehydrate, getDelegate, getMaximumNumberOfParameters, setDirective, asWritable, rcurry, rcurry, curry, curry, isCase, getResolveStrategy, getDirective, ncurry, ncurry, rightShift, getThisObject, setResolveStrategy, dehydrate, setMetaClass, getMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, invokeMethod |
Field Detail
public static boolean ALLOW_RESOLVE
public static final String ANY_INSTANCE_METHOD_EXISTS
public static final String NEW
Constructor Detail
public MethodClosure(Object owner, String method)
Method Detail
protected Object doCall(Object arguments)
public String getMethod()