Interface BuilderCodegenExtensionProvider


public interface BuilderCodegenExtensionProvider
An extension provider to modify the behavior of the builder code generator.
  • Method Details

    • supports

      boolean supports(TypeName type)
      Whether this extension provider supports the given type, that is configured by the user in io.helidon.builder.api.Prototype.Extension#value.
      Parameters:
      type - type provided in the extension annotation that an extension may support
      Returns:
      true if this provider supports the given type, false otherwise
    • create

      BuilderCodegenExtension create(TypeName... supportedTypes)
      Create an extension for the given type(s), that was checked by supports(io.helidon.common.types.TypeName).
      Parameters:
      supportedTypes - types supported by this extension - at least one is always present
      Returns:
      an extension to modify the generated code