Groovy 2.2.1

groovy.json
[Groovy] Class JsonDelegate

java.lang.Object
  groovy.json.JsonDelegate

class JsonDelegate

Utility class used as delegate of closures representing JSON objects.

Authors:
Guillaume Laforge
Since:
1.8.0


Property Summary
def content

 
Method Summary
static def cloneDelegateAndGetContent(Closure c)

Factory method for creating JsonDelegates from closures.

def invokeMethod(String name, Object args)

Intercepts calls for setting a key and value for a JSON object

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

content

def content


 
Method Detail

cloneDelegateAndGetContent

static def cloneDelegateAndGetContent(Closure c)
Factory method for creating JsonDelegates from closures.
Parameters:
c - closure representing JSON objects
Returns:
an instance of JsonDelegate


invokeMethod

def invokeMethod(String name, Object args)
Intercepts calls for setting a key and value for a JSON object
Parameters:
name - the key name
args - the value associated with the key


 

Copyright © 2003-2013 The Codehaus. All rights reserved.