Interface ScriptEvaluator
-
- All Known Implementing Classes:
ScriptEngineScriptEvaluator
@Incubating public interface ScriptEvaluator
Used to evaluate script expressions forScriptAssertandParameterScriptAssertconstraints.The default implementation
ScriptEngineScriptEvaluatoris a wrapper around JSR 223ScriptEngines. It can also be any user specific implementation.- Since:
- 6.0.3
- Author:
- Marko Bekhta
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectevaluate(String script, Map<String,Object> bindings)Evaluates ascriptexpression and returns the result of this evaluation.
-
-
-
Method Detail
-
evaluate
Object evaluate(String script, Map<String,Object> bindings) throws ScriptEvaluationException
Evaluates ascriptexpression and returns the result of this evaluation.- Parameters:
script- a script to evaluatebindings- the bindings to be used- Returns:
- the result of script evaluation
- Throws:
ScriptEvaluationException- in case an error occurred during the script evaluation
-
-