org.helma.javascript
Class ModuleScope

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.mozilla.javascript.IdScriptableObject
          extended by org.mozilla.javascript.NativeObject
              extended by org.helma.javascript.ModuleScope
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.IdFunctionCall, org.mozilla.javascript.Scriptable

public class ModuleScope
extends org.mozilla.javascript.NativeObject

A scriptable object that keeps track of the resource it has been loaded from so requests to load other stuff can look for local resources.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
ModuleScope(Resource resource, Repository repository, org.mozilla.javascript.Scriptable prototype)
           
 
Method Summary
 void delete(int index)
           
 void delete(java.lang.String name)
           
 java.lang.Object get(int index, org.mozilla.javascript.Scriptable start)
           
 java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
           
 java.lang.Object getDefaultValue(java.lang.Class hint)
           
 boolean getHasAdapterFunctions()
           
 java.lang.Object[] getIds()
           
 Repository getRepository()
           
 boolean has(int index, org.mozilla.javascript.Scriptable start)
           
 boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
           
 void put(int index, org.mozilla.javascript.Scriptable start, java.lang.Object value)
           
 void put(java.lang.String name, org.mozilla.javascript.Scriptable start, java.lang.Object value)
           
 void setHasAdapterFunctions(boolean adapter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.mozilla.javascript.NativeObject
execIdCall, findPrototypeId, getClassName, initPrototypeId
 
Methods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, setAttributes, setInstanceIdValue
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleScope

public ModuleScope(Resource resource,
                   Repository repository,
                   org.mozilla.javascript.Scriptable prototype)
Method Detail

getRepository

public Repository getRepository()

toString

public java.lang.String toString()
Overrides:
toString in class org.mozilla.javascript.NativeObject

getDefaultValue

public java.lang.Object getDefaultValue(java.lang.Class hint)
Specified by:
getDefaultValue in interface org.mozilla.javascript.Scriptable
Overrides:
getDefaultValue in class org.mozilla.javascript.ScriptableObject

setHasAdapterFunctions

public void setHasAdapterFunctions(boolean adapter)

getHasAdapterFunctions

public boolean getHasAdapterFunctions()

get

public java.lang.Object get(java.lang.String name,
                            org.mozilla.javascript.Scriptable start)
Specified by:
get in interface org.mozilla.javascript.Scriptable
Overrides:
get in class org.mozilla.javascript.IdScriptableObject

get

public java.lang.Object get(int index,
                            org.mozilla.javascript.Scriptable start)
Specified by:
get in interface org.mozilla.javascript.Scriptable
Overrides:
get in class org.mozilla.javascript.ScriptableObject

has

public boolean has(java.lang.String name,
                   org.mozilla.javascript.Scriptable start)
Specified by:
has in interface org.mozilla.javascript.Scriptable
Overrides:
has in class org.mozilla.javascript.IdScriptableObject

has

public boolean has(int index,
                   org.mozilla.javascript.Scriptable start)
Specified by:
has in interface org.mozilla.javascript.Scriptable
Overrides:
has in class org.mozilla.javascript.ScriptableObject

put

public void put(java.lang.String name,
                org.mozilla.javascript.Scriptable start,
                java.lang.Object value)
Specified by:
put in interface org.mozilla.javascript.Scriptable
Overrides:
put in class org.mozilla.javascript.IdScriptableObject

put

public void put(int index,
                org.mozilla.javascript.Scriptable start,
                java.lang.Object value)
Specified by:
put in interface org.mozilla.javascript.Scriptable
Overrides:
put in class org.mozilla.javascript.ScriptableObject

delete

public void delete(java.lang.String name)
Specified by:
delete in interface org.mozilla.javascript.Scriptable
Overrides:
delete in class org.mozilla.javascript.IdScriptableObject

delete

public void delete(int index)
Specified by:
delete in interface org.mozilla.javascript.Scriptable
Overrides:
delete in class org.mozilla.javascript.ScriptableObject

getIds

public java.lang.Object[] getIds()
Specified by:
getIds in interface org.mozilla.javascript.Scriptable
Overrides:
getIds in class org.mozilla.javascript.ScriptableObject