edu.rice.cs.dynamicjava.interpreter
Class TreeCompiler.BindingsFactory

java.lang.Object
  extended by 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.


Constructor Summary
TreeCompiler.BindingsFactory(RuntimeBindings bindings, DJClass thisClass)
           
 
Method Summary
 RuntimeBindings value(Object thisVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCompiler.BindingsFactory

public TreeCompiler.BindingsFactory(RuntimeBindings bindings,
                                    DJClass thisClass)
Method Detail

value

public RuntimeBindings value(Object thisVal)
Specified by:
value in interface Lambda<Object,RuntimeBindings>