edu.rice.cs.dynamicjava.interpreter
Class TreeCompiler.BindingsFactory
java.lang.Object
edu.rice.cs.dynamicjava.interpreter.TreeCompiler.BindingsFactory
- All Implemented Interfaces:
- Lambda<Object,RuntimeBindings>
- Enclosing class:
- TreeCompiler
public static class TreeCompiler.BindingsFactory
- extends Object
- implements Lambda<Object,RuntimeBindings>
A simple factory mapping an object to a RuntimeBindings in which that object is defined as "this".
See TreeCompiler.EvaluationAdapter.makeBindingsFactory(edu.rice.cs.dynamicjava.interpreter.RuntimeBindings). By informal contract, all invocations of
value(java.lang.Object) should use the same thisVal parameter.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeCompiler.BindingsFactory
public TreeCompiler.BindingsFactory(RuntimeBindings bindings,
DJClass thisClass)
value
public RuntimeBindings value(Object thisVal)
- Specified by:
value in interface Lambda<Object,RuntimeBindings>