remove JS.run() and JS.pause()
[org.ibex.js.git] / src / org / ibex / js / JS.java
index 5355580..4c69a05 100644 (file)
@@ -20,13 +20,6 @@ public interface JS extends Pausable {
     /** 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. */
@@ -83,10 +76,6 @@ public interface JS extends Pausable {
         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() +"]");
             throw new JSExn("method not found: " + JSU.str(method) + " class="+this.getClass().getName());
@@ -127,8 +116,6 @@ public interface JS extends Pausable {
         // 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); }
@@ -148,10 +135,6 @@ public interface JS extends Pausable {
 
         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)); }