Class Constructor.Builder

All Implemented Interfaces:
ContentBuilder<Constructor.Builder>, Builder<Constructor.Builder,Constructor>, Supplier<Constructor>
Enclosing class:
Constructor

public static final class Constructor.Builder extends Executable.Builder<Constructor.Builder,Constructor>
Fluent API builder for Constructor.
  • Method Details

    • build

      public Constructor build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Returns:
      instance of the built type
    • description

      public Constructor.Builder description(String description)
    • description

      public Constructor.Builder description(List<String> description)
    • addDescriptionLine

      public Constructor.Builder addDescriptionLine(String line)
    • addAnnotation

      public Constructor.Builder addAnnotation(Annotation annotation)
      Add new annotation to the component.
      Parameters:
      annotation - annotation instance
      Returns:
      updated builder instance
    • addAnnotation

      public Constructor.Builder addAnnotation(Consumer<Annotation.Builder> consumer)
      Add new annotation to the component.
      Parameters:
      consumer - annotation builder consumer
      Returns:
      updated builder instance
    • addAnnotation

      public Constructor.Builder addAnnotation(Annotation.Builder builder)
      Add new annotation to the component.
      Parameters:
      builder - annotation builder
      Returns:
      updated builder instance
    • addAnnotation

      public Constructor.Builder addAnnotation(Annotation annotation)
      Add new annotation to the component.
      Parameters:
      annotation - annotation instance
      Returns:
      updated builder instance
    • name

      public Constructor.Builder name(String name)
    • includeImport

      public Constructor.Builder includeImport(boolean includeImport)
      Whether to include import type information among the imports.
      Parameters:
      includeImport - whether imports should be included
      Returns:
      updated builder instance