C# Class Rhino.Commonjs.Module.ModuleScript

Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat System.Uri

GetScript() public méthode

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

GetUri() public méthode

Returns the URI of the module.
Returns the URI of the module.
public GetUri ( ) : Uri
Résultat System.Uri

IsSandboxed() public méthode

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
Résultat bool

ModuleScript() public méthode

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
Résultat System