edu.rice.cs.dynamicjava.interpreter
Class StatementEvaluator.Result

java.lang.Object
  extended by edu.rice.cs.dynamicjava.interpreter.StatementEvaluator.Result
Enclosing class:
StatementEvaluator

public static class StatementEvaluator.Result
extends java.lang.Object

Wraps an RuntimeBindings and an optional value. Strictly speaking, statements can sometimes produce new bindings but should never have values. In practice, however, it's convenient to occasionally allow a statement to produce a value in order to have a result to show the user -- the value of a variable declaration, for example, may be that variable's value (depending on the Options used).


Constructor Summary
StatementEvaluator.Result(java.lang.Object val, RuntimeBindings b)
           
StatementEvaluator.Result(RuntimeBindings b)
           
 
Method Summary
 RuntimeBindings bindings()
           
 Option<java.lang.Object> value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementEvaluator.Result

public StatementEvaluator.Result(java.lang.Object val,
                                 RuntimeBindings b)

StatementEvaluator.Result

public StatementEvaluator.Result(RuntimeBindings b)
Method Detail

value

public Option<java.lang.Object> value()

bindings

public RuntimeBindings bindings()