Groovy 2.2.1

org.codehaus.groovy.runtime
[Java] Class MethodClosure

java.lang.Object
  groovy.lang.GroovyObjectSupport
      groovy.lang.Closure
          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

Authors:
James Strachan
Version:
\$Revision\$


Field Summary
 
Fields inherited from class Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, OWNER_FIRST, OWNER_ONLY, SKIP, TO_SELF, maximumNumberOfParameters, parameterTypes
 
Constructor Summary
MethodClosure(Object owner, String method)

 
Method Summary
protected Object doCall(Object arguments)

String getMethod()

Object getProperty(String property)

 
Methods inherited from class Closure
asWritable, call, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, 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 GroovyObjectSupport
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

MethodClosure

public MethodClosure(Object owner, String method)


 
Method Detail

doCall

protected Object doCall(Object arguments)


getMethod

public String getMethod()


getProperty

public Object getProperty(String property)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.