public class JsonDelegate
extends groovy.lang.GroovyObjectSupport
| Constructor and Description |
|---|
JsonDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
cloneDelegateAndGetContent(groovy.lang.Closure<?> c)
Factory method for creating
JsonDelegates from closures. |
static java.util.Map<java.lang.String,java.lang.Object> |
curryDelegateAndGetContent(groovy.lang.Closure<?> c,
java.lang.Object o)
Factory method for creating
JsonDelegates from closures currying an object
argument. |
java.util.Map<java.lang.String,java.lang.Object> |
getContent() |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Intercepts calls for setting a key and value for a JSON object
|
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class groovy.lang.GroovyObjectSupportname - the key nameargs - the value associated with the keypublic static java.util.Map<java.lang.String,java.lang.Object> cloneDelegateAndGetContent(groovy.lang.Closure<?> c)
JsonDelegates from closures.c - closure representing JSON objectsJsonDelegatepublic static java.util.Map<java.lang.String,java.lang.Object> curryDelegateAndGetContent(groovy.lang.Closure<?> c,
java.lang.Object o)
JsonDelegates from closures currying an object
argument.c - closure representing JSON objectso - an object curried to the closureJsonDelegatepublic java.util.Map<java.lang.String,java.lang.Object> getContent()