X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FJS.java;h=b89b61ca01d2025c525d8475606580b391dec791;hb=1a8dcf7794ae435c5c2811b8d7c2b75832047595;hp=24f133adac144092924c0e5088267b7092e4d5e4;hpb=77f51cd3e157cf6fd2ae85ce774444bb85ea7b81;p=org.ibex.core.git diff --git a/src/org/xwt/js/JS.java b/src/org/xwt/js/JS.java index 24f133a..b89b61c 100644 --- a/src/org/xwt/js/JS.java +++ b/src/org/xwt/js/JS.java @@ -92,6 +92,8 @@ public abstract class JS { public Object elementAt(int i) { return super.elementAt(i); } public void addElement(Object o) { super.addElement(o); } public void setElementAt(Object o, int i) { super.setElementAt(o, i); } + public Object get(Object key) { return super.get(key); } + public void put(Object key, Object val) { super.put(key, val); } } /** Any object which becomes part of the scope chain must support this interface */ @@ -101,6 +103,8 @@ public abstract class JS { /** transparent scopes are not returned by THIS */ public boolean isTransparent() { return super.isTransparent(); } public boolean has(Object key) { return super.has(key); } + public Object get(Object key) { return super.get(key); } + public void put(Object key, Object val) { super.put(key, val); } public void declare(String s) { super.declare(s); } } @@ -124,7 +128,7 @@ public abstract class JS { CompiledFunction currentCompiledFunction = null; Vec stack = new Vec(); - private int line = -1; + int line = -1; /** binds this thread to the current Java Thread */ public void bindToCurrentJavaThread() { javaThreadToJSThread.put(java.lang.Thread.currentThread(), this); }