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

Inheritance: ModuleScriptProvider
Datei anzeigen Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetModuleScript ( Context cx, string moduleId, Uri moduleUri, Uri baseUri, Scriptable paths ) : ModuleScript

Protected Methods

Method Description
CachingModuleScriptProviderBase ( ModuleSourceProvider moduleSourceProvider ) : System

Creates a new module script provider with the specified source.

Creates a new module script provider with the specified source.

GetConcurrencyLevel ( ) : int

Returns the internal concurrency level utilized by caches in this JVM.

Returns the internal concurrency level utilized by caches in this JVM.

GetLoadedModule ( string moduleId ) : CachingModuleScriptProviderBase.CachedModuleScript

Retrieves an already loaded moduleScript stored using PutLoadedModule(string, Rhino.Commonjs.Module.ModuleScript, object) .

PutLoadedModule ( string moduleId, ModuleScript moduleScript, object validator ) : void

Store a loaded module script for later retrieval using GetLoadedModule(string) .

Private Methods

Method Description
CachingModuleScriptProviderBase ( ) : System
Equal ( object o1, object o2 ) : bool
GetValidator ( CachingModuleScriptProviderBase cachedModule ) : object

Method Details

CachingModuleScriptProviderBase() protected method

Creates a new module script provider with the specified source.
Creates a new module script provider with the specified source.
protected CachingModuleScriptProviderBase ( ModuleSourceProvider moduleSourceProvider ) : System
moduleSourceProvider ModuleSourceProvider provider for modules' source code
return System

GetConcurrencyLevel() protected static method

Returns the internal concurrency level utilized by caches in this JVM.
Returns the internal concurrency level utilized by caches in this JVM.
protected static GetConcurrencyLevel ( ) : int
return int

GetLoadedModule() protected abstract method

Retrieves an already loaded moduleScript stored using PutLoadedModule(string, Rhino.Commonjs.Module.ModuleScript, object) .
protected abstract GetLoadedModule ( string moduleId ) : CachingModuleScriptProviderBase.CachedModuleScript
moduleId string the ID of the module
return CachingModuleScriptProviderBase.CachedModuleScript

GetModuleScript() public method

public GetModuleScript ( Context cx, string moduleId, Uri moduleUri, Uri baseUri, Scriptable paths ) : ModuleScript
cx Rhino.Context
moduleId string
moduleUri System.Uri
baseUri System.Uri
paths Scriptable
return Rhino.Commonjs.Module.ModuleScript

PutLoadedModule() protected abstract method

Store a loaded module script for later retrieval using GetLoadedModule(string) .
protected abstract PutLoadedModule ( string moduleId, ModuleScript moduleScript, object validator ) : void
moduleId string the ID of the module
moduleScript Rhino.Commonjs.Module.ModuleScript the module script
validator object the validator for the module's source text entity
return void