Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

ptolemy.gui
Interface ShellInterpreter

All Known Implementing Classes:
ExpressionShellTableau, InteractiveShell

public interface ShellInterpreter

An interface for interpreters that work with the ShellTextArea.

Since:
Ptolemy II 3.0
Version:
$Id: ShellInterpreter.java,v 1.15 2005年07月08日 19:59:08 cxh Exp $
Author:
Edward A. Lee
See Also:
ShellTextArea
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Method Summary
java.lang.String evaluateCommand(java.lang.String command)
Evaluate the specified command.
boolean isCommandComplete(java.lang.String command)
Return true if the specified command is complete (ready to be interpreted).

Method Detail

evaluateCommand

public java.lang.String evaluateCommand(java.lang.String command)
 throws java.lang.Exception
Evaluate the specified command. If this method returns null, then the associated ShellTextArea will not display a prompt until returnResult() is called. If this method returns an empty string, then the associated ShellTextArea will display the prompt.

Parameters:
command - The command.
Returns:
The return value of the command, or null if there is none.
Throws:
java.lang.Exception - If something goes wrong processing the command.
See Also:
ShellTextArea.returnResult(String)

isCommandComplete

public boolean isCommandComplete(java.lang.String command)
Return true if the specified command is complete (ready to be interpreted).

Parameters:
command - The command.
Returns:
True if the command is complete.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /