|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptInterpreter
The contract for script interpreters.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 one
void eval(String command) throws ScriptException
command
- the command to evaluate
ScriptException
ScriptLanguage getLanguage()
ScriptLanguage
.
ScriptEngine getEngine()
ScriptEngine
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |