org.xwt.js
Class JS.Graft

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.js.JS.Graft
Enclosing class:
JS

public static class JS.Graft
extends JS

the result of a graft


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.Graft(JS graftee, java.lang.Object key, java.lang.Object val)
           
 
Method Summary
 java.lang.Object callMethod(java.lang.Object method, JS.Array args, boolean checkOnly)
           
 boolean coerceToBoolean()
           
 java.lang.Number coerceToNumber()
           
 java.lang.String coerceToString()
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(java.lang.Object key)
           
 int hashCode()
           
 java.lang.Object[] keys()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
           
 java.lang.String typeName()
           
 
Methods inherited from class org.xwt.js.JS
parse, toBoolean, toDouble, toInt, toLong, toNumber, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JS.Graft

public JS.Graft(JS graftee,
                java.lang.Object key,
                java.lang.Object val)
Method Detail

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

get

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

put

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

callMethod

public java.lang.Object callMethod(java.lang.Object method,
                                   JS.Array args,
                                   boolean checkOnly)
                            throws JS.Exn
Overrides:
callMethod in class JS
Throws:
JS.Exn

coerceToNumber

public java.lang.Number coerceToNumber()
Overrides:
coerceToNumber in class JS

coerceToString

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

coerceToBoolean

public boolean coerceToBoolean()
Overrides:
coerceToBoolean in class JS

typeName

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

keys

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