Class ImmutableTrees.Let.Builder

java.lang.Object
org.immutables.generator.processor.ImmutableTrees.Let.Builder
Enclosing class:
ImmutableTrees.Let

@NotThreadSafe public static final class ImmutableTrees.Let.Builder extends Object
Builds instances of type Let. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Field Details

  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • from

      Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.InvokableStatement instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableTrees.Let.Builder from(Trees.Let instance)
      Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.Let instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      private void from(short _unused, Object object)
    • declaration

      public final ImmutableTrees.Let.Builder declaration(Trees.InvokableDeclaration declaration)
      Initializes the value for the declaration attribute.
      Parameters:
      declaration - The value for declaration
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableTrees.Let build()
      Builds a new Let.
      Returns:
      An immutable instance of Let
      Throws:
      IllegalStateException - if any required attributes are missing
    • formatRequiredAttributesMessage

      private String formatRequiredAttributesMessage()