All Packages This Package Class Hierarchy Class Search Index
The Bindings interface is the basis for associating individual
Variable
s 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
Bindings
object represents the Failure (no consistent bindings) object.
- Returns:
- true iff this object is the Failure bindings object.
public abstract boolean isEmpty()
Determine if this
Bindings
object represents the Empty (no current bindings) object.It is expected that all implementations of the
Bindings
interface will provide a static methodgetEmpty()
which will return a unique (to the particular implementation) object representing aBindings
instance that contains no actualVariable
bindings. ThisisEmpty
predicate 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
Variable
is currently bound.
Parameter Description var The variable to check.
- Returns:
- true iff the
Variable
is 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
Bindings
object with an association between the givenVariable
and value.Note: A particular implementation is allowed, though not required, to change the
Bindings
object on which it is invoked if the variable is already bound in theBindings
object.
Parameter Description var The variable to bind. val The value to which the Variable
is to be bound.
- Returns:
- An extended
Bindings
object.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4