|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.repl.InteractionsModel
edu.rice.cs.drjava.model.repl.InteractionsModelTest.TestInteractionsModel
public static class InteractionsModelTest.TestInteractionsModel
A generic InteractionsModel for testing purposes. (Used here and in InteractionsPaneTest.)
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.drjava.model.repl.InteractionsModel |
|---|
_cDoc, _document, _inputListener, _lastError, _notifier, _pane, _secondToLastError, _waitingForFirstInterpreter, _workingDirectory, _writerLock, BANNER_PREFIX |
| Constructor Summary | |
|---|---|
InteractionsModelTest.TestInteractionsModel(InteractionsDJDocument adapter)
Constructs a new InteractionsModel. |
|
| Method Summary | |
|---|---|
protected void |
_interpret(String toEval)
Sets toEval field and simulates successful interpretation. |
protected void |
_interpreterResetFailed(Throwable t)
Any extra action to perform (beyond notifying listeners) when the interpreter fails to reset. |
void |
_logInteractionStart()
|
protected void |
_notifyInteractionEnded()
Notifies listeners that an interaction has ended. |
protected void |
_notifyInteractionIncomplete()
Notifies the view that the current interaction is incomplete. |
void |
_notifyInteractionStarted()
Notifies listeners that an interaction has started. |
protected void |
_notifyInterpreterExited(int status)
Notifies listeners that the interpreter has exited unexpectedly. |
void |
_notifyInterpreterReady(File wd)
Notifies listeners that the interpreter is ready. |
protected void |
_notifyInterpreterResetFailed(Throwable t)
Notifies listeners that the interpreter reset failed. |
protected void |
_notifyInterpreterResetting()
Notifies listeners that the interpreter is resetting. |
protected void |
_notifySlaveJVMUsed()
Notifies listeners that the slave JVM has been used. |
protected void |
_notifySyntaxErrorOccurred(int offset,
int length)
Handles a syntax error being returned from an interaction |
protected void |
_resetInterpreter(File wd)
Resets the Java interpreter. |
void |
_waitInteractionDone()
|
void |
addBuildDirectoryClassPath(File path)
These add the given path to the build directory classpaths used in the interpreter. |
void |
addExternalFilesClassPath(File path)
These add the given path to the external files classpaths used in the interpreter. |
void |
addExtraClassPath(File path)
These add the given path to the extra classpaths used in the interpreter. |
void |
addProjectClassPath(File path)
These add the given path to the classpaths used in the interpreter. |
void |
addProjectFilesClassPath(File path)
These add the given path to the project files classpaths used in the interpreter. |
ConsoleDocument |
getConsoleDocument()
Gets the console tab document for this interactions model |
String |
getVariableToString(String var)
Gets the string representation of the value of a variable in the current interpreter. |
String |
getVariableType(String var)
Gets the class name of a variable in the current interpreter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InteractionsModelTest.TestInteractionsModel(InteractionsDJDocument adapter)
| Method Detail |
|---|
public void _logInteractionStart()
public void _waitInteractionDone()
throws InterruptedException
InterruptedExceptionprotected void _interpret(String toEval)
_interpret in class InteractionsModeltoEval - command to be evaluatedprotected void _notifyInteractionEnded()
InteractionsModel
_notifyInteractionEnded in class InteractionsModelpublic String getVariableToString(String var)
InteractionsModel
getVariableToString in class InteractionsModelvar - the name of the variable
null if the variable is not defined.public String getVariableType(String var)
InteractionsModel
getVariableType in class InteractionsModelvar - the name of the variablepublic void addProjectClassPath(File path)
InteractionsModel
addProjectClassPath in class InteractionsModelpath - the path to addpublic void addBuildDirectoryClassPath(File path)
InteractionsModel
addBuildDirectoryClassPath in class InteractionsModelpath - the path to addpublic void addProjectFilesClassPath(File path)
InteractionsModel
addProjectFilesClassPath in class InteractionsModelpath - the path to addpublic void addExternalFilesClassPath(File path)
InteractionsModel
addExternalFilesClassPath in class InteractionsModelpath - the path to addpublic void addExtraClassPath(File path)
InteractionsModel
addExtraClassPath in class InteractionsModelpath - the path to addprotected void _resetInterpreter(File wd)
InteractionsModel
_resetInterpreter in class InteractionsModelpublic void _notifyInteractionStarted()
InteractionsModel
_notifyInteractionStarted in class InteractionsModel
protected void _notifySyntaxErrorOccurred(int offset,
int length)
InteractionsModel
_notifySyntaxErrorOccurred in class InteractionsModeloffset - the first character of the error in the InteractionsDocumentlength - the length of the error.protected void _notifyInterpreterExited(int status)
InteractionsModel
_notifyInterpreterExited in class InteractionsModelstatus - Status code of the dead processprotected void _notifyInterpreterResetting()
InteractionsModel
_notifyInterpreterResetting in class InteractionsModelprotected void _notifyInterpreterResetFailed(Throwable t)
InteractionsModel
_notifyInterpreterResetFailed in class InteractionsModelt - Throwable explaining why the reset failed.public void _notifyInterpreterReady(File wd)
InteractionsModel
_notifyInterpreterReady in class InteractionsModelprotected void _interpreterResetFailed(Throwable t)
InteractionsModel
_interpreterResetFailed in class InteractionsModelt - The Throwable thrown by System.exitprotected void _notifyInteractionIncomplete()
InteractionsModel
_notifyInteractionIncomplete in class InteractionsModelprotected void _notifySlaveJVMUsed()
InteractionsModel
_notifySlaveJVMUsed in class InteractionsModelpublic ConsoleDocument getConsoleDocument()
InteractionsModel
getConsoleDocument in class InteractionsModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||