@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableExpressionFactory extends ExpressionFactory
ExpressionFactory.
Use the builder to create immutable instances:
ImmutableExpressionFactory.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableExpressionFactory.Builder
Builds instances of type
ImmutableExpressionFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected TypedEvaluableByNumberOfArguments |
arrayAccess() |
static ImmutableExpressionFactory.Builder |
builder()
Creates a builder for
ImmutableExpressionFactory. |
VariableResolver |
constants() |
static ImmutableExpressionFactory |
copyOf(ExpressionFactory instance)
Creates an immutable copy of a
ExpressionFactory value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableExpressionFactory that have equal attribute values. |
TypedEvaluableByName |
evaluatables() |
protected EvaluableExceptionMapper |
exceptionMapper() |
int |
hashCode()
Computes a hash code from attributes:
mathContext, zoneId, constants, evaluatables, arrayAccess, propertyAccess, numberAsValue, stringAsValue, exceptionMapper, operatorMap. |
MathContext |
mathContext() |
protected NumberAsValue |
numberAsValue() |
OperatorMap |
operatorMap() |
protected TypedEvaluableByNumberOfArguments |
propertyAccess() |
protected StringAsValue |
stringAsValue() |
String |
toString()
Prints the immutable value
ExpressionFactory with attribute values. |
ImmutableExpressionFactory |
withArrayAccess(TypedEvaluableByNumberOfArguments value)
Copy the current immutable object by setting a value for the
arrayAccess attribute. |
ImmutableExpressionFactory |
withConstants(VariableResolver value)
Copy the current immutable object by setting a value for the
constants attribute. |
ImmutableExpressionFactory |
withEvaluatables(TypedEvaluableByName value)
Copy the current immutable object by setting a value for the
evaluatables attribute. |
ImmutableExpressionFactory |
withExceptionMapper(EvaluableExceptionMapper value)
Copy the current immutable object by setting a value for the
exceptionMapper attribute. |
ImmutableExpressionFactory |
withMathContext(MathContext value)
Copy the current immutable object by setting a value for the
mathContext attribute. |
ImmutableExpressionFactory |
withNumberAsValue(NumberAsValue value)
Copy the current immutable object by setting a value for the
numberAsValue attribute. |
ImmutableExpressionFactory |
withOperatorMap(OperatorMap value)
Copy the current immutable object by setting a value for the
operatorMap attribute. |
ImmutableExpressionFactory |
withPropertyAccess(TypedEvaluableByNumberOfArguments value)
Copy the current immutable object by setting a value for the
propertyAccess attribute. |
ImmutableExpressionFactory |
withStringAsValue(StringAsValue value)
Copy the current immutable object by setting a value for the
stringAsValue attribute. |
ImmutableExpressionFactory |
withZoneId(ZoneId value)
Copy the current immutable object by setting a value for the
zoneId attribute. |
protected ZoneId |
zoneId() |
abstractSyntaxTree, map, parse, tokens, withConstantpublic MathContext mathContext()
mathContext in class ExpressionFactorymathContext attributeprotected ZoneId zoneId()
zoneId in class ExpressionFactoryzoneId attributepublic VariableResolver constants()
constants in class ExpressionFactoryconstants attributepublic TypedEvaluableByName evaluatables()
evaluatables in class ExpressionFactoryevaluatables attributeprotected TypedEvaluableByNumberOfArguments arrayAccess()
arrayAccess in class ExpressionFactoryarrayAccess attributeprotected TypedEvaluableByNumberOfArguments propertyAccess()
propertyAccess in class ExpressionFactorypropertyAccess attributeprotected NumberAsValue numberAsValue()
numberAsValue in class ExpressionFactorynumberAsValue attributeprotected StringAsValue stringAsValue()
stringAsValue in class ExpressionFactorystringAsValue attributeprotected EvaluableExceptionMapper exceptionMapper()
exceptionMapper in class ExpressionFactoryexceptionMapper attributepublic OperatorMap operatorMap()
operatorMap in class ExpressionFactoryoperatorMap attributepublic final ImmutableExpressionFactory 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 ImmutableExpressionFactory 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 ImmutableExpressionFactory withConstants(VariableResolver value)
constants attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for constantsthis objectpublic final ImmutableExpressionFactory withEvaluatables(TypedEvaluableByName value)
evaluatables attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for evaluatablesthis objectpublic final ImmutableExpressionFactory withArrayAccess(TypedEvaluableByNumberOfArguments value)
arrayAccess attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for arrayAccessthis objectpublic final ImmutableExpressionFactory withPropertyAccess(TypedEvaluableByNumberOfArguments value)
propertyAccess attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for propertyAccessthis objectpublic final ImmutableExpressionFactory withNumberAsValue(NumberAsValue value)
numberAsValue attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for numberAsValuethis objectpublic final ImmutableExpressionFactory withStringAsValue(StringAsValue value)
stringAsValue attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for stringAsValuethis objectpublic final ImmutableExpressionFactory 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 final ImmutableExpressionFactory withOperatorMap(OperatorMap value)
operatorMap attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for operatorMapthis objectpublic boolean equals(Object another)
ImmutableExpressionFactory that have equal attribute values.public int hashCode()
mathContext, zoneId, constants, evaluatables, arrayAccess, propertyAccess, numberAsValue, stringAsValue, exceptionMapper, operatorMap.public String toString()
ExpressionFactory with attribute values.public static ImmutableExpressionFactory copyOf(ExpressionFactory instance)
ExpressionFactory 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 ImmutableExpressionFactory.Builder builder()
ImmutableExpressionFactory.
ImmutableExpressionFactory.builder()
.mathContext(java.math.MathContext) // optional mathContext
.zoneId(java.time.ZoneId) // optional zoneId
.constants(de.flapdoodle.eval.core.VariableResolver) // required constants
.evaluatables(de.flapdoodle.eval.core.evaluables.TypedEvaluableByName) // required evaluatables
.arrayAccess(de.flapdoodle.eval.core.evaluables.TypedEvaluableByNumberOfArguments) // required arrayAccess
.propertyAccess(de.flapdoodle.eval.core.evaluables.TypedEvaluableByNumberOfArguments) // required propertyAccess
.numberAsValue(de.flapdoodle.eval.core.NumberAsValue) // required numberAsValue
.stringAsValue(de.flapdoodle.eval.core.StringAsValue) // required stringAsValue
.exceptionMapper(de.flapdoodle.eval.core.tree.EvaluableExceptionMapper) // required exceptionMapper
.operatorMap(de.flapdoodle.eval.core.evaluables.OperatorMap) // required operatorMap
.build();
Copyright © 2024. All rights reserved.