Package org.ringojs.engine
Class ModuleScope
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.mozilla.javascript.IdScriptableObject
-
- org.mozilla.javascript.TopLevel
-
- org.mozilla.javascript.ImporterTopLevel
-
- org.ringojs.engine.ModuleScope
-
- All Implemented Interfaces:
java.io.Serializable
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.IdFunctionCall
,org.mozilla.javascript.Scriptable
,org.mozilla.javascript.SymbolScriptable
public class ModuleScope extends org.mozilla.javascript.ImporterTopLevel
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
-
-
Constructor Summary
Constructors Constructor Description ModuleScope(java.lang.String moduleId, Trackable source, org.mozilla.javascript.Scriptable prototype, RingoWorker worker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getChecksum()
java.lang.Object
getDefaultValue(java.lang.Class hint)
org.mozilla.javascript.Scriptable
getExports()
java.lang.String
getModuleName()
org.mozilla.javascript.Scriptable
getModuleObject()
Repository
getRepository()
Trackable
getSource()
RingoWorker
getWorker()
void
reset()
void
setChecksum(long checksum)
java.lang.String
toString()
protected void
updateExports()
-
Methods inherited from class org.mozilla.javascript.ImporterTopLevel
execIdCall, findPrototypeId, get, getClassName, has, importPackage, init, initPrototypeId, initStandardObjects
-
Methods inherited from class org.mozilla.javascript.TopLevel
cacheBuiltins, getBuiltinCtor, getBuiltinCtor, getBuiltinPrototype, getBuiltinPrototype
-
Methods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findInstanceIdInfo, findPrototypeId, get, getAttributes, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes, setInstanceIdAttributes, setInstanceIdValue
-
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
-
-
-
Constructor Detail
-
ModuleScope
public ModuleScope(java.lang.String moduleId, Trackable source, org.mozilla.javascript.Scriptable prototype, RingoWorker worker)
-
-
Method Detail
-
getSource
public Trackable getSource()
-
getRepository
public Repository getRepository()
-
getWorker
public RingoWorker getWorker()
-
reset
public void reset()
-
getChecksum
public long getChecksum()
-
setChecksum
public void setChecksum(long checksum)
-
getModuleName
public java.lang.String getModuleName()
-
updateExports
protected void updateExports()
-
getExports
public org.mozilla.javascript.Scriptable getExports()
-
getModuleObject
public org.mozilla.javascript.Scriptable getModuleObject()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDefaultValue
public java.lang.Object getDefaultValue(java.lang.Class hint)
- Specified by:
getDefaultValue
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
getDefaultValue
in classorg.mozilla.javascript.ScriptableObject
-
-