This class is a general adapter to adapt a map of closures to any Java interface.
Constructor and description |
---|
protected ConvertedMap
(Map closures) to create a ConvertedMap object. |
Type | Name and description |
---|---|
protected boolean |
checkMethod(Method method) |
Object |
invokeCustom(Object proxy, Method method, Object[] args) |
static boolean |
isCoreObjectMethod(Method method) Checks whether a method is a core method from java.lang.Object. |
String |
toString() |
Methods inherited from class | Name |
---|---|
class ConversionHandler |
checkMethod, equals, getDelegate, hashCode, invoke, invokeCustom, isCoreObjectMethod, isDefaultMethod, toString |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
to create a ConvertedMap object.
closures
- the map of closuresChecks whether a method is a core method from java.lang.Object. Such methods often receive special treatment because they are deemed fundamental enough to not be tampered with. call toString() is an exception to allow overriding toString() by a closure specified in the map
method
- the method to checkCopyright © 2003-2014 The Codehaus. All rights reserved.