GroovyObject
public class JsonDelegate extends GroovyObjectSupport
Constructor | Description |
---|---|
JsonDelegate() |
Modifier and Type | Method | Description |
---|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
cloneDelegateAndGetContent(Closure<?> c) |
Factory method for creating
JsonDelegate s from closures. |
static java.util.Map<java.lang.String,java.lang.Object> |
curryDelegateAndGetContent(Closure<?> c,
java.lang.Object o) |
Factory method for creating
JsonDelegate s 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
|
getMetaClass, getProperty, setMetaClass, setProperty
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
invokeMethod
in interface GroovyObject
invokeMethod
in class GroovyObjectSupport
name
- the key nameargs
- the value associated with the keypublic static java.util.Map<java.lang.String,java.lang.Object> cloneDelegateAndGetContent(Closure<?> c)
JsonDelegate
s from closures.c
- closure representing JSON objectsJsonDelegate
public static java.util.Map<java.lang.String,java.lang.Object> curryDelegateAndGetContent(Closure<?> c, java.lang.Object o)
JsonDelegate
s from closures currying an object
argument.c
- closure representing JSON objectso
- an object curried to the closureJsonDelegate
public java.util.Map<java.lang.String,java.lang.Object> getContent()