Class ImmutableTrees.Let.Builder

  • Enclosing class:
    ImmutableTrees.Let

    @NotThreadSafe
    public static final class ImmutableTrees.Let.Builder
    extends java.lang.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.

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • from

        public final ImmutableTrees.Let.Builder from​(Trees.InvokableStatement instance)
        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,
                          java.lang.Object object)
      • build

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

        private java.lang.String formatRequiredAttributesMessage()