org.xwt.js
Class JS.Array

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.js.JS.Obj
          extended byorg.xwt.js.ArrayImpl
              extended byorg.xwt.js.JS.Array
Enclosing class:
JS

public static class JS.Array
extends org.xwt.js.ArrayImpl

The publicly-visible face of JavaScript Array objects


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.Array()
           
JS.Array(int size)
           
 
Method Summary
 java.lang.Object _get(java.lang.Object key)
           
 void _put(java.lang.Object key, java.lang.Object val)
           
 void addElement(java.lang.Object o)
           
 java.lang.Object callMethod(java.lang.Object method, JS.Array args, boolean justChecking)
           
 java.lang.String coerceToString()
           
 java.lang.Object elementAt(int i)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object[] keys()
           
 int length()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
           
 void setElementAt(java.lang.Object o, int i)
           
 void setSize(int i)
           
 java.lang.String typeName()
           
 
Methods inherited from class org.xwt.js.JS.Obj
get, put2, setSeal
 
Methods inherited from class org.xwt.js.JS
coerceToBoolean, coerceToNumber, parse, toBoolean, toDouble, toInt, toLong, toNumber, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JS.Array

public JS.Array()

JS.Array

public JS.Array(int size)
Method Detail

setSize

public void setSize(int i)

length

public int length()

elementAt

public java.lang.Object elementAt(int i)

addElement

public void addElement(java.lang.Object o)

setElementAt

public void setElementAt(java.lang.Object o,
                         int i)

get

public java.lang.Object get(java.lang.Object key)
Overrides:
get in class JS.Obj

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object val)
Overrides:
put in class JS.Obj

callMethod

public java.lang.Object callMethod(java.lang.Object method,
                                   JS.Array args,
                                   boolean justChecking)
Overrides:
callMethod in class JS

_get

public java.lang.Object _get(java.lang.Object key)
                      throws JS.Exn
Throws:
JS.Exn

_put

public void _put(java.lang.Object key,
                 java.lang.Object val)

keys

public java.lang.Object[] keys()
Overrides:
keys in class JS.Obj

typeName

public java.lang.String typeName()
Overrides:
typeName in class JS

coerceToString

public java.lang.String coerceToString()
Overrides:
coerceToString in class JS