public static final class ImmutableExpressionFactory.Builder extends Object
ImmutableExpressionFactory.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableExpressionFactory.Builder from(ExpressionFactory instance)
ExpressionFactory instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder mathContext(MathContext mathContext)
mathContext attribute.
If not set, this attribute will have a default value as returned by the initializer of mathContext.
mathContext - The value for mathContextthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder zoneId(ZoneId zoneId)
zoneId attribute.
If not set, this attribute will have a default value as returned by the initializer of zoneId.
zoneId - The value for zoneIdthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder constants(VariableResolver constants)
constants attribute.constants - The value for constantsthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder evaluatables(TypedEvaluableByName evaluatables)
evaluatables attribute.evaluatables - The value for evaluatablesthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder arrayAccess(TypedEvaluableByNumberOfArguments arrayAccess)
arrayAccess attribute.arrayAccess - The value for arrayAccessthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder propertyAccess(TypedEvaluableByNumberOfArguments propertyAccess)
propertyAccess attribute.propertyAccess - The value for propertyAccessthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder numberAsValue(NumberAsValue numberAsValue)
numberAsValue attribute.numberAsValue - The value for numberAsValuethis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder stringAsValue(StringAsValue stringAsValue)
stringAsValue attribute.stringAsValue - The value for stringAsValuethis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder exceptionMapper(EvaluableExceptionMapper exceptionMapper)
exceptionMapper attribute.exceptionMapper - The value for exceptionMapperthis builder for use in a chained invocationpublic final ImmutableExpressionFactory.Builder operatorMap(OperatorMap operatorMap)
operatorMap attribute.operatorMap - The value for operatorMapthis builder for use in a chained invocationpublic ImmutableExpressionFactory build()
ImmutableExpressionFactory.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.