|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IInterpreter
Interpreters should implement this.
| Method Summary | |
|---|---|
boolean |
execute(java.lang.String command)
Requests the interpreter to execute the given command. |
java.lang.String |
getOutput()
Returns the output that was generated by the last executed command. |
void |
initialize()
Initializes the console. |
void |
setConsole(IInterpreterConsole console)
Associated the given console this this interpreter. |
void |
setStdErr(java.io.PrintWriter w)
Change the stderr writer |
void |
setStdOut(java.io.PrintWriter w)
Change the stdout writer |
void |
storeHistory(CommandHistory history)
Gives the interpreter the command to persist the given history. |
void |
terminate()
Requests the interpreter to terminate. |
| Method Detail |
|---|
void initialize()
boolean execute(java.lang.String command)
throws CommandExecutionException,
TerminationException
command - The command to execute.
CommandExecutionException - Thrown when an exception occurs during the processing of a command. The message
contained in the exception will be printed in the console.
TerminationException - Thrown when the executed command triggers a termination request for the console.void setConsole(IInterpreterConsole console)
console - The console to associate with this interpreter.java.lang.String getOutput()
void terminate()
void storeHistory(CommandHistory history)
history - The command history associated with the console.void setStdOut(java.io.PrintWriter w)
printStream - void setStdErr(java.io.PrintWriter w)
printStream -
|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||