edu.rice.cs.drjava.model.repl.newjvm
Class MainJVM.ResultHandler

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.newjvm.MainJVM.ResultHandler
All Implemented Interfaces:
InterpretResult.Visitor<Void>
Enclosing class:
MainJVM

private class MainJVM.ResultHandler
extends Object
implements InterpretResult.Visitor<Void>

Performs the appropriate action to return any type of result from a call to interpret back to the GlobalModel.


Constructor Summary
private MainJVM.ResultHandler()
           
 
Method Summary
 Void forBooleanValue(Boolean b)
          Calls replReturnedResult()
 Void forBusy()
           
 Void forCharValue(Character c)
          Calls replReturnedResult()
 Void forEvalException(String message, StackTraceElement[] stackTrace)
          Calls replThrewException()
 Void forException(String message)
          Calls replThrewException()
 Void forNoValue()
          Lets the model know that void was returned.
 Void forNumberValue(Number n)
          Calls replReturnedResult()
 Void forObjectValue(String objString, String objTypeString)
          Calls replReturnedResult()
 Void forStringValue(String s)
          Calls replReturnedResult()
 Void forUnexpectedException(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainJVM.ResultHandler

private MainJVM.ResultHandler()
Method Detail

forNoValue

public Void forNoValue()
Lets the model know that void was returned.

Specified by:
forNoValue in interface InterpretResult.Visitor<Void>

forObjectValue

public Void forObjectValue(String objString,
                           String objTypeString)
Calls replReturnedResult()

Specified by:
forObjectValue in interface InterpretResult.Visitor<Void>

forStringValue

public Void forStringValue(String s)
Calls replReturnedResult()

Specified by:
forStringValue in interface InterpretResult.Visitor<Void>

forCharValue

public Void forCharValue(Character c)
Calls replReturnedResult()

Specified by:
forCharValue in interface InterpretResult.Visitor<Void>

forNumberValue

public Void forNumberValue(Number n)
Calls replReturnedResult()

Specified by:
forNumberValue in interface InterpretResult.Visitor<Void>

forBooleanValue

public Void forBooleanValue(Boolean b)
Calls replReturnedResult()

Specified by:
forBooleanValue in interface InterpretResult.Visitor<Void>

forEvalException

public Void forEvalException(String message,
                             StackTraceElement[] stackTrace)
Calls replThrewException()

Specified by:
forEvalException in interface InterpretResult.Visitor<Void>

forException

public Void forException(String message)
Calls replThrewException()

Specified by:
forException in interface InterpretResult.Visitor<Void>

forUnexpectedException

public Void forUnexpectedException(Throwable t)
Specified by:
forUnexpectedException in interface InterpretResult.Visitor<Void>

forBusy

public Void forBusy()
Specified by:
forBusy in interface InterpretResult.Visitor<Void>