X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;fp=src%2Forg%2Fibex%2Fjs%2FJS.java;h=75a34e0845ec5bf82b8f693600bb699b7ea818a7;hp=e47785d76c9f376d0d7ed35939be559e54943465;hb=f3ad8b6cba43f3c5364dc2cd9f1d050c1f48f167;hpb=f63da7aeac2f942be41aefde91002d14117a8573 diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index e47785d..75a34e0 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -55,7 +55,7 @@ public interface JS { public void delTrap(JS key, JS function) throws JSExn; public Trap getTrap(JS key) throws JSExn; - // FIXME: consider renaming/removing these + // FEATURE: consider renaming/removing these public JS unclone(); public String coerceToString() throws JSExn; @@ -81,9 +81,9 @@ public interface JS { public String[] getFormalArgs() { return emptystr; } public String coerceToString() throws JSExn { throw new JSExn("cannot coerce a "+getClass().getName()+" to a string"); } - public JS putAndTriggerTraps(JS key, JS val) throws JSExn { throw new JSExn( - "'" + key + "' is trap read only on class ["+ getClass().getName() +"]"); } - public JS getAndTriggerTraps(JS key) throws JSExn { return null; } // FIXME throw errors? + public JS putAndTriggerTraps(JS key, JS val) throws JSExn { + throw new JSExn("'" + key + "' is trap read only on class ["+ getClass().getName() +"]"); } + public JS getAndTriggerTraps(JS key) throws JSExn { return null; } public JS justTriggerTraps(JS key, JS value) throws JSExn { return null; } public void addTrap(JS key, JS function) throws JSExn { Log.warn(this, "'" + JSU.str(key) + "' is not trappable on class ["+ getClass().getName() +"]"); } @@ -207,8 +207,7 @@ public interface JS { public Trap next(); public Trap nextRead(); public Trap nextWrite(); - - public Trap read(); // FIXME reconsider these function names + public Trap read(); // FEATURE reconsider these function names public Trap write(); }