public class JsonDelegate extends GroovyObjectSupport
| Constructor and Description | 
|---|
JsonDelegate()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Map<String,Object> | 
cloneDelegateAndGetContent(Closure<?> c)
Factory method for creating  
JsonDelegates from closures. | 
static Map<String,Object> | 
curryDelegateAndGetContent(Closure<?> c,
                          Object o)
Factory method for creating  
JsonDelegates from closures currying an object
 argument. | 
Map<String,Object> | 
getContent()  | 
Object | 
invokeMethod(String name,
            Object args)
Intercepts calls for setting a key and value for a JSON object 
 | 
getMetaClass, setMetaClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, setPropertypublic Object invokeMethod(String name, Object args)
name - the key nameargs - the value associated with the keypublic static Map<String,Object> cloneDelegateAndGetContent(Closure<?> c)
JsonDelegates from closures.c - closure representing JSON objectsJsonDelegatepublic static Map<String,Object> curryDelegateAndGetContent(Closure<?> c, Object o)
JsonDelegates from closures currying an object
 argument.c - closure representing JSON objectso - an object curried to the closureJsonDelegate