Class ImmutableTrees.LetStatement.Builder

  • Enclosing class:
    ImmutableTrees.LetStatement

    @NotThreadSafe
    public static final class ImmutableTrees.LetStatement.Builder
    extends java.lang.Object
    Builds instances of type LetStatement. 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.LetStatement.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.LetStatement.Builder from​(Trees.Block instance)
        Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.Block instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableTrees.LetStatement.Builder from​(Trees.LetStatement instance)
        Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.LetStatement 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.LetStatement build()
        Builds a new LetStatement.
        Returns:
        An immutable instance of LetStatement
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()