All Implemented Interfaces:
Serializable, ConstProperties<VarScope>, PropHolder<VarScope>, VarScope

public class ModuleScope extends DeclarationScope
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:
  • Method Details

    • createModuleScope

      public static ScopeObject createModuleScope(TopLevel global, URI uri, URI base)
    • getUri

      public URI getUri()
    • getBase

      public URI getBase()
    • findModuleScope

      public static ModuleScope findModuleScope(VarScope scope)
      Search up the chain of scopes to find a module scope.