@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableExpression extends Expression
Expression.
Use the builder to create immutable instances:
ImmutableExpression.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableExpression.Builder
Builds instances of type
ImmutableExpression. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableExpression.Builder |
builder()
Creates a builder for
ImmutableExpression. |
static ImmutableExpression |
copyOf(Expression instance)
Creates an immutable copy of a
Expression value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableExpression that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
mathContext, zoneId, source, root, variables, usedVariables. |
protected MathContext |
mathContext() |
Node |
root() |
String |
source() |
String |
toString()
Prints the immutable value
Expression with attribute values. |
Set<String> |
usedVariables() |
Map<String,Integer> |
usedVariablesWithHash()
Returns a lazily initialized value of the
usedVariablesWithHash attribute. |
Variables |
variables() |
ImmutableExpression |
withMathContext(MathContext value)
Copy the current immutable object by setting a value for the
mathContext attribute. |
ImmutableExpression |
withRoot(Node value)
Copy the current immutable object by setting a value for the
root attribute. |
ImmutableExpression |
withSource(String value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableExpression |
withZoneId(ZoneId value)
Copy the current immutable object by setting a value for the
zoneId attribute. |
protected ZoneId |
zoneId() |
allNodes, evaluate, evaluateType, undefinedVariablesprotected MathContext mathContext()
mathContext in class ExpressionmathContext attributeprotected ZoneId zoneId()
zoneId in class ExpressionzoneId attributepublic String source()
source in class Expressionsource attributepublic Node root()
root in class Expressionroot attributepublic Variables variables()
variables in class Expressionvariables attributepublic Set<String> usedVariables()
usedVariables in class ExpressionusedVariables attributepublic final ImmutableExpression withMathContext(MathContext value)
mathContext attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for mathContextthis objectpublic final ImmutableExpression withZoneId(ZoneId value)
zoneId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for zoneIdthis objectpublic final ImmutableExpression withSource(String value)
source attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for sourcethis objectpublic final ImmutableExpression withRoot(Node value)
root attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for rootthis objectpublic boolean equals(Object another)
ImmutableExpression that have equal attribute values.public int hashCode()
mathContext, zoneId, source, root, variables, usedVariables.public String toString()
Expression with attribute values.public Map<String,Integer> usedVariablesWithHash()
Returns a lazily initialized value of the usedVariablesWithHash attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
usedVariablesWithHash in class ExpressionusedVariablesWithHash attributepublic static ImmutableExpression copyOf(Expression instance)
Expression 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 ImmutableExpression.Builder builder()
ImmutableExpression.
ImmutableExpression.builder()
.mathContext(java.math.MathContext) // required mathContext
.zoneId(java.time.ZoneId) // required zoneId
.source(String) // required source
.root(de.flapdoodle.eval.core.tree.Node) // required root
.build();
Copyright © 2024. All rights reserved.