| java.lang.Object edu.rice.cs.drjava.model.repl.InteractionsModel edu.rice.cs.drjava.model.repl.RMIInteractionsModel
All known Subclasses: edu.rice.cs.drjava.model.repl.DefaultInteractionsModel,
RMIInteractionsModel | abstract public class RMIInteractionsModel extends InteractionsModel (Code) | | An InteractionsModel which can serve as the glue between a local InteractionsDocument and a remote JavaInterpreter
in another JVM.
version: $Id: RMIInteractionsModel.java 4255 2007-08-28 19:17:37Z mgricken $ |
Field Summary | |
final protected MainJVM | _jvm RMI interface to the remote Java interpreter. |
_jvm | final protected MainJVM _jvm(Code) | | RMI interface to the remote Java interpreter.
|
RMIInteractionsModel | public RMIInteractionsModel(MainJVM jvm, ConsoleDocumentInterface adapter, File wd, int historySize, int writeDelay)(Code) | | Constructs an InteractionsModel which can communicate with another JVM.
Parameters: jvm - RMI interface to the slave JVM Parameters: adapter - InteractionsDJDocument to use in the InteractionsDocument Parameters: historySize - Number of lines to store in the history Parameters: writeDelay - Number of milliseconds to wait after each println |
_interpret | protected void _interpret(String toEval)(Code) | | Interprets the given command.
Parameters: toEval - command to be evaluated |
_notifyInterpreterChanged | abstract protected void _notifyInterpreterChanged(boolean inProgress)(Code) | | Notifies listeners that the interpreter has changed. (Subclasses must maintain listeners.)
Parameters: inProgress - Whether the new interpreter is currently in progress with an interaction, i.e., whether an interactionEnded event will be fired) |
_resetInterpreter | protected void _resetInterpreter(File wd)(Code) | | Resets the Java interpreter.
|
addBuildDirectoryClassPath | public void addBuildDirectoryClassPath(File f)(Code) | | |
addDebugInterpreter | public void addDebugInterpreter(String name, String className)(Code) | | Adds a named JavaDebugInterpreter to the list of interpreters.
Parameters: name - the unique name for the debug interpreter Parameters: className - the fully qualified class name of the class the debug interpreter is in throws: IllegalArgumentException - if the name is not unique |
addExternalFilesClassPath | public void addExternalFilesClassPath(File f)(Code) | | |
addExtraClassPath | public void addExtraClassPath(File f)(Code) | | |
addJavaInterpreter | public void addJavaInterpreter(String name)(Code) | | Adds a named DynamicJavaAdapter to the list of interpreters.
Parameters: name - the unique name for the interpreter throws: IllegalArgumentException - if the name is not unique |
addProjectClassPath | public void addProjectClassPath(File f)(Code) | | Adds the given path to the interpreter's classpath.
Parameters: path - Path to add |
addProjectFilesClassPath | public void addProjectFilesClassPath(File f)(Code) | | |
enableRestart | public void enableRestart()(Code) | | Enables restarting of slave JVM.
|
getClassPath | public Iterable<File> getClassPath()(Code) | | Gets the interpreter classpath from the interpreter jvm.
a vector of classpath elements |
getVariableClassName | public String getVariableClassName(String var)(Code) | | Gets the class name of a variable in the current interpreter.
Parameters: var - the name of the variable |
getVariableToString | public String getVariableToString(String var)(Code) | | Gets the string representation of the value of a variable in the current interpreter.
Parameters: var - the name of the variable |
removeInterpreter | public void removeInterpreter(String name)(Code) | | Removes the interpreter with the given name, if it exists.
Parameters: name - Name of the interpreter to remove |
setActiveInterpreter | public void setActiveInterpreter(String name, String prompt)(Code) | | Sets the active interpreter.
Parameters: name - the (unique) name of the interpreter. Parameters: prompt - the prompt the interpreter should have. |
setPrivateAccessible | public void setPrivateAccessible(boolean allow)(Code) | | Sets whether or not the interpreter should allow access to private members.
|
setToDefaultInterpreter | public void setToDefaultInterpreter()(Code) | | Sets the default interpreter to be the current one.
|
Methods inherited from edu.rice.cs.drjava.model.repl.InteractionsModel | protected void _createNewDebugPort() throws IOException(Code)(Java Doc) protected static String _deleteSemiColon(String s)(Code)(Java Doc) protected ArrayList<String> _getHistoryText(FileOpenSelector selector) throws IOException, OperationCanceledException(Code)(Java Doc) public void _interactionIsOver()(Code)(Java Doc) abstract protected void _interpret(String toEval)(Code)(Java Doc) abstract protected void _interpreterResetFailed(Throwable t)(Code)(Java Doc) abstract protected void _notifyInteractionEnded()(Code)(Java Doc) abstract protected void _notifyInteractionIncomplete()(Code)(Java Doc) abstract protected void _notifyInteractionStarted()(Code)(Java Doc) abstract protected void _notifyInterpreterExited(int status)(Code)(Java Doc) abstract public void _notifyInterpreterReady(File wd)(Code)(Java Doc) abstract protected void _notifyInterpreterResetFailed(Throwable t)(Code)(Java Doc) abstract protected void _notifyInterpreterResetting()(Code)(Java Doc) abstract protected void _notifySlaveJVMUsed()(Code)(Java Doc) abstract protected void _notifySyntaxErrorOccurred(int offset, int length)(Code)(Java Doc) protected ArrayList<String> _removeSeparators(String text)(Code)(Java Doc) abstract protected void _resetInterpreter(File wd)(Code)(Java Doc) protected static String _testClassCall(String s)(Code)(Java Doc) public void _writerDelay()(Code)(Java Doc) abstract public void addBuildDirectoryClassPath(File f)(Code)(Java Doc) abstract public void addExternalFilesClassPath(File f)(Code)(Java Doc) abstract public void addExtraClassPath(File f)(Code)(Java Doc) public void addListener(InteractionsListener listener)(Code)(Java Doc) public void addNewLine()(Code)(Java Doc) abstract public void addProjectClassPath(File f)(Code)(Java Doc) abstract public void addProjectFilesClassPath(File f)(Code)(Java Doc) public void append(String s, String styleName)(Code)(Java Doc) public void changeInputListener(InputListener oldListener, InputListener newListener)(Code)(Java Doc) public String getBanner()(Code)(Java Doc) public static String getBanner(File wd)(Code)(Java Doc) abstract public ConsoleDocument getConsoleDocument()(Code)(Java Doc) public String getConsoleInput()(Code)(Java Doc) public int getDebugPort() throws IOException(Code)(Java Doc) public InteractionsDocument getDocument()(Code)(Java Doc) public Pair<String, String> getLastError()(Code)(Java Doc) public Pair<String, String> getSecondToLastError()(Code)(Java Doc) public String getStartUpBanner()(Code)(Java Doc) abstract public String getVariableClassName(String var)(Code)(Java Doc) abstract public String getVariableToString(String var)(Code)(Java Doc) public File getWorkingDirectory()(Code)(Java Doc) public void interactionContinues()(Code)(Java Doc) final public void interpret(String toEval)(Code)(Java Doc) public void interpretCurrentInteraction()(Code)(Java Doc) public void interpreterReady(File wd)(Code)(Java Doc) public void interpreterResetFailed(Throwable t)(Code)(Java Doc) public void interpreterResetting()(Code)(Java Doc) public void loadHistory(FileOpenSelector selector) throws IOException(Code)(Java Doc) public InteractionsScriptModel loadHistoryAsScript(FileOpenSelector selector) throws IOException, OperationCanceledException(Code)(Java Doc) public void removeAllInteractionListeners()(Code)(Java Doc) public String removeLastFromHistory()(Code)(Java Doc) public void removeListener(InteractionsListener listener)(Code)(Java Doc) public void replCalledSystemExit(int status)(Code)(Java Doc) public void replReturnedResult(String result, String style)(Code)(Java Doc) public void replReturnedSyntaxError(String errorMessage, String interaction, int startRow, int startCol, int endRow, int endCol)(Code)(Java Doc) public void replReturnedVoid()(Code)(Java Doc) public void replSystemErrPrint(String s)(Code)(Java Doc) public void replSystemOutPrint(String s)(Code)(Java Doc) public void replThrewException(String exceptionClass, String message, String stackTrace, String shortMessage)(Code)(Java Doc) final public void resetInterpreter(File wd)(Code)(Java Doc) public void resetLastErrors()(Code)(Java Doc) public void setDebugPort(int port)(Code)(Java Doc) public void setInputListener(InputListener listener)(Code)(Java Doc) public void setWaitingForFirstInterpreter(boolean waiting)(Code)(Java Doc) public void slaveJVMUsed()(Code)(Java Doc)
|
|
|