convert any (nested) dsl structure (ie. closures) to a (nested) map structure.
def builder = new Builder()
builder.with {
prop "value"
prop2 = "value"
nested {
otherProp "value"
otherProp2 = "value"
}
}
def map = builder.get()
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Map |
get()returns the converted dsl map. |
|
java.lang.Object |
invokeMethod(java.lang.String methodName, java.lang.Object args)adds a key prop with value "value" to the result map given a closure expression
like this:
{ prop "value" }
|
|
void |
setProperty(java.lang.String propertyName, java.lang.Object value)adds a key prop with value "value" to the result map given a closure expression
like this:
{ prop = "value" }
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
returns the converted dsl map.
adds a key prop with value "value" to the result map given a closure expression
like this:
{ prop "value" }
propertyName - the property namevalue - the property value adds a key prop with value "value" to the result map given a closure expression
like this:
{ prop = "value" }
propertyName - the property namevalue - the property value