/** Store a specific value against the given key. */
public void put(JS key, JS value) throws JSExn;
- /** Executes or unpauses the task, running it in a
- * <i>pausable</i> context. */
- public Object run(Object o) throws Exception, AlreadyRunningException;
-
- /** Pauses the running task at its convienience. */
- public void pause() throws NotPausableException;
-
/** Calls a specific method with given arguments on this object.
* An exception is thrown if there is no such method or the
* arguments are invalid. */
public JS get(JS key) throws JSExn { return null; }
public void put(JS key, JS val) throws JSExn {
throw new JSExn("'" + key + "' is read only on class ["+ getClass().getName() +"]"); }
- public InputStream getInputStream() throws IOException, JSExn { throw new JSExn(
- "object has not associated stream, class ["+ getClass().getName() +"]"); }
-
- public Object run(Object o) throws Exception { throw new JSExn(
- "object cannot be called, class ["+ getClass().getName() +"]"); }
- public void pause() { throw new NotPausableException(); }
public JS call(JS method, JS[] args) throws JSExn {
if (method == null) throw new JSExn( "object cannot be called, class ["+ getClass().getName() +"]");
public Enumeration keys() throws JSExn { return clonee.keys(); }
public JS get(JS k) throws JSExn { return clonee.get(k); }
public void put(JS k, JS v) throws JSExn { clonee.put(k, v); }
-
- // FIMXE: cloning Fountains...
- //public InputStream getInputStream() throws IOException, JSExn { return clonee.getInputStream(); }
-
- public Object run(Object o) throws Exception { return clonee.run(o); }
- public void pause() { clonee.pause(); }
public JS call(JS m, JS[] a) throws JSExn { return clonee.call(m, a); }
public String[] getFormalArgs() { return clonee.getFormalArgs(); }
public JS putAndTriggerTraps(JS k, JS v) throws JSExn { return clonee.putAndTriggerTraps(k, v); }
public JS unclone() { return this; }
- public Object run(Object o) throws Exception {
- throw new JSExn("object cannot be called, class ["+ getClass().getName() +"]"); }
- public void pause() { throw new NotPausableException(); }
-
public JS call(JS method, JS[] args) throws JSExn {
if (method==null) throw new JSExn("cannot call a " + getClass().getName());
throw new JSExn("method not found: " + JSU.str(method)); }