|
||||||||||
| 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,
URI uri,
URI base)
Creates a new CommonJS module. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleScript(Script script,
URI uri,
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 URI getUri()
public URI getBase()
public boolean isSandboxed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||