edu.rice.cs.drjava.model.repl.newjvm
Class NewJVMTest.TestJVMExtension

java.lang.Object
  extended by edu.rice.cs.util.newjvm.AbstractMasterJVM
      extended by edu.rice.cs.drjava.model.repl.newjvm.MainJVM
          extended by edu.rice.cs.drjava.model.repl.newjvm.NewJVMTest.TestJVMExtension
All Implemented Interfaces:
MainJVMRemoteI, MasterRemote, Remote
Enclosing class:
NewJVMTest

private static class NewJVMTest.TestJVMExtension
extends MainJVM


Nested Class Summary
private  class NewJVMTest.TestJVMExtension.TestResultHandler
           
 
Nested classes/interfaces inherited from class edu.rice.cs.drjava.model.repl.newjvm.MainJVM
MainJVM.DummyDebugModel, MainJVM.DummyInteractionsModel, MainJVM.DummyJUnitModel
 
Field Summary
private  CompletionMonitor _done
           
private  String _errBuf
           
private  String _exceptionMsgBuf
           
private  String _outBuf
           
private  String _returnBuf
           
private  InterpretResult.Visitor<Void> _testHandler
           
private  boolean _voidReturnFlag
           
private static int WAIT_TIMEOUT
           
 
Constructor Summary
NewJVMTest.TestJVMExtension()
           
 
Method Summary
 String errBuf()
           
 String exceptionMsgBuf()
           
 String outBuf()
           
 void resetFlags()
           
protected  InterpretResult.Visitor<Void> resultHandler()
          Declared as a getter in order to allow subclasses to override the standard behavior.
 String returnBuf()
           
 void systemErrPrint(String s)
          Forwards a call to System.err from InterpreterJVM to the local InteractionsModel.
 void systemOutPrint(String s)
          Forwards a call to System.out from InterpreterJVM to the local InteractionsModel.
 boolean voidReturnFlag()
           
 
Methods inherited from class edu.rice.cs.drjava.model.repl.newjvm.MainJVM
addBuildDirectoryClassPath, addExternalFilesClassPath, addExtraClassPath, addInterpreter, addProjectClassPath, addProjectFilesClassPath, classFileError, dispose, findTestClasses, getClassPath, getConsoleInput, getFileForClassName, getVariableToString, handleSlaveConnected, handleSlaveQuit, handleSlaveWontStart, interpret, nonTestCase, removeInterpreter, restartInterpreterJVM, runTestSuite, setActiveInterpreter, setAllowAssertions, setDebugModel, setEnforceAllAccess, setEnforcePrivateAccess, setInteractionsModel, setJUnitModel, setPackageScope, setRequireSemicolon, setRequireVariableType, setStartupClassPath, setToDefaultInterpreter, setWorkingDirectory, startInterpreterJVM, stopInterpreterJVM, testEnded, testStarted, testSuiteEnded, testSuiteStarted
 
Methods inherited from class edu.rice.cs.util.newjvm.AbstractMasterJVM
checkStillAlive, invokeSlave, isDisposed, quitSlave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.rice.cs.util.newjvm.MasterRemote
checkStillAlive
 

Field Detail

WAIT_TIMEOUT

private static final int WAIT_TIMEOUT
See Also:
Constant Field Values

_done

private final CompletionMonitor _done

_outBuf

private volatile String _outBuf

_errBuf

private volatile String _errBuf

_returnBuf

private volatile String _returnBuf

_exceptionMsgBuf

private volatile String _exceptionMsgBuf

_voidReturnFlag

private volatile boolean _voidReturnFlag

_testHandler

private volatile InterpretResult.Visitor<Void> _testHandler
Constructor Detail

NewJVMTest.TestJVMExtension

public NewJVMTest.TestJVMExtension()
                            throws RemoteException
Throws:
RemoteException
Method Detail

resultHandler

protected InterpretResult.Visitor<Void> resultHandler()
Description copied from class: MainJVM
Declared as a getter in order to allow subclasses to override the standard behavior.

Overrides:
resultHandler in class MainJVM

resetFlags

public void resetFlags()

outBuf

public String outBuf()

errBuf

public String errBuf()

returnBuf

public String returnBuf()

exceptionMsgBuf

public String exceptionMsgBuf()

voidReturnFlag

public boolean voidReturnFlag()

systemErrPrint

public void systemErrPrint(String s)
Description copied from class: MainJVM
Forwards a call to System.err from InterpreterJVM to the local InteractionsModel.

Specified by:
systemErrPrint in interface MainJVMRemoteI
Overrides:
systemErrPrint in class MainJVM
Parameters:
s - String that was printed in the other JVM

systemOutPrint

public void systemOutPrint(String s)
Description copied from class: MainJVM
Forwards a call to System.out from InterpreterJVM to the local InteractionsModel.

Specified by:
systemOutPrint in interface MainJVMRemoteI
Overrides:
systemOutPrint in class MainJVM
Parameters:
s - String that was printed in the other JVM