C# Class Rhino.Commonjs.Module.Provider.ModuleSource

Afficher le fichier Open project: hazzik/Rhino.Net

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.

GetReader ( ) : TextReader

Returns the reader returning the source text of the module.

Returns the reader returning the source text of the module. Note that subsequent calls to this method return the same object, thus it is not possible to read the source twice.

GetSecurityDomain ( ) : object

Returns the object representing the security domain for the module's source.

Returns the object representing the security domain for the module's source.

GetUri ( ) : Uri

Returns the URI of the module source text.

Returns the URI of the module source text.

GetValidator ( ) : object

Returns the validator that can be used for subsequent cache validation of the source text.

Returns the validator that can be used for subsequent cache validation of the source text.

ModuleSource ( TextReader reader, object securityDomain, Uri uri, Uri @base, object validator ) : System

Creates a new module source.

Creates a new module source.

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

GetReader() public méthode

Returns the reader returning the source text of the module.
Returns the reader returning the source text of the module. Note that subsequent calls to this method return the same object, thus it is not possible to read the source twice.
public GetReader ( ) : TextReader
Résultat System.IO.TextReader

GetSecurityDomain() public méthode

Returns the object representing the security domain for the module's source.
Returns the object representing the security domain for the module's source.
public GetSecurityDomain ( ) : object
Résultat object

GetUri() public méthode

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

GetValidator() public méthode

Returns the validator that can be used for subsequent cache validation of the source text.
Returns the validator that can be used for subsequent cache validation of the source text.
public GetValidator ( ) : object
Résultat object

ModuleSource() public méthode

Creates a new module source.
Creates a new module source.
public ModuleSource ( TextReader reader, object securityDomain, Uri uri, Uri @base, object validator ) : System
reader System.IO.TextReader the reader returning the source text of the module.
securityDomain object /// the object representing the security domain for /// the module's source (passed to Rhino script compiler). ///
uri System.Uri the URI of the module's source text
@base System.Uri
validator object /// a validator that can be used for subsequent cache /// validation of the source text. ///
Résultat System