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

Datei anzeigen Open project: hazzik/Rhino.Net

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.

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 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

GetReader() public method

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
return System.IO.TextReader

GetSecurityDomain() public method

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
return object

GetUri() public method

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

GetValidator() public method

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
return object

ModuleSource() public method

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. ///
return System