org.mozilla.javascript.tools.shell
Class Environment

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by org.mozilla.javascript.tools.shell.Environment
All Implemented Interfaces:
java.io.Serializable, java.util.Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class Environment
extends net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

Environment, intended to be instantiated at global scope, provides a natural way to access System properties from JavaScript.

Author:
Patrick C. Beard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Environment()
           
Environment(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scope)
           
 
Method Summary
static void defineClass(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scope)
           
 java.lang.Object get(java.lang.String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
           
 java.lang.Object[] getAllIds()
           
 java.lang.String getClassName()
           
 java.lang.Object[] getIds()
           
 boolean has(java.lang.String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
           
 void put(java.lang.String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start, java.lang.Object value)
           
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, equivalentValues, get, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isGenericDescriptor, isGetterOrSetter, isSealed, keySet, preventExtensions, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Environment

public Environment()

Environment

public Environment(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scope)
Method Detail

defineClass

public static void defineClass(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scope)

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Specified by:
getClassName in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

has

public boolean has(java.lang.String name,
                   net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Specified by:
has in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
has in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

get

public java.lang.Object get(java.lang.String name,
                            net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Specified by:
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
get in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

put

public void put(java.lang.String name,
                net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
                java.lang.Object value)
Specified by:
put in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
put in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

getIds

public java.lang.Object[] getIds()
Specified by:
getIds in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
getIds in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

getAllIds

public java.lang.Object[] getAllIds()
Specified by:
getAllIds in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject
Overrides:
getAllIds in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject


Copyright © 2010. All Rights Reserved.