Class ImmutableTrees.Invoke.Builder

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

@NotThreadSafe public static final class ImmutableTrees.Invoke.Builder extends Object
Builds instances of type Invoke. 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.InvokeDeclaration instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableTrees.Invoke.Builder from(Trees.Invoke instance)
      Fill a builder with attribute values from the provided org.immutables.generator.processor.Trees.Invoke 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)
    • access

      Initializes the value for the access attribute.
      Parameters:
      access - The value for access
      Returns:
      this builder for use in a chained invocation
    • invoke

      Initializes the optional value invoke to invoke.
      Parameters:
      invoke - The value for invoke
      Returns:
      this builder for chained invocation
    • invoke

      public final ImmutableTrees.Invoke.Builder invoke(com.google.common.base.Optional<? extends Trees.ApplyExpression> invoke)
      Initializes the optional value invoke to invoke.
      Parameters:
      invoke - The value for invoke
      Returns:
      this builder for use in a chained invocation
    • build

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

      private String formatRequiredAttributesMessage()