Class ImmutableTrees.InvokeEnd

java.lang.Object
org.immutables.generator.processor.ImmutableTrees.InvokeEnd
All Implemented Interfaces:
Trees.Directive, Trees.DirectiveEnd, Trees.InvokeEnd, Trees.TemplatePart
Enclosing class:
ImmutableTrees

@Immutable public static final class ImmutableTrees.InvokeEnd extends Object implements Trees.InvokeEnd
Immutable implementation of Trees.InvokeEnd.

Use the static factory method to create immutable instances: ImmutableTrees.InvokeEnd.of().

  • Field Details

  • Constructor Details

  • Method Details

    • access

      public Trees.AccessExpression access()
      Specified by:
      access in interface Trees.InvokeEnd
      Returns:
      The value of the access attribute
    • withAccess

      public final ImmutableTrees.InvokeEnd withAccess(Trees.AccessExpression 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
    • equals

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

      private boolean equalTo(int synthetic, ImmutableTrees.InvokeEnd another)
    • hashCode

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

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

      Construct a new immutable InvokeEnd instance.
      Parameters:
      access - The value for the access attribute
      Returns:
      An immutable InvokeEnd instance
    • copyOf

      public static ImmutableTrees.InvokeEnd copyOf(Trees.InvokeEnd instance)
      Creates an immutable copy of a Trees.InvokeEnd 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 InvokeEnd instance