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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInvokeEnd(ImmutableTrees.InvokeEnd original, Trees.AccessExpression access) privateInvokeEnd(Trees.AccessExpression access) -
Method Summary
Modifier and TypeMethodDescriptionaccess()static ImmutableTrees.InvokeEndcopyOf(Trees.InvokeEnd instance) Creates an immutable copy of aTrees.InvokeEndvalue.booleanThis instance is equal to all instances ofInvokeEndthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableTrees.InvokeEnd another) inthashCode()Computes a hash code from attributes:access.static ImmutableTrees.InvokeEndof(Trees.AccessExpression access) Construct a new immutableInvokeEndinstance.toString()Prints the immutable valueInvokeEndwith attribute values.final ImmutableTrees.InvokeEndwithAccess(Trees.AccessExpression value) Copy the current immutable object by setting a value for theaccessattribute.
-
Field Details
-
access
-
-
Constructor Details
-
InvokeEnd
-
InvokeEnd
-
-
Method Details
-
access
- Specified by:
accessin interfaceTrees.InvokeEnd- Returns:
- The value of the
accessattribute
-
withAccess
Copy the current immutable object by setting a value for theaccessattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for access- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofInvokeEndthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:access. -
toString
Prints the immutable valueInvokeEndwith attribute values. -
of
Construct a new immutableInvokeEndinstance.- Parameters:
access- The value for theaccessattribute- Returns:
- An immutable InvokeEnd instance
-
copyOf
Creates an immutable copy of aTrees.InvokeEndvalue. 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
-