public class BeanshellScriptEngine extends AbstractScriptEngine
Modifier and Type | Field and Description |
---|---|
protected bsh.Interpreter |
interpreter |
engineScopeBindings, scriptContext
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
Constructor and Description |
---|
BeanshellScriptEngine() |
Modifier and Type | Method and Description |
---|---|
Object |
eval(Reader reader) |
Object |
eval(String script) |
protected void |
setup() |
createBindings, eval, eval, eval, eval, get, getBindings, getContext, getFactory, log, put, setBindings, setContext, setLogService
public Object eval(String script) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
public Object eval(Reader reader) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
protected void setup()
Copyright © 2015–2022 SciJava. All rights reserved.