Interface Evaluator
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface Evaluator extends java.lang.AutoCloseableEvaluator interface. An implementation of this is used during evaluation of all expressions for one component descriptor as needed. This does not need to be thread safe and it will not be used across component descriptors without receiving intermediate init/destroy calls.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()default close session does nothingjava.lang.Objecteval(java.lang.String expression)Evaluate an expression tagged for this processor.voidinit(EvaluationContext context)Initialize evalution session
-
-
-
Method Detail
-
init
void init(EvaluationContext context)
Initialize evalution session
-
eval
java.lang.Object eval(java.lang.String expression)
Evaluate an expression tagged for this processor. A result ofnullis legal during processing but will eventually be removed from the properties set.
-
close
default void close()
default close session does nothing- Specified by:
closein interfacejava.lang.AutoCloseable
-
-