Class ModuleScope

All Implemented Interfaces:
Serializable, ConstProperties, DebuggableObject, IdFunctionCall, Scriptable, SymbolScriptable

public class ModuleScope extends TopLevel
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • uri

      private final URI uri
    • base

      private final URI base
  • Constructor Details

  • Method Details

    • getUri

      public URI getUri()
    • getBase

      public URI getBase()