java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<VarScope>
org.htmlunit.corejs.javascript.ScopeObject
org.htmlunit.corejs.javascript.DeclarationScope
org.htmlunit.corejs.javascript.commonjs.module.ModuleScope
- All Implemented Interfaces:
Serializable,ConstProperties<VarScope>,PropHolder<VarScope>,VarScope
A top-level module scope. This class provides methods to retrieve the module's source and base
URIs in order to resolve relative module IDs and check sandbox constraints.
- See Also:
-
Field Summary
Fields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealed -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeObjectcreateModuleScope(TopLevel global, URI uri, URI base) static ModuleScopefindModuleScope(VarScope scope) Search up the chain of scopes to find a module scope.getBase()getUri()Methods inherited from class org.htmlunit.corejs.javascript.ScopeObject
defineConst, defineProperty, defineProperty, delete, delete, delete, get, get, get, getParentScope, getThis, has, has, has, isConst, put, put, put, putConst, putOwnProperty, putOwnProperty, putOwnProperty, setAttributes, setAttributesMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, createSlotMap, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, isSealed, readMaps, sealObject, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.PropHolder
getIdsMethods inherited from interface org.htmlunit.corejs.javascript.VarScope
copyScope, getAncestor, isNestedScope
-
Method Details
-
createModuleScope
-
getUri
-
getBase
-
findModuleScope
Search up the chain of scopes to find a module scope.
-