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