org.codehaus.groovy.runtime
Class MethodClosure
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure
org.codehaus.groovy.runtime.MethodClosure
- All Implemented Interfaces:
- Cloneable, GroovyObject, Runnable
- public class MethodClosure
- extends Closure
Represents a method on an object using a closure which can be invoked
at any time
- Version:
- $Revision: 1.11 $
- Author:
- James Strachan
Methods inherited from class groovy.lang.Closure |
asWritable, call, call, call, clone, curry, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, isCase, run, setDelegate, setDirective, setProperty, throwRuntimeException |
MethodClosure
public MethodClosure(Object owner,
String method)
getMethod
public String getMethod()
doCall
protected Object doCall(Object arguments)
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface GroovyObject
- Overrides:
getProperty
in class Closure
Copyright © 2003-2007 The Codehaus. All Rights Reserved.