edu.rice.cs.drjava.model.repl
Class InteractionsModelTest.BadSyntaxInteractionsModel

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.InteractionsModel
      extended by edu.rice.cs.drjava.model.repl.InteractionsModelTest.TestInteractionsModel
          extended by edu.rice.cs.drjava.model.repl.InteractionsModelTest.BadSyntaxInteractionsModel
All Implemented Interfaces:
InteractionsModelCallback
Enclosing class:
InteractionsModelTest

private static class InteractionsModelTest.BadSyntaxInteractionsModel
extends InteractionsModelTest.TestInteractionsModel

This test model can simulate a syntax error in interpretation.


Field Summary
private  boolean errorPresent
           
private  String errorString1
           
private  String errorString2
           
 
Fields inherited from class edu.rice.cs.drjava.model.repl.InteractionsModelTest.TestInteractionsModel
addedClass, toEval
 
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.BadSyntaxInteractionsModel(InteractionsDJDocument adapter)
           
 
Method Summary
protected  void _interpret(String toEval)
          Simulates a syntax error in interpretation.
protected  void disableSyntaxError()
           
protected  void setSyntaxErrorStrings(String s1, String s2)
           
 
Methods inherited from class edu.rice.cs.drjava.model.repl.InteractionsModelTest.TestInteractionsModel
_interpreterResetFailed, _interpreterWontStart, _logInteractionStart, _notifyInteractionEnded, _notifyInteractionIncomplete, _notifyInteractionStarted, _notifyInterpreterExited, _notifyInterpreterReady, _notifyInterpreterResetFailed, _notifyInterpreterResetting, _notifySyntaxErrorOccurred, _resetInterpreter, _waitInteractionDone, addBuildDirectoryClassPath, addExternalFilesClassPath, addExtraClassPath, addProjectClassPath, addProjectFilesClassPath, getCompilerBootClassPath, getConsoleDocument, getVariableToString, transformCommands
 
Methods inherited from class edu.rice.cs.drjava.model.repl.InteractionsModel
_addNewline, _createNewDebugPort, _getHistoryText, _interactionIsOver, _removeSeparators, _writerDelay, addListener, append, autoImport, changeInputListener, getBanner, getBanner, getConsoleInput, getDebugPort, getDocument, getLastError, getSecondToLastError, getStartUpBanner, getWorkingDirectory, interactionContinues, interpret, interpretCurrentInteraction, interpreterReady, interpreterResetFailed, interpreterResetting, interpreterWontStart, loadHistory, loadHistoryAsScript, performDefaultImports, removeAllInteractionListeners, removeLastFromHistory, removeListener, replaceLLException, replCalledSystemExit, replReturnedResult, replReturnedSyntaxError, replReturnedVoid, replSystemErrPrint, replSystemOutPrint, replThrewException, replThrewException, resetInterpreter, resetLastErrors, scrollToCaret, setDebugPort, setInputListener, setUpPane, setWaitingForFirstInterpreter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorString1

private String errorString1

errorString2

private String errorString2

errorPresent

private boolean errorPresent
Constructor Detail

InteractionsModelTest.BadSyntaxInteractionsModel

InteractionsModelTest.BadSyntaxInteractionsModel(InteractionsDJDocument adapter)
Method Detail

setSyntaxErrorStrings

protected void setSyntaxErrorStrings(String s1,
                                     String s2)

disableSyntaxError

protected void disableSyntaxError()

_interpret

protected void _interpret(String toEval)
Simulates a syntax error in interpretation.

Overrides:
_interpret in class InteractionsModelTest.TestInteractionsModel
Parameters:
toEval - command to be evaluated