public class ConvertedClosure extends ConversionHandler implements Serializable
Constructor and Description |
---|
ConvertedClosure(Closure closure) |
ConvertedClosure(Closure closure,
String method)
to create a ConvertedClosure object.
|
Modifier and Type | Method and Description |
---|---|
Object |
invokeCustom(Object proxy,
Method method,
Object[] args)
This method is called for all Methods not defined on Object.
|
checkMethod, equals, getDelegate, hashCode, invoke, isCoreObjectMethod, isDefaultMethod, toString
public ConvertedClosure(Closure closure, String method)
closure
- the closure object.public ConvertedClosure(Closure closure)
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable
ConversionHandler
invokeCustom
in class ConversionHandler
proxy
- the proxymethod
- the methodargs
- the argumentsThrowable
- any exception causes by the delegateConversionHandler.invoke(Object, Method, Object[])
,
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])