|
||||||||||
| 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(java.util.Map closures)
to create a ConvertedMap object. |
| Method Summary | |
|---|---|
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. |
java.lang.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(java.util.Map closures)
closures - the map of closres| Method Detail |
|---|
public 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 ConversionHandlerproxy - the proxymethod - the methodargs - the arguments
java.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 ConversionHandlerObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||