public interface ScriptInterpreter
Modifier and Type | Method and Description |
---|---|
void |
eval(String command)
Evaluates a command.
|
ScriptEngine |
getEngine()
Returns the associated
ScriptEngine . |
ScriptLanguage |
getLanguage()
Returns the associated
ScriptLanguage . |
void |
readHistory()
Reads the persisted history of the current script interpreter.
|
String |
walkHistory(String currentCommand,
boolean forward)
Obtains the next/previous command in the command history.
|
void |
writeHistory()
Persists the history of the current script interpreter.
|
void readHistory()
void writeHistory()
String walkHistory(String currentCommand, boolean forward)
currentCommand
- the current command (will be stored in the history)forward
- if true, the next history entry is returned (more recent),
if false, the previous onevoid eval(String command) throws ScriptException
command
- the command to evaluateScriptException
ScriptLanguage getLanguage()
ScriptLanguage
.ScriptEngine getEngine()
ScriptEngine
.Copyright © 2009–2015 SciJava. All rights reserved.