edu.rice.cs.drjava.model.repl.newjvm
Class InterpretResult

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.newjvm.InterpretResult
All Implemented Interfaces:
Serializable

public abstract class InterpretResult
extends Object
implements Serializable

Super class for any type of result that can occur from a call to interpret.

Version:
$Id: InterpretResult.java 4314 2008-01-30 00:08:33Z mgricken $
See Also:
Serialized Form

Nested Class Summary
static interface InterpretResult.Visitor<T>
           
 
Constructor Summary
InterpretResult()
           
 
Method Summary
abstract
<T> T
apply(InterpretResult.Visitor<T> v)
           
static InterpretResult booleanValue(Boolean b)
           
static InterpretResult busy()
           
static InterpretResult charValue(Character c)
           
static InterpretResult exception(edu.rice.cs.dynamicjava.interpreter.InterpreterException e)
           
static InterpretResult noValue()
           
static InterpretResult numberValue(Number n)
           
static InterpretResult objectValue(String objS)
           
static InterpretResult stringValue(String s)
           
static InterpretResult unexpectedException(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpretResult

public InterpretResult()
Method Detail

apply

public abstract <T> T apply(InterpretResult.Visitor<T> v)

busy

public static InterpretResult busy()

exception

public static InterpretResult exception(edu.rice.cs.dynamicjava.interpreter.InterpreterException e)

unexpectedException

public static InterpretResult unexpectedException(Throwable t)

noValue

public static InterpretResult noValue()

stringValue

public static InterpretResult stringValue(String s)

charValue

public static InterpretResult charValue(Character c)

numberValue

public static InterpretResult numberValue(Number n)

booleanValue

public static InterpretResult booleanValue(Boolean b)

objectValue

public static InterpretResult objectValue(String objS)