|
||||||||||
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
InterruptedException
protected void _interpret(String toEval)
_interpret
in class InteractionsModel
toEval
- command to be evaluatedprotected void _notifyInteractionEnded()
InteractionsModel
_notifyInteractionEnded
in class InteractionsModel
public String getVariableToString(String var)
InteractionsModel
getVariableToString
in class InteractionsModel
var
- the name of the variable
null
if the variable is not defined.public String getVariableType(String var)
InteractionsModel
getVariableType
in class InteractionsModel
var
- the name of the variablepublic void addProjectClassPath(File path)
InteractionsModel
addProjectClassPath
in class InteractionsModel
path
- the path to addpublic void addBuildDirectoryClassPath(File path)
InteractionsModel
addBuildDirectoryClassPath
in class InteractionsModel
path
- the path to addpublic void addProjectFilesClassPath(File path)
InteractionsModel
addProjectFilesClassPath
in class InteractionsModel
path
- the path to addpublic void addExternalFilesClassPath(File path)
InteractionsModel
addExternalFilesClassPath
in class InteractionsModel
path
- the path to addpublic void addExtraClassPath(File path)
InteractionsModel
addExtraClassPath
in class InteractionsModel
path
- the path to addprotected void _resetInterpreter(File wd)
InteractionsModel
_resetInterpreter
in class InteractionsModel
public void _notifyInteractionStarted()
InteractionsModel
_notifyInteractionStarted
in class InteractionsModel
protected void _notifySyntaxErrorOccurred(int offset, int length)
InteractionsModel
_notifySyntaxErrorOccurred
in class InteractionsModel
offset
- the first character of the error in the InteractionsDocumentlength
- the length of the error.protected void _notifyInterpreterExited(int status)
InteractionsModel
_notifyInterpreterExited
in class InteractionsModel
status
- Status code of the dead processprotected void _notifyInterpreterResetting()
InteractionsModel
_notifyInterpreterResetting
in class InteractionsModel
protected void _notifyInterpreterResetFailed(Throwable t)
InteractionsModel
_notifyInterpreterResetFailed
in class InteractionsModel
t
- Throwable explaining why the reset failed.public void _notifyInterpreterReady(File wd)
InteractionsModel
_notifyInterpreterReady
in class InteractionsModel
protected void _interpreterResetFailed(Throwable t)
InteractionsModel
_interpreterResetFailed
in class InteractionsModel
t
- The Throwable thrown by System.exitprotected void _notifyInteractionIncomplete()
InteractionsModel
_notifyInteractionIncomplete
in class InteractionsModel
protected void _notifySlaveJVMUsed()
InteractionsModel
_notifySlaveJVMUsed
in class InteractionsModel
public ConsoleDocument getConsoleDocument()
InteractionsModel
getConsoleDocument
in class InteractionsModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |