Class ImmutableTrees.ApplyExpression
- java.lang.Object
-
- org.immutables.generator.processor.ImmutableTrees.ApplyExpression
-
- All Implemented Interfaces:
Trees.ApplyExpression,Trees.Expression
- Enclosing class:
- ImmutableTrees
@Immutable public static final class ImmutableTrees.ApplyExpression extends java.lang.Object implements Trees.ApplyExpression
Immutable implementation ofTrees.ApplyExpression.Use the builder to create immutable instances:
ImmutableTrees.ApplyExpression.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTrees.ApplyExpression.BuilderBuilds instances of typeApplyExpression.
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<Trees.Expression>params
-
Constructor Summary
Constructors Modifier Constructor Description privateApplyExpression(com.google.common.collect.ImmutableList<Trees.Expression> params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTrees.ApplyExpression.Builderbuilder()Creates a builder forApplyExpression.static ImmutableTrees.ApplyExpressioncopyOf(Trees.ApplyExpression instance)Creates an immutable copy of aTrees.ApplyExpressionvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofApplyExpressionthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableTrees.ApplyExpression another)inthashCode()Computes a hash code from attributes:params.com.google.common.collect.ImmutableList<Trees.Expression>params()java.lang.StringtoString()Prints the immutable valueApplyExpressionwith attribute values.ImmutableTrees.ApplyExpressionwithParams(java.lang.Iterable<? extends Trees.Expression> elements)Copy the current immutable object with elements that replace the content ofparams.ImmutableTrees.ApplyExpressionwithParams(Trees.Expression... elements)Copy the current immutable object with elements that replace the content ofparams.
-
-
-
Field Detail
-
params
private final com.google.common.collect.ImmutableList<Trees.Expression> params
-
-
Constructor Detail
-
ApplyExpression
private ApplyExpression(com.google.common.collect.ImmutableList<Trees.Expression> params)
-
-
Method Detail
-
params
public com.google.common.collect.ImmutableList<Trees.Expression> params()
- Specified by:
paramsin interfaceTrees.ApplyExpression- Returns:
- The value of the
paramsattribute
-
withParams
public final ImmutableTrees.ApplyExpression withParams(Trees.Expression... elements)
Copy the current immutable object with elements that replace the content ofparams.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParams
public final ImmutableTrees.ApplyExpression withParams(java.lang.Iterable<? extends Trees.Expression> elements)
Copy the current immutable object with elements that replace the content ofparams. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of params elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofApplyExpressionthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableTrees.ApplyExpression another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:params.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueApplyExpressionwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableTrees.ApplyExpression copyOf(Trees.ApplyExpression instance)
Creates an immutable copy of aTrees.ApplyExpressionvalue. 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 ApplyExpression instance
-
builder
public static ImmutableTrees.ApplyExpression.Builder builder()
Creates a builder forApplyExpression.ImmutableTrees.ApplyExpression.builder() .addParams|addAllParams(org.immutables.generator.processor.Trees.Expression) //paramselements .build();- Returns:
- A new ApplyExpression builder
-
-