renamed Script to JSU
[org.ibex.js.git] / src / org / ibex / js / XMLRPC.java
index 44324e0..cdf4789 100644 (file)
@@ -40,7 +40,7 @@ public class XMLRPC extends JS.Immutable {
     public XMLRPC(String url, String method, XMLRPC httpSource) {
         this.http = httpSource.http; this.url = url; this.method = method; }
     public JS get(JS name) throws JSExn {
-        return new XMLRPC(url, (method.equals("") ? "" : method + ".") + Script.toString(name), this); }
+        return new XMLRPC(url, (method.equals("") ? "" : method + ".") + JSU.toString(name), this); }
 
 
     /** this holds character content as we read it in -- since there is only one per instance, we don't support mixed content */
@@ -150,7 +150,7 @@ public class XMLRPC extends JS.Immutable {
                 for(i=objects.size() - 1; objects.get(i) != null; i--);
                 JSArray arr = new JSArray();
                 try {
-                    for(int j = i + 1; j<objects.size(); j++) arr.put(Script.N(j - i - 1), (JS)objects.get(j));
+                    for(int j = i + 1; j<objects.size(); j++) arr.put(JSU.N(j - i - 1), (JS)objects.get(j));
                 } catch (JSExn e) {
                     throw new Error("this should never happen");
                 }
@@ -279,7 +279,7 @@ public class XMLRPC extends JS.Immutable {
 
         } else if (o instanceof JSArray) {
             if (tracker.get(o) != null) throw new JSExn("attempted to send multi-ref data structure via XML-RPC");
-            tracker.put(o, Script.B(true));
+            tracker.put(o, JSU.B(true));
             sb.append("                <value><array><data>\n");
             JSArray a = (JSArray)o;
             for(int i=0; i < a.size(); i++) appendObject(a.get(i), sb);
@@ -287,7 +287,7 @@ public class XMLRPC extends JS.Immutable {
 
         } else if (o instanceof JS) {
             if (tracker.get(o) != null) throw new JSExn("attempted to send multi-ref data structure via XML-RPC");
-            tracker.put(o, Script.B(true));
+            tracker.put(o, JSU.B(true));
             JS j = (JS)o;
             sb.append("                <value><struct>\n");
             Enumeration e = j.keys();