C# Class Rhino.Commonjs.Module.ModuleScript

Exibir arquivo Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetBase ( ) : Uri

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

GetScript ( ) : System.Script

Returns the script object representing the code of the module.

Returns the script object representing the code of the module.

GetUri ( ) : Uri

Returns the URI of the module.

Returns the URI of the module.

IsSandboxed ( ) : bool

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

ModuleScript ( System.Script script, Uri uri, Uri @base ) : System

Creates a new CommonJS module.

Creates a new CommonJS module.

Method Details

GetBase() public method

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
public GetBase ( ) : Uri
return System.Uri

GetScript() public method

Returns the script object representing the code of the module.
Returns the script object representing the code of the module.
public GetScript ( ) : System.Script
return System.Script

GetUri() public method

Returns the URI of the module.
Returns the URI of the module.
public GetUri ( ) : Uri
return System.Uri

IsSandboxed() public method

Returns true if this script has a base URI and has a source URI that is contained within that base URI.
Returns true if this script has a base URI and has a source URI that is contained within that base URI.
public IsSandboxed ( ) : bool
return bool

ModuleScript() public method

Creates a new CommonJS module.
Creates a new CommonJS module.
public ModuleScript ( System.Script script, Uri uri, Uri @base ) : System
script System.Script the script representing the code of the module.
uri System.Uri the URI of the module.
@base System.Uri
return System