Class ImmutableTrees.Invoke.Builder

  • Enclosing class:
    ImmutableTrees.Invoke

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

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • from

        public final ImmutableTrees.Invoke.Builder from​(Trees.InvokeDeclaration instance)
        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,
                          java.lang.Object object)
      • 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:
        java.lang.IllegalStateException - if any required attributes are missing
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()