org.xwt.js
Class JS.Scope
java.lang.Object
org.xwt.js.JS
org.xwt.js.JS.Obj
org.xwt.js.ScopeImpl
org.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
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 |
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 |
JS.Scope
public JS.Scope(JS.Scope parentScope)
JS.Scope
public JS.Scope(JS.Scope parentScope,
boolean sealed)
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()