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 Object
implements Trees.ApplyExpression
Immutable implementation of
Trees.ApplyExpression.
Use the builder to create immutable instances:
ImmutableTrees.ApplyExpression.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Trees.Expression> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateApplyExpression(com.google.common.collect.ImmutableList<Trees.Expression> params) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forApplyExpression.copyOf(Trees.ApplyExpression instance) Creates an immutable copy of aTrees.ApplyExpressionvalue.booleanThis 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()toString()Prints the immutable valueApplyExpressionwith attribute values.withParams(Iterable<? extends Trees.Expression> elements) Copy the current immutable object with elements that replace the content ofparams.withParams(Trees.Expression... elements) Copy the current immutable object with elements that replace the content ofparams.
-
Field Details
-
params
-
-
Constructor Details
-
ApplyExpression
-
-
Method Details
-
params
- Specified by:
paramsin interfaceTrees.ApplyExpression- Returns:
- The value of the
paramsattribute
-
withParams
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(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
This instance is equal to all instances ofApplyExpressionthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:params. -
toString
Prints the immutable valueApplyExpressionwith attribute values. -
copyOf
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
Creates a builder forApplyExpression.ImmutableTrees.ApplyExpression.builder() .addParams|addAllParams(org.immutables.generator.processor.Trees.Expression) //paramselements .build();- Returns:
- A new ApplyExpression builder
-