Class Throws.Builder

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

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

    • build

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

      public Throws.Builder type(String type)
    • type

      public Throws.Builder type(Class<?> type)
    • type

      public Throws.Builder type(TypeName type)
    • description

      public Throws.Builder description(String description)
    • description

      public Throws.Builder description(List<String> description)
    • includeImport

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