Class TypeArgument.Builder

java.lang.Object
io.helidon.codegen.classmodel.TypeArgument.Builder
All Implemented Interfaces:
Builder<TypeArgument.Builder,TypeArgument>, Supplier<TypeArgument>
Enclosing class:
TypeArgument

public static final class TypeArgument.Builder extends Object
Fluent API builder for TypeArgument.
  • Method Details

    • token

      public TypeArgument.Builder token(String token)
      Token name of this argument.
      Parameters:
      token - token name
      Returns:
      updated builder instance
    • bound

      public TypeArgument.Builder bound(String bound)
      Type this argument is bound to.
      Parameters:
      bound - argument bound
      Returns:
      updated builder instance
    • bound

      public TypeArgument.Builder bound(Class<?> bound)
      Type this argument is bound to.
      Parameters:
      bound - argument bound
      Returns:
      updated builder instance
    • bound

      public TypeArgument.Builder bound(TypeName bound)
      Type this argument is bound to.
      Parameters:
      bound - argument bound
      Returns:
      updated builder instance
    • description

      public TypeArgument.Builder description(String description)
      Set description of the component. It overwrites previously set description.
      Parameters:
      description - component description
      Returns:
      updated builder instance
    • description

      public TypeArgument.Builder description(List<String> description)
      Set description of the component. It overwrites previously set description.
      Parameters:
      description - component description
      Returns:
      updated builder instance
    • build

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

      public TypeArgument.Builder includeImport(boolean includeImport)
      Whether to include import type information among the imports.
      Parameters:
      includeImport -
      Returns: