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 java.lang.Object implements Trees.InvokeEnd
Immutable implementation ofTrees.InvokeEnd.Use the static factory method to create immutable instances:
ImmutableTrees.InvokeEnd.of().
-
-
Field Summary
Fields Modifier and Type Field Description private Trees.AccessExpressionaccess
-
Constructor Summary
Constructors Modifier Constructor Description privateInvokeEnd(ImmutableTrees.InvokeEnd original, Trees.AccessExpression access)privateInvokeEnd(Trees.AccessExpression access)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Trees.AccessExpressionaccess()static ImmutableTrees.InvokeEndcopyOf(Trees.InvokeEnd instance)Creates an immutable copy of aTrees.InvokeEndvalue.booleanequals(java.lang.Object another)This 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.java.lang.StringtoString()Prints the immutable valueInvokeEndwith attribute values.ImmutableTrees.InvokeEndwithAccess(Trees.AccessExpression value)Copy the current immutable object by setting a value for theaccessattribute.
-
-
-
Field Detail
-
access
private final Trees.AccessExpression access
-
-
Constructor Detail
-
InvokeEnd
private InvokeEnd(Trees.AccessExpression access)
-
InvokeEnd
private InvokeEnd(ImmutableTrees.InvokeEnd original, Trees.AccessExpression access)
-
-
Method Detail
-
access
public Trees.AccessExpression access()
- Specified by:
accessin interfaceTrees.InvokeEnd- Returns:
- The value of the
accessattribute
-
withAccess
public final ImmutableTrees.InvokeEnd withAccess(Trees.AccessExpression value)
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
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofInvokeEndthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableTrees.InvokeEnd another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:access.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueInvokeEndwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static ImmutableTrees.InvokeEnd of(Trees.AccessExpression access)
Construct a new immutableInvokeEndinstance.- Parameters:
access- The value for theaccessattribute- Returns:
- An immutable InvokeEnd instance
-
copyOf
public static ImmutableTrees.InvokeEnd copyOf(Trees.InvokeEnd instance)
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
-
-