ScriptEvaluator strategy interface.
Interpreter#eval(String)
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BshScriptEvaluator(ClassLoader
the ClassLoader to use for the classLoader)InterpreterConstruct a new BshScriptEvaluator. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | evaluate(ScriptSource
the ScriptSource for the script to evaluate script)Implements org. Evaluate the given script. |
| public Object | evaluate(ScriptSource
the 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)Implements org. Evaluate the given script with the given arguments. |
| public void | setBeanClassLoader(ClassLoader
the owning class loader classLoader)Implements org. Callback that supplies the bean |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader
| |
| BshScriptEvaluator | back to summary |
|---|---|
| public BshScriptEvaluator() Construct a new BshScriptEvaluator. | |
| BshScriptEvaluator | back to summary |
|---|---|
| public BshScriptEvaluator(ClassLoader classLoader) Construct a new BshScriptEvaluator.
| |
| evaluate | back to summary |
|---|---|
| public Object evaluate(ScriptSource script) Implements org. Doc from org. Evaluate the given script.
| |
| evaluate | back to summary |
|---|---|
| public Object evaluate(ScriptSource script, Map<String, Object> arguments) Implements org. Doc from org. Evaluate the given script with the given arguments. | |
| setBeanClassLoader | back to summary |
|---|---|
| public void setBeanClassLoader(ClassLoader classLoader) Implements org. Doc from org. Callback that supplies the bean Invoked after the population of normal bean properties but
before an initialization callback such as
| |