|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.ConversionHandler
org.codehaus.groovy.runtime.ConvertedMap
public class ConvertedMap
This class is a general adapter to adapt a map of closures to any Java interface.
Constructor Summary | |
---|---|
protected |
ConvertedMap(Map closures)
to create a ConvertedMap object. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.codehaus.groovy.runtime.ConversionHandler |
---|
equals, getDelegate, hashCode, invoke |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ConvertedMap(Map closures)
closures
- the map of closresMethod Detail |
---|
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable
ConversionHandler
invokeCustom
in class ConversionHandler
proxy
- the proxymethod
- the methodargs
- the arguments
Throwable
- 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
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |