@Incubating public class ScriptEngineScriptEvaluator extends java.lang.Object implements ScriptEvaluator
ScriptEngines. This class is thread-safe.| Constructor and Description |
|---|
ScriptEngineScriptEvaluator(javax.script.ScriptEngine engine)
Creates a new script executor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> bindings)
Executes the given script, using the given variable bindings.
|
public ScriptEngineScriptEvaluator(javax.script.ScriptEngine engine)
engine - the engine to be wrappedpublic java.lang.Object evaluate(java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> bindings)
throws ScriptEvaluationException
evaluate in interface ScriptEvaluatorscript - the script to be executedbindings - the bindings to be usedScriptEvaluationException - in case an error occurred during the script evaluationCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved