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
Direct Known Subclasses:
InterpretResult.BooleanValueResult, InterpretResult.BusyResult, InterpretResult.CharValueResult, InterpretResult.ExceptionResult, InterpretResult.NoValueResult, InterpretResult.NumberValueResult, InterpretResult.ObjectValueResult, InterpretResult.StringValueResult, InterpretResult.UnexpectedExceptionResult

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 5181 2010-02-24 16:53:27Z mgricken $
See Also:
Serialized Form

Nested Class Summary
private static class InterpretResult.BooleanValueResult
           
private static class InterpretResult.BusyResult
           
private static class InterpretResult.CharValueResult
           
private static class InterpretResult.ExceptionResult
           
private static class InterpretResult.NoValueResult
           
private static class InterpretResult.NumberValueResult
           
private static class InterpretResult.ObjectValueResult
           
private static class InterpretResult.StringValueResult
           
private static class InterpretResult.UnexpectedExceptionResult
           
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(InterpreterException e)
           
static InterpretResult noValue()
           
static InterpretResult numberValue(Number n)
           
static InterpretResult objectValue(String objS, String objTS)
           
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(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,
                                          String objTS)