public class BeanShellScriptEngine extends ScriptEngine
context, CONTEXT_VARIABLE_NAME| Constructor and Description |
|---|
BeanShellScriptEngine(Map context)
Constructor - initializes context used in engine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Object |
eval(String expression)
Evaluates specified expression or code block.
|
void |
setVariable(String name,
Object value)
Sets variable in scripter context.
|
pushAllVariablesFromContextToScriptEngine, setInContextpublic BeanShellScriptEngine(Map context)
context - public void setVariable(String name, Object value)
setVariable in class ScriptEnginename - value - public Object eval(String expression)
eval in class ScriptEnginepublic void dispose()
dispose in class ScriptEngineCopyright © 2022 WSO2. All rights reserved.