Package de.xima.fc.common.el
Class ElEvaluators.Builder
- java.lang.Object
-
- de.xima.fc.common.el.ElEvaluators.Builder
-
- Enclosing class:
- ElEvaluators
public static final class ElEvaluators.Builder extends Object
A builder for anElEvaluators. UseElEvaluators.builder()to create a new instance.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElEvaluators.BuilderaddStaticFunctions(String prefix, Class<?> clazz)Adds static functions from the given class to the evaluator, with the specified prefix.IElEvaluatorbuild()Builds a newIElEvaluatorinstance with the current configuration of this builder.
-
-
-
Method Detail
-
addStaticFunctions
public ElEvaluators.Builder addStaticFunctions(String prefix, Class<?> clazz)
Adds static functions from the given class to the evaluator, with the specified prefix. Only static methods that are public will be added.- Parameters:
prefix- The prefix to use for the static functions.clazz- The class from which to add static functions.- Returns:
- This builder instance for method chaining.
-
build
public IElEvaluator build()
Builds a newIElEvaluatorinstance with the current configuration of this builder.- Returns:
- A new
IElEvaluatorinstance.
-
-