|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mozilla.javascript.commonjs.module.ModuleScript
public class ModuleScript
Represents a compiled CommonJS module script. The Require functions
use them and obtain them through a ModuleScriptProvider. Instances
are immutable.
| Constructor Summary | |
|---|---|
ModuleScript(Script script,
java.net.URI uri,
java.net.URI base)
Creates a new CommonJS module. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Script getScript()
public java.net.URI getUri()
public java.net.URI getBase()
public boolean isSandboxed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||