@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableLookupNode extends LookupNode
LookupNode.
Use the builder to create immutable instances:
ImmutableLookupNode.builder().
Use the static factory method to create immutable instances:
ImmutableLookupNode.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableLookupNode.Builder
Builds instances of type
ImmutableLookupNode. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableLookupNode.Builder |
builder()
Creates a builder for
ImmutableLookupNode. |
static ImmutableLookupNode |
copyOf(LookupNode instance)
Creates an immutable copy of a
LookupNode value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLookupNode that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
token. |
static ImmutableLookupNode |
of(Token token)
Construct a new immutable
LookupNode instance. |
Token |
token() |
String |
toString()
Prints the immutable value
LookupNode with attribute values. |
ImmutableLookupNode |
withToken(Token value)
Copy the current immutable object by setting a value for the
token attribute. |
evaluateallNodes, hashedUsedVariables, usedVariables, usedVariablespublic Token token()
public final ImmutableLookupNode 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 boolean equals(Object another)
ImmutableLookupNode that have equal attribute values.public int hashCode()
token.public String toString()
LookupNode with attribute values.public static ImmutableLookupNode of(Token token)
LookupNode instance.token - The value for the token attributepublic static ImmutableLookupNode copyOf(LookupNode instance)
LookupNode 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 ImmutableLookupNode.Builder builder()
ImmutableLookupNode.
ImmutableLookupNode.builder()
.token(de.flapdoodle.eval.core.parser.Token) // required token
.build();
Copyright © 2024. All rights reserved.