Package org.codehaus.groovy.runtime
Class MethodClosure
- java.lang.Object
- 
- groovy.lang.GroovyObjectSupport
- 
- groovy.lang.Closure
- 
- org.codehaus.groovy.runtime.MethodClosure
 
 
 
- 
- All Implemented Interfaces:
- GroovyCallable,- GroovyObject,- java.io.Serializable,- java.lang.Cloneable,- java.lang.Runnable,- java.util.concurrent.Callable
 
 public class MethodClosure extends Closure Represents a method on an object using a closure which can be invoked at any time- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanALLOW_RESOLVE- 
Fields inherited from class groovy.lang.ClosureDELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
- 
 - 
Constructor SummaryConstructors Constructor Description MethodClosure(java.lang.Object owner, java.lang.String method)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdoCall(java.lang.Object arguments)java.lang.StringgetMethod()java.lang.ObjectgetProperty(java.lang.String property)Retrieves a property value.- 
Methods inherited from class groovy.lang.ClosureasWritable, call, call, call, clone, 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
 - 
Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, invokeMethod, setMetaClass
 
- 
 
- 
- 
- 
Method Detail- 
getMethodpublic java.lang.String getMethod() 
 - 
doCallprotected java.lang.Object doCall(java.lang.Object arguments) 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String property) Description copied from interface:GroovyObjectRetrieves a property value.- Specified by:
- getPropertyin interface- GroovyObject
- Overrides:
- getPropertyin class- Closure
- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
 
- 
 
-