|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object groovy.json.JsonDelegate
class JsonDelegate
Utility class used as delegate of closures representing JSON objects.
Property Summary | |
---|---|
java.lang.Object |
content
|
Method Summary | |
---|---|
static java.lang.Object
|
cloneDelegateAndGetContent(Closure c)
Factory method for creating |
java.lang.Object
|
invokeMethod(java.lang.String name, java.lang.Object args)
Intercepts calls for setting a key and value for a JSON object |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
java.lang.Object content
Method Detail |
---|
static java.lang.Object cloneDelegateAndGetContent(Closure c)
JsonDelegate
s from closures.
c
- closure representing JSON objectsJsonDelegate
java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
name
- the key nameargs
- the value associated with the key
Groovy Documentation