org.xwt.js
Class JS.Scope

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.js.JS.Obj
          extended byorg.xwt.js.ScopeImpl
              extended byorg.xwt.js.JS.Scope
Direct Known Subclasses:
org.xwt.js.GlobalScopeImpl
Enclosing class:
JS

public static class JS.Scope
extends org.xwt.js.ScopeImpl

Any object which becomes part of the scope chain must support this interface


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.Scope(JS.Scope parentScope)
           
JS.Scope(JS.Scope parentScope, boolean sealed)
           
 
Method Summary
 java.lang.Object _get(java.lang.Object key)
           
 void _put(java.lang.Object key, java.lang.Object val)
           
 void declare(java.lang.String s)
           
 java.lang.Object get(java.lang.Object key)
           
 JS.Scope getParentScope()
           
 boolean has(java.lang.Object key)
           
 boolean isTransparent()
           
 java.lang.Object[] keys()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
           
 
Methods inherited from class org.xwt.js.JS.Obj
get, put2, setSeal
 
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.Scope

public JS.Scope(JS.Scope parentScope)

JS.Scope

public JS.Scope(JS.Scope parentScope,
                boolean sealed)
Method Detail

has

public boolean has(java.lang.Object key)

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

declare

public void declare(java.lang.String s)

keys

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

_get

public java.lang.Object _get(java.lang.Object key)

_put

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

isTransparent

public boolean isTransparent()

getParentScope

public JS.Scope getParentScope()