@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 |
---|---|
java.lang.Object |
evaluate(java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> bindings)
Evaluates a
script expression and returns the result of this evaluation. |
java.lang.Object evaluate(java.lang.String script, java.util.Map<java.lang.String,java.lang.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 © 2007-2022 Red Hat, Inc. All Rights Reserved