public class ModuleScript
extends java.lang.Object
implements java.io.Serializable
Require
functions
use them and obtain them through a ModuleScriptProvider
. Instances
are immutable.Constructor and Description |
---|
ModuleScript(Script script,
java.net.URI uri,
java.net.URI base)
Creates a new CommonJS module.
|
Modifier and Type | Method and Description |
---|---|
java.net.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.
|
java.net.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 ModuleScript(Script script, java.net.URI uri, java.net.URI base)
script
- the script representing the code of the module.uri
- the URI of the module.base
- the base URI, or null.public Script getScript()
public java.net.URI getUri()
public java.net.URI getBase()
public boolean isSandboxed()
Copyright © 2010 - 2020 Adobe. All Rights Reserved