|
||||||||||
| 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.RMIInteractionsModel
edu.rice.cs.drjava.model.repl.InteractionsModelTest.IncompleteInputInteractionsModel
public static class InteractionsModelTest.IncompleteInputInteractionsModel
This test model includes a slave JVM, just like a DefaultGlobalModel. It must be disposed before it is deallocated to kill the slave JVM. TODO: the mutation in this class is disgusting -- Corky 2 June 06.
| Field Summary | |
|---|---|
private boolean |
_interactionDone
|
private Object |
_interactionLock
|
(package private) boolean |
continuationException
|
(package private) boolean |
syntaxException
|
| Fields inherited from class edu.rice.cs.drjava.model.repl.RMIInteractionsModel |
|---|
_jvm |
| Fields inherited from class edu.rice.cs.drjava.model.repl.InteractionsModel |
|---|
_autoImportSet, _cDoc, _document, _inputListener, _lastError, _notifier, _pane, _secondToLastError, _waitingForFirstInterpreter, _workingDirectory, _writerLock, BANNER_PREFIX, WRITE_DELAY |
| Constructor Summary | |
|---|---|
InteractionsModelTest.IncompleteInputInteractionsModel(InteractionsDJDocument adapter)
Constructs a new IncompleteInputInteractionsModel. |
|
| Method Summary | |
|---|---|
protected void |
_interpreterResetFailed(Throwable t)
Any extra action to perform (beyond notifying listeners) when the interpreter fails to reset. |
protected void |
_interpreterWontStart(Exception e)
Action to perform when the interpreter won't start. |
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 |
_notifyInterpreterChanged(boolean inProgress)
Notifies listeners that the interpreter has changed. |
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 |
_notifySyntaxErrorOccurred(int offset,
int length)
Handles a syntax error being returned from an interaction |
void |
_waitInteractionDone()
|
void |
dispose()
|
List<File> |
getCompilerBootClassPath()
A compiler can instruct DrJava to include additional elements for the boot class path of the Interactions JVM. |
ConsoleDocument |
getConsoleDocument()
Gets the console tab document for this interactions model |
boolean |
isContinuationException()
|
boolean |
isSyntaxException()
|
void |
replReturnedSyntaxError(String errorMessage,
String interaction,
int startRow,
int startCol,
int endRow,
int endCol)
Signifies that the most recent interpretation was preempted by a syntax error. |
void |
replThrewException(String message)
Signifies that the most recent interpretation was ended due to an exception being thrown. |
void |
replThrewException(String message,
StackTraceElement[] stackTrace)
Signifies that the most recent interpretation was ended due to an exception being thrown. |
String |
transformCommands(String interactionsString)
Transform the command line to be interpreted into something the Interactions JVM can use. |
| Methods inherited from class edu.rice.cs.drjava.model.repl.RMIInteractionsModel |
|---|
_interpret, _resetInterpreter, addBuildDirectoryClassPath, addExternalFilesClassPath, addExtraClassPath, addInterpreter, addProjectClassPath, addProjectFilesClassPath, getClassPath, getVariableToString, removeInterpreter, setActiveInterpreter, setEnforceAllAccess, setEnforcePrivateAccess, setRequireSemicolon, setRequireVariableType, setToDefaultInterpreter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
boolean continuationException
boolean syntaxException
private volatile boolean _interactionDone
private final Object _interactionLock
| Constructor Detail |
|---|
public InteractionsModelTest.IncompleteInputInteractionsModel(InteractionsDJDocument adapter)
throws RemoteException
RemoteException| Method Detail |
|---|
public void _logInteractionStart()
public void _waitInteractionDone()
throws InterruptedException
InterruptedExceptionpublic void _notifyInteractionStarted()
InteractionsModel
_notifyInteractionStarted in class InteractionsModelprotected void _notifyInteractionEnded()
InteractionsModel
_notifyInteractionEnded 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 _interpreterWontStart(Exception e)
InteractionsModel
_interpreterWontStart in class InteractionsModelprotected void _notifyInteractionIncomplete()
InteractionsModel
_notifyInteractionIncomplete in class InteractionsModelprotected void _notifyInterpreterChanged(boolean inProgress)
RMIInteractionsModel
_notifyInterpreterChanged in class RMIInteractionsModelinProgress - Whether the new interpreter is currently in progress with an interaction, i.e., whether
an interactionEnded event will be fired)
public void dispose()
throws RemoteException
RemoteExceptionpublic ConsoleDocument getConsoleDocument()
InteractionsModel
getConsoleDocument in class InteractionsModel
public void replThrewException(String message,
StackTraceElement[] stackTrace)
InteractionsModel
replThrewException in interface InteractionsModelCallbackreplThrewException in class InteractionsModelmessage - The exception's messagepublic void replThrewException(String message)
InteractionsModel
replThrewException in interface InteractionsModelCallbackreplThrewException in class InteractionsModelmessage - The exception's message
public void replReturnedSyntaxError(String errorMessage,
String interaction,
int startRow,
int startCol,
int endRow,
int endCol)
InteractionsModel
replReturnedSyntaxError in interface InteractionsModelCallbackreplReturnedSyntaxError in class InteractionsModelerrorMessage - The syntax error messagestartRow - The starting row of the errorstartCol - The starting column of the errorendRow - The end row of the error
param endCol The end column of the errorendCol - The end column of the errorpublic boolean isContinuationException()
public boolean isSyntaxException()
public List<File> getCompilerBootClassPath()
InteractionsModelCallback
public String transformCommands(String interactionsString)
InteractionsModelCallback
interactionsString - unprocessed command line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||