Class JBBPEvaluatorFactory
java.lang.Object
com.igormaznitsa.jbbp.compiler.varlen.JBBPEvaluatorFactory
The Factory generates a special evaluator which is appropriate for variable array size text.
It is a singleton and can't be created directly, only through the special getInstance method.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic JBBPEvaluatorFactoryGet an Instance of the factory.make(String expression, List<JBBPNamedFieldInfo> namedFields, byte[] compiledScript) Make an appropriate evaluator for an expression text.
-
Method Details
-
getInstance
Get an Instance of the factory.- Returns:
- the factory INSTANCE.
-
make
public JBBPIntegerValueEvaluator make(String expression, List<JBBPNamedFieldInfo> namedFields, byte[] compiledScript) Make an appropriate evaluator for an expression text.- Parameters:
expression- an expression text, must not be nullnamedFields- a named field listcompiledScript- a compiled script block- Returns:
- a generated evaluator, it will not be null in any case
- See Also:
-