Class BindingSet
java.lang.Object
java.util.AbstractMap
AssociationList
BindingSet
- 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 classes inherited from class java.util.AbstractMap |
|
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
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 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 |
BindingSet
public BindingSet()
- Creates a new empty BidningSet.
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.