@SuppressWarnings({ "unchecked", "rawtypes" }) public class ClosureToMapPopulator extends GroovyObjectSupport
A simple class that takes method invocations and property setters and populates the arguments of these into the supplied map ignoring null values.
Constructor and description |
---|
ClosureToMapPopulator(Map theMap) |
ClosureToMapPopulator() |
Type Params | Return Type | Name and description |
---|---|---|
|
public Object |
invokeMethod(String name, Object o) |
|
public Map |
populate(Closure callable) |
|
public void |
setProperty(String name, Object o) |
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport |
equals, getClass, getMetaClass, getProperty, hashCode, invokeMethod, notify, notifyAll, setMetaClass, setProperty, toString, wait, wait, wait |