|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface IvyObjectBuilder
A IvyObjectBuilder builds Ivy domain objects of type T. You can influence the construction of the Ivy objects by adding transformers to this builder. A transformer can either be a closure, or a Transformer implementation. The transformers are called in the order added.
Method Summary | |
---|---|
void
|
addIvyTransformer(Transformer transformer)
Adds a transformer to this builder. |
void
|
addIvyTransformer(Closure transformer)
Adds a transformation closure to this builder. |
Method Detail |
---|
public void addIvyTransformer(Transformer transformer)
Adds a transformer to this builder.
public void addIvyTransformer(Closure transformer)
Adds a transformation closure to this builder. The closure is passed the object to transform as a parameter. The closure can return an object of type T, which will be used as the transformed value. The object to transform is also set as the delegate of the closure.
Groovy Documentation