Interface Slots

The slots interface for a state-full proxy. The interface allows accessing and modifying the slots of a proxy instance. The slots are indexed starting with 1. The number of the slots is specified when creating the proxy instance.

The methods arg() and set_arg() tolerate an index that is outside the range 1..size where size is the number of slots and indicate a failure. The method arity() returns the size of the given proxy instance.


public interface Slots {
Term arg(int idx);
boolean set_arg(int idx, Term data);
int arity();