public class ConvertedMap extends ConversionHandler
Modifier | Constructor and Description |
---|---|
protected |
ConvertedMap(Map closures)
to create a ConvertedMap object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkMethod(Method method) |
Object |
invokeCustom(Object proxy,
Method method,
Object[] args)
This method is called for all Methods not defined on Object.
|
static boolean |
isCoreObjectMethod(Method method)
Checks whether a method is a core method from java.lang.Object.
|
String |
toString()
Returns a String version of the delegate.
|
equals, getDelegate, hashCode, invoke, isDefaultMethod
protected ConvertedMap(Map closures)
closures
- the map of closurespublic 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[])
public String toString()
ConversionHandler
toString
in class ConversionHandler
Object.toString()
protected boolean checkMethod(Method method)
checkMethod
in class ConversionHandler
public static boolean isCoreObjectMethod(Method method)
method
- the method to check