@Incubating public interface ScriptEvaluator
ScriptAssert
and ParameterScriptAssert
constraints.
The default implementation ScriptEngineScriptEvaluator
is a wrapper around JSR 223
ScriptEngine
s. It can also be any user specific implementation.
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(String script,
Map<String,Object> bindings)
Evaluates a
script expression and returns the result of this evaluation. |
Object evaluate(String script, Map<String,Object> bindings) throws ScriptEvaluationException
script
expression and returns the result of this evaluation.script
- a script to evaluatebindings
- the bindings to be usedScriptEvaluationException
- in case an error occurred during the script evaluationCopyright © 2019 JBoss by Red Hat. All rights reserved.