java.lang.Object
io.helidon.common.processor.classmodel.Constructor.Builder
All Implemented Interfaces:
Builder<Constructor.Builder,Constructor>, Supplier<Constructor>
Enclosing class:
Constructor

public static final class Constructor.Builder extends Object
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
    • javadoc

      public Constructor.Builder javadoc(Javadoc javadoc)
    • addJavadocTag

      public Constructor.Builder addJavadocTag(String tag, String description)
    • accessModifier

      public Constructor.Builder accessModifier(AccessModifier accessModifier)
    • addLine

      public Constructor.Builder addLine(String line)
      Add text line to the content. New line character is added after this line.
      Parameters:
      line - line to add
      Returns:
      updated builder instance
    • add

      public Constructor.Builder add(String line)
      Add text line to the content. New line character is not added after this line, so all newly added text will be appended to the same line.
      Parameters:
      line - line to add
      Returns:
      updated builder instance
    • clearContent

      public Constructor.Builder clearContent()
      Clears created content.
      Returns:
      updated builder instance
    • typeName

      public Constructor.Builder typeName(String fqClassName)
      Obtained fully qualified type name is enclosed between ClassModel.TYPE_TOKEN tokens. Class names in such a format are later recognized as class names for import handling.
      Parameters:
      fqClassName - fully qualified class name to import
      Returns:
      updated builder instance
    • typeName

      public Constructor.Builder typeName(Class<?> type)
      Obtained type is enclosed between ClassModel.TYPE_TOKEN tokens. Class names in such a format are later recognized as class names for import handling.
      Parameters:
      type - type to import
      Returns:
      updated builder instance
    • typeName

      public Constructor.Builder typeName(TypeName typeName)
      Obtained type is enclosed between ClassModel.TYPE_TOKEN tokens. Class names in such a format are later recognized as class names for import handling.
      Parameters:
      typeName - type name to import
      Returns:
      updated builder instance
    • padding

      public Constructor.Builder padding()
      Adds single padding. This extra padding is added only once. If more permanent padding increment is needed use {increasePadding()}.
      Returns:
      updated builder instance
    • padding

      public Constructor.Builder padding(int repetition)
      Adds padding with number of repetitions. This extra padding is added only once. If more permanent padding increment is needed use {increasePadding()}.
      Parameters:
      repetition - number of padding repetitions
      Returns:
      updated builder instance
    • increasePadding

      public Constructor.Builder increasePadding()
      Method for manual padding increment. This method will affect padding of the later added content.
      Returns:
      updated builder instance
    • decreasePadding

      public Constructor.Builder decreasePadding()
      Method for manual padding decrement. This method will affect padding of the later added content.
      Returns:
      updated builder instance
    • content

      public Constructor.Builder content(String content)
      Set new content. This method replaces previously created content in this builder.
      Parameters:
      content - content to be set
      Returns:
      updated builder instance
    • content

      public Constructor.Builder content(List<String> content)
      Set new content. This method replaces previously created content in this builder.
      Parameters:
      content - content to be set
      Returns:
      updated builder instance
    • addParameter

      public Constructor.Builder addParameter(Consumer<Parameter.Builder> consumer)
      Add new method parameter.
      Parameters:
      consumer - method builder consumer
      Returns:
      updated builder instance
    • addParameter

      public Constructor.Builder addParameter(Parameter parameter)
      Add new method parameter.
      Parameters:
      parameter - method parameter
      Returns:
      updated builder instance
    • addParameter

      public Constructor.Builder addParameter(Supplier<Parameter> supplier)
      Add new method parameter.
      Parameters:
      supplier - method parameter supplier
      Returns:
      updated builder instance
    • addThrows

      public Constructor.Builder addThrows(TypeName exception, String description)
    • addThrows

      public Constructor.Builder addThrows(Consumer<Throws.Builder> consumer)
    • addThrows

      public Constructor.Builder addThrows(Supplier<Throws> supplier)
    • addThrows

      public Constructor.Builder addThrows(Throws exception)
    • generateJavadoc

      public Constructor.Builder generateJavadoc(boolean generateJavadoc)
    • 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(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 -
      Returns: