edu.rice.cs.dynamicjava.interpreter
Class StatementEvaluator.Result
java.lang.Object
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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementEvaluator.Result
public StatementEvaluator.Result(java.lang.Object val,
RuntimeBindings b)
StatementEvaluator.Result
public StatementEvaluator.Result(RuntimeBindings b)
value
public Option<java.lang.Object> value()
bindings
public RuntimeBindings bindings()