Aside from language-specific implementations, Spring also ships
a version based on the standard javax.script package (JSR-223):
org..
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the return value of the script, if anythe ScriptSource for the script to evaluate script)Evaluate the given script. |
| public Object | Returns: the return value of the script, if anythe ScriptSource for the script to evaluate script, Map<String, Object> the key-value pairs to expose to the script,
typically as script variables (may be arguments)null or empty)Evaluate the given script with the given arguments. |
| evaluate | back to summary |
|---|---|
| public Object evaluate(ScriptSource script) throws ScriptCompilationException Evaluate the given script.
| |
| evaluate | back to summary |
|---|---|
| public Object evaluate(ScriptSource script, Map<String, Object> arguments) throws ScriptCompilationException Evaluate the given script with the given arguments.
| |