Class BindingSet

java.lang.Object
  extended byjava.util.AbstractMap
      extended byAssociationList
          extended byBindingSet
All Implemented Interfaces:
java.util.Map

class BindingSet
extends AssociationList

A BindingSet is a set of Bindings. More specifically, it is a set of variables and their associated bindings (for example, there will/should be at most one binding for any var in the BindingSet. This allows certain optimizations. The traditional Lisp implementation is an alist.


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class AssociationList
entries
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
BindingSet()
          Creates a new empty BidningSet.
 
Method Summary
 java.lang.Object getBinding(Variable var)
          Returns the binding of the given Variable in this BindingSet (or null if there is none).
 void setBinding(Variable var, java.lang.Object value)
          Sets the binding of the given Variable in this BindingSet to the given value.
 java.lang.String toString()
          Returns the String representation of this BindingSet.
 
Methods inherited from class AssociationList
entrySet, put
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

BindingSet

public BindingSet()
Creates a new empty BidningSet.

Method Detail

setBinding

public void setBinding(Variable var,
                       java.lang.Object value)
Sets the binding of the given Variable in this BindingSet to the given value.


getBinding

public java.lang.Object getBinding(Variable var)
Returns the binding of the given Variable in this BindingSet (or null if there is none).


toString

public java.lang.String toString()
Returns the String representation of this BindingSet.