Class ImmutableTrees.InvokeStatement

    • Method Detail

      • parts

        public com.google.common.collect.ImmutableList<Trees.TemplatePart> parts()
        Specified by:
        parts in interface Trees.Block
        Returns:
        The value of the parts attribute
      • withParts

        public final ImmutableTrees.InvokeStatement withParts​(Trees.TemplatePart... elements)
        Copy the current immutable object with elements that replace the content of parts.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withParts

        public final ImmutableTrees.InvokeStatement withParts​(java.lang.Iterable<? extends Trees.TemplatePart> elements)
        Copy the current immutable object with elements that replace the content of parts. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of parts elements to set
        Returns:
        A modified copy of this object
      • withAccess

        public final ImmutableTrees.InvokeStatement withAccess​(Trees.Expression value)
        Copy the current immutable object by setting a value for the access attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for access
        Returns:
        A modified copy of the this object
      • withParams

        public final ImmutableTrees.InvokeStatement withParams​(Trees.Expression... elements)
        Copy the current immutable object with elements that replace the content of params.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withParams

        public final ImmutableTrees.InvokeStatement withParams​(java.lang.Iterable<? extends Trees.Expression> elements)
        Copy the current immutable object with elements that replace the content of params. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of params elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of InvokeStatement that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: parts, access, params.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value InvokeStatement with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableTrees.InvokeStatement copyOf​(Trees.InvokeStatement instance)
        Creates an immutable copy of a Trees.InvokeStatement value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable InvokeStatement instance
      • builder

        public static ImmutableTrees.InvokeStatement.Builder builder()
        Creates a builder for InvokeStatement.
         ImmutableTrees.InvokeStatement.builder()
            .addParts|addAllParts(org.immutables.generator.processor.Trees.TemplatePart) // parts elements
            .access(org.immutables.generator.processor.Trees.Expression) // required access
            .addParams|addAllParams(org.immutables.generator.processor.Trees.Expression) // params elements
            .build();
         
        Returns:
        A new InvokeStatement builder