public class ConvertedMap extends ConversionHandler
Modifier | Constructor and Description |
---|---|
protected |
ConvertedMap(java.util.Map closures)
to create a ConvertedMap object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkMethod(java.lang.reflect.Method method) |
java.lang.Object |
invokeCustom(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
This method is called for all Methods not defined on Object.
|
static boolean |
isCoreObjectMethod(java.lang.reflect.Method method)
Checks whether a method is a core method from java.lang.Object.
|
java.lang.String |
toString()
Returns a String version of the delegate.
|
equals, getDelegate, hashCode, invoke
protected ConvertedMap(java.util.Map closures)
closures
- the map of closurespublic java.lang.Object invokeCustom(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
ConversionHandler
invokeCustom
in class ConversionHandler
proxy
- the proxymethod
- the methodargs
- the argumentsjava.lang.Throwable
- any exception causes by the delegateConversionHandler.invoke(Object, Method, Object[])
,
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
public java.lang.String toString()
ConversionHandler
toString
in class ConversionHandler
Object.toString()
protected boolean checkMethod(java.lang.reflect.Method method)
checkMethod
in class ConversionHandler
public static boolean isCoreObjectMethod(java.lang.reflect.Method method)
method
- the method to check