public class ModuleScript extends Object implements Serializable
Require functions use them and obtain
them through a ModuleScriptProvider. Instances are immutable.| Constructor and Description |
|---|
ModuleScript(Script script,
URI uri,
URI base)
Creates a new CommonJS module.
|
| Modifier and Type | Method and Description |
|---|---|
URI |
getBase()
Returns the base URI from which this module source was loaded, or null if it was loaded from
an absolute URI.
|
Script |
getScript()
Returns the script object representing the code of the module.
|
URI |
getUri()
Returns the URI of the module.
|
boolean |
isSandboxed()
Returns true if this script has a base URI and has a source URI that is contained within that
base URI.
|
public Script getScript()
public URI getUri()
public URI getBase()
public boolean isSandboxed()
Copyright © 2023 HtmlUnit. All rights reserved.