Utility class used as delegate of closures representing JSON objects.
Type Params | Return Type | Name and description |
---|---|---|
|
static Map<String, Object> |
cloneDelegateAndGetContent(Closure<?> c) Factory method for creating JsonDelegate s from closures. |
|
static Map<String, Object> |
curryDelegateAndGetContent(Closure<?> c, Object o) Factory method for creating JsonDelegate s 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 |
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport |
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Factory method for creating JsonDelegate
s from closures.
c
- closure representing JSON objectsJsonDelegate
Factory method for creating JsonDelegate
s from closures currying an object
argument.
c
- closure representing JSON objectso
- an object curried to the closureJsonDelegate