All Packages This Package Class Hierarchy Class Search Index
The Bindings interface is the basis for associating individual
Variables with arbitrary JAVA Object values.
It is expected that in addition to the dynamic methods required by
this interface, each implementation will also define a static
method getEmpty() which will return a unique object
representing a Bindings instance that contains no
actual Variable bindings.
See Also: Variable
public interface Bindings
{
// Methods 6
public abstract Bindings extendBindings(Variable, Object);
public abstract Object getBinding(Variable);
public abstract Bindings getFailure();
public abstract boolean isBound(Variable);
public abstract boolean isEmpty();
public abstract boolean isFailure();
}
public abstract Bindings getFailure()
Obtains the Failure (representing no consistent
Bindings) object.
- Returns:
- The failure bindings object.
public abstract boolean isFailure()
Determine if this
Bindingsobject represents the Failure (no consistent bindings) object.
- Returns:
- true iff this object is the Failure bindings object.
public abstract boolean isEmpty()
Determine if this
Bindingsobject represents the Empty (no current bindings) object.It is expected that all implementations of the
Bindingsinterface will provide a static methodgetEmpty()which will return a unique (to the particular implementation) object representing aBindingsinstance that contains no actualVariablebindings. ThisisEmptypredicate is intended to test for that unique (to the implementation) object.
- Returns:
- true iff this object is the Empty bindings object.
public abstract boolean isBound(Variable var)
Determine if the given
Variableis currently bound.
Parameter Description var The variable to check.
- Returns:
- true iff the
Variableis bound.
public abstract Object getBinding(Variable var)
Get the current binding of the given
Variable.
Parameter Description var The variable to look up.
- Returns:
- The value associated with the variable.
public abstract Bindings extendBindings(Variable var,
Object val)
Extends this
Bindingsobject with an association between the givenVariableand value.Note: A particular implementation is allowed, though not required, to change the
Bindingsobject on which it is invoked if the variable is already bound in theBindingsobject.
Parameter Description var The variable to bind. val The value to which the Variableis to be bound.
- Returns:
- An extended
Bindingsobject.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4