Annotation Interface DelegatesToBuilder


@Target(PARAMETER) @Retention(SOURCE) @Documented public @interface DelegatesToBuilder
Marks a closure parameter as delegating to a generated Builder.

The generated Builder does not exist while the schema is parsed. An optional value selects the DSL Object whose Builder receives the closure.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The DSL Object whose generated Builder receives the closure.
  • Element Details

    • value

      Class<?> value
      The DSL Object whose generated Builder receives the closure.
      Default:
      groovy.transform.Undefined.class