@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableEvaluatableNode extends EvaluatableNode
EvaluatableNode.
Use the builder to create immutable instances:
ImmutableEvaluatableNode.builder().
Use the static factory method to create immutable instances:
ImmutableEvaluatableNode.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEvaluatableNode.Builder
Builds instances of type
ImmutableEvaluatableNode. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEvaluatableNode.Builder |
builder()
Creates a builder for
ImmutableEvaluatableNode. |
static ImmutableEvaluatableNode |
copyOf(EvaluatableNode instance)
Creates an immutable copy of a
EvaluatableNode value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEvaluatableNode that have equal attribute values. |
protected TypedEvaluableByArguments |
evaluatable() |
protected EvaluableExceptionMapper |
exceptionMapper() |
int |
hashCode()
Computes a hash code from attributes:
token, evaluatable, parameters, exceptionMapper. |
static ImmutableEvaluatableNode |
of(Token token,
TypedEvaluableByArguments evaluatable,
Iterable<? extends Node> parameters,
EvaluableExceptionMapper exceptionMapper)
Construct a new immutable
EvaluatableNode instance. |
static ImmutableEvaluatableNode |
of(Token token,
TypedEvaluableByArguments evaluatable,
List<Node> parameters,
EvaluableExceptionMapper exceptionMapper)
Construct a new immutable
EvaluatableNode instance. |
protected List<Node> |
parameters() |
Token |
token() |
String |
toString()
Prints the immutable value
EvaluatableNode with attribute values. |
ImmutableEvaluatableNode |
withEvaluatable(TypedEvaluableByArguments value)
Copy the current immutable object by setting a value for the
evaluatable attribute. |
ImmutableEvaluatableNode |
withExceptionMapper(EvaluableExceptionMapper value)
Copy the current immutable object by setting a value for the
exceptionMapper attribute. |
ImmutableEvaluatableNode |
withParameters(Iterable<? extends Node> elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableEvaluatableNode |
withParameters(Node... elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableEvaluatableNode |
withToken(Token value)
Copy the current immutable object by setting a value for the
token attribute. |
evaluateallNodes, hashedUsedVariables, usedVariables, usedVariablespublic Token token()
protected TypedEvaluableByArguments evaluatable()
evaluatable in class EvaluatableNodeevaluatable attributeprotected List<Node> parameters()
parameters in class EvaluatableNodeparameters attributeprotected EvaluableExceptionMapper exceptionMapper()
exceptionMapper in class EvaluatableNodeexceptionMapper attributepublic final ImmutableEvaluatableNode withToken(Token value)
token attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for tokenthis objectpublic final ImmutableEvaluatableNode withEvaluatable(TypedEvaluableByArguments value)
evaluatable attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for evaluatablethis objectpublic final ImmutableEvaluatableNode withParameters(Node... elements)
parameters.elements - The elements to setthis objectpublic final ImmutableEvaluatableNode withParameters(Iterable<? extends Node> elements)
parameters.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of parameters elements to setthis objectpublic final ImmutableEvaluatableNode withExceptionMapper(EvaluableExceptionMapper value)
exceptionMapper attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for exceptionMapperthis objectpublic boolean equals(Object another)
ImmutableEvaluatableNode that have equal attribute values.public int hashCode()
token, evaluatable, parameters, exceptionMapper.public String toString()
EvaluatableNode with attribute values.public static ImmutableEvaluatableNode of(Token token, TypedEvaluableByArguments evaluatable, List<Node> parameters, EvaluableExceptionMapper exceptionMapper)
EvaluatableNode instance.token - The value for the token attributeevaluatable - The value for the evaluatable attributeparameters - The value for the parameters attributeexceptionMapper - The value for the exceptionMapper attributepublic static ImmutableEvaluatableNode of(Token token, TypedEvaluableByArguments evaluatable, Iterable<? extends Node> parameters, EvaluableExceptionMapper exceptionMapper)
EvaluatableNode instance.token - The value for the token attributeevaluatable - The value for the evaluatable attributeparameters - The value for the parameters attributeexceptionMapper - The value for the exceptionMapper attributepublic static ImmutableEvaluatableNode copyOf(EvaluatableNode instance)
EvaluatableNode value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableEvaluatableNode.Builder builder()
ImmutableEvaluatableNode.
ImmutableEvaluatableNode.builder()
.token(de.flapdoodle.eval.core.parser.Token) // required token
.evaluatable(de.flapdoodle.eval.core.evaluables.TypedEvaluableByArguments) // required evaluatable
.addParameters|addAllParameters(de.flapdoodle.eval.core.tree.Node) // parameters elements
.exceptionMapper(de.flapdoodle.eval.core.tree.EvaluableExceptionMapper) // required exceptionMapper
.build();
Copyright © 2024. All rights reserved.