org.xwt.js
Class JS.Obj

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.js.JS.Obj
Direct Known Subclasses:
org.xwt.js.ArrayImpl, Date, Function, JS.Callable, Math, Regexp, org.xwt.js.ScopeImpl, XWT
Enclosing class:
JS

public static class JS.Obj
extends JS

A sensible implementation of the abstract methods in the JS class


Nested Class Summary
 
Nested classes inherited from class org.xwt.js.JS
JS.Array, JS.Callable, JS.Context, JS.Exn, JS.GlobalScope, JS.Graft, JS.Obj, JS.Scope, JS.TailCall
 
Constructor Summary
JS.Obj()
           
JS.Obj(boolean sealed)
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
           
protected  java.lang.Object get(java.lang.Object key, java.lang.Object key2)
           
 java.lang.Object[] keys()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
           
protected  void put2(java.lang.Object key, java.lang.Object key2, java.lang.Object val)
           
 void setSeal(boolean sealed)
           
 
Methods inherited from class org.xwt.js.JS
callMethod, coerceToBoolean, coerceToNumber, coerceToString, parse, toBoolean, toDouble, toInt, toLong, toNumber, toString, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JS.Obj

public JS.Obj()

JS.Obj

public JS.Obj(boolean sealed)
Method Detail

setSeal

public void setSeal(boolean sealed)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object val)
Specified by:
put in class JS

put2

protected void put2(java.lang.Object key,
                    java.lang.Object key2,
                    java.lang.Object val)

keys

public java.lang.Object[] keys()
Specified by:
keys in class JS

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in class JS

get

protected java.lang.Object get(java.lang.Object key,
                               java.lang.Object key2)