|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.repl.newjvm.MainJVM.DummyInteractionsModel
public static class MainJVM.DummyInteractionsModel
InteractionsModel which does not react to events.
| Constructor Summary | |
|---|---|
MainJVM.DummyInteractionsModel()
|
|
| Method Summary | |
|---|---|
void |
changeInputListener(InputListener from,
InputListener to)
Changes the input listener. |
List<File> |
getCompilerBootClassPath()
A compiler can instruct DrJava to include additional elements for the boot class path of the Interactions JVM. |
String |
getConsoleInput()
Called when input is request from System.in. |
int |
getDebugPort()
Returns an available port number to use for debugging a remote interpreter. |
void |
interpreterReady(File wd)
Called to assert that a fresh Java interpreter is ready for use either after a start or a restart. |
void |
interpreterResetFailed(Throwable th)
This method is called by the Main JVM if the Interpreter JVM cannot be exited (likely because of its having a security manager) |
void |
interpreterResetting()
Called when the interpreter starts to reset. |
void |
interpreterWontStart(Exception e)
Called when the slave JVM fails to startup |
void |
replCalledSystemExit(int status)
Signifies that the most recent interpretation contained a call to System.exit. |
void |
replReturnedResult(String result,
String style)
Signifies that the most recent interpretation completed successfully, returning a value. |
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 |
replReturnedVoid()
Signifies that the most recent interpretation completed successfully, returning no value. |
void |
replSystemErrPrint(String s)
Called when the repl prints to System.err. |
void |
replSystemOutPrint(String s)
Called when the repl prints to System.out. |
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. |
void |
setInputListener(InputListener il)
Sets the listener for any type of single-source input event. |
String |
transformCommands(String interactionsString)
Transform the command line to be interpreted into something the Interactions JVM can use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainJVM.DummyInteractionsModel()
| Method Detail |
|---|
public int getDebugPort()
throws IOException
InteractionsModelCallback
getDebugPort in interface InteractionsModelCallbackIOException - if unable to get a valid port number.public void replSystemOutPrint(String s)
InteractionsModelCallback
replSystemOutPrint in interface InteractionsModelCallbacks - String to printpublic void replSystemErrPrint(String s)
InteractionsModelCallback
replSystemErrPrint in interface InteractionsModelCallbacks - String to printpublic String getConsoleInput()
InteractionsModelCallback
getConsoleInput in interface InteractionsModelCallbackpublic void setInputListener(InputListener il)
InteractionsModelCallback
setInputListener in interface InteractionsModelCallbackil - a listener that reacts to input requests
public void changeInputListener(InputListener from,
InputListener to)
InteractionsModelCallback
changeInputListener in interface InteractionsModelCallbackfrom - the previous listenerto - the listener to installpublic void replReturnedVoid()
InteractionsModelCallback
replReturnedVoid in interface InteractionsModelCallback
public void replReturnedResult(String result,
String style)
InteractionsModelCallback
replReturnedResult in interface InteractionsModelCallbackresult - The .toString-ed version of the value that was returned
by the interpretation. We must return the String form
because returning the Object directly would require the
data type to be serializable.
public void replThrewException(String message,
StackTraceElement[] stackTrace)
InteractionsModelCallback
replThrewException in interface InteractionsModelCallbackmessage - The exception's messagepublic void replThrewException(String message)
InteractionsModelCallback
replThrewException in interface InteractionsModelCallbackmessage - The exception's message
public void replReturnedSyntaxError(String errorMessage,
String interaction,
int startRow,
int startCol,
int endRow,
int endCol)
InteractionsModelCallback
replReturnedSyntaxError in interface InteractionsModelCallbackerrorMessage - The syntax error messagestartRow - The starting row of the errorstartCol - The starting column of the errorendRow - The end row of the errorendCol - The end column of the errorpublic void replCalledSystemExit(int status)
InteractionsModelCallback
replCalledSystemExit in interface InteractionsModelCallbackstatus - The exit status that will be returned.public void interpreterResetting()
InteractionsModelCallback
interpreterResetting in interface InteractionsModelCallbackpublic void interpreterResetFailed(Throwable th)
InteractionsModelCallback
interpreterResetFailed in interface InteractionsModelCallbackth - The Throwable thrown by System.exitpublic void interpreterWontStart(Exception e)
InteractionsModelCallback
interpreterWontStart in interface InteractionsModelCallbackpublic void interpreterReady(File wd)
InteractionsModelCallbackinterpreterResetting(), but not when the interpreter is
first starting or is already fresh.
interpreterReady in interface InteractionsModelCallbackpublic List<File> getCompilerBootClassPath()
InteractionsModelCallback
getCompilerBootClassPath in interface InteractionsModelCallbackpublic String transformCommands(String interactionsString)
InteractionsModelCallback
transformCommands in interface InteractionsModelCallbackinteractionsString - unprocessed command line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||