throw new JSExn("invalid resource specifier " + url);
}
case "thread.sleep": sleep(JS.toInt(a)); return null;
throw new JSExn("invalid resource specifier " + url);
}
case "thread.sleep": sleep(JS.toInt(a)); return null;
case "net.rpc.xml": return new XMLRPC(JS.toString(a), "");
case "crypto.rsa": /* FEATURE */ return null;
case "crypto.md5": /* FEATURE */ return null;
case "net.rpc.xml": return new XMLRPC(JS.toString(a), "");
case "crypto.rsa": /* FEATURE */ return null;
case "crypto.md5": /* FEATURE */ return null;
// FEATURE: move this into builtin.xwar
public Blessing bless(JS b) throws JSExn { return new Ibex.Blessing(b, this, null, null); }
// FEATURE: move this into builtin.xwar
public Blessing bless(JS b) throws JSExn { return new Ibex.Blessing(b, this, null, null); }
- // FIXME: Does this really need to extends JS.Clone?
- // FEATURE: Mandate that Blessings use only String keys?
- public static class Blessing extends JS.Clone {
+ // JS:FIXME: This doesn't properly handle traps
+ public static class Blessing extends JS.O {
private Ibex ibex;
private Template t = null;
public JS parentkey = null;
public Blessing parent = null;
private Ibex ibex;
private Template t = null;
public JS parentkey = null;
public Blessing parent = null;
private Hash cache = new Hash();
public Blessing(JS clonee, Ibex ibex, Blessing parent, JS parentkey) throws JSExn {
private Hash cache = new Hash();
public Blessing(JS clonee, Ibex ibex, Blessing parent, JS parentkey) throws JSExn {
public JS get(JS key) throws JSExn {
if (JS.isString(key) && JS.toString(key).equals("")) return getStatic();
if (cache.get(key) != null) return (JS)cache.get(key);
public JS get(JS key) throws JSExn {
if (JS.isString(key) && JS.toString(key).equals("")) return getStatic();
if (cache.get(key) != null) return (JS)cache.get(key);
try {
if (t == null) {
// FEATURE: Might want to handle the ".t" part better
JS res = parent.get(JS.S(JS.toString(parentkey) + ".t"));
t = Template.buildTemplate(description(), res, ibex);
}
try {
if (t == null) {
// FEATURE: Might want to handle the ".t" part better
JS res = parent.get(JS.S(JS.toString(parentkey) + ".t"));
t = Template.buildTemplate(description(), res, ibex);
}
return s;
}
public JS call(JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn {
return s;
}
public JS call(JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn {