C# Class IronRuby.Runtime.Loader

Mostrar archivo Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AddAbsoluteLibraryPaths void
AddCompiledFile void
AddLoadPaths void
AddLoadedFile void
AddScriptLines void
AddStandardLibraryPath void
AlreadyLoaded bool
AlreadyLoaded bool
AlreadyLoaded bool
AnyFileLoaded bool
CompileRubySource Microsoft.Scripting.ScriptCode
Execute Scope
FileLoaded void
FindFile IList
GetAssembly System.Reflection.Assembly
GetExtensionsOfExistingFiles List
GetLoadPathStrings string[]
GetLoadPaths object[]
GetLoadedFiles object[]
GetPathsToTestLoaded IEnumerable
GetSourceUnit ResolvedFile
InsertLoadPaths void
InsertLoadPaths void
IsKnownExtension bool
LoadAssembly bool
LoadBuiltins void
LoadCompiledCode CompiledFile>.Dictionary
LoadFromPath bool
LoadLibrary void
Loader System
MakeLoadPaths RubyArray
ResolveAssembly System.Reflection.Assembly
ResolveFile ResolvedFile
SaveCompiledCode void
TryGetCompiledFile bool
TryParseAssemblyName bool

Public Methods

Method Description
GetIronRubyAssemblyLongName ( string baseName ) : string
LoadAssembly ( string assemblyName, string typeName, bool throwOnError, bool tryPartialName ) : Assembly
LoadFile ( Scope globalScope, object self, MutableString path, LoadFlags flags ) : bool
LoadFile ( Scope globalScope, object self, MutableString path, LoadFlags flags, object &loaded ) : bool

Returns true if a Ruby file is successfully loaded, false if it is already loaded.

SetLoadPaths ( IEnumerable paths ) : void

Private Methods

Method Description
AddAbsoluteLibraryPaths ( RubyArray result, string applicationBaseDir, ICollection paths ) : void
AddCompiledFile ( string fullPath, ScriptCode compiledCode ) : void
AddLoadPaths ( IEnumerable paths ) : void
AddLoadedFile ( MutableString path ) : void
AddScriptLines ( SourceUnit file ) : void

If the SCRIPT_LINES__ constant is set, we need to publish the file being loaded, along with the contents of the file

AddStandardLibraryPath ( RubyArray loadPaths, string path, string applicationBaseDir ) : void
AlreadyLoaded ( string path, IEnumerable files, LoadFlags flags ) : bool

Return true if any of the files has alraedy been loaded.

AlreadyLoaded ( string path, string fullPath, LoadFlags flags ) : bool
AlreadyLoaded ( string path, string fullPath, LoadFlags flags, string sourceFileExtensions ) : bool
AnyFileLoaded ( IEnumerable paths ) : bool
CompileRubySource ( SourceUnit sourceUnit, LoadFlags flags ) : ScriptCode
Execute ( Scope globalScope, ScriptCode code ) : Scope
FileLoaded ( MutableString path, LoadFlags flags ) : void
FindFile ( string path, bool appendExtensions, string sourceFileExtensions ) : IList

Searches file in load directories and then appends extensions.

GetAssembly ( string assemblyName, bool throwOnError, bool tryPartialName ) : Assembly
GetExtensionsOfExistingFiles ( string path, IEnumerable extensions ) : List
GetLoadPathStrings ( ) : string[]
GetLoadPaths ( ) : object[]
GetLoadedFiles ( ) : object[]
GetPathsToTestLoaded ( string path, string fullPath, LoadFlags flags, string sourceFileExtensions ) : IEnumerable
GetSourceUnit ( string path, string fullPath, string extension, bool extensionAppended ) : ResolvedFile
InsertLoadPaths ( IEnumerable paths ) : void
InsertLoadPaths ( IEnumerable paths, int index ) : void
IsKnownExtension ( string extension, string knownExtensions ) : bool
LoadAssembly ( Assembly assembly, string typeName, bool throwOnError ) : bool
LoadBuiltins ( ) : void
LoadCompiledCode ( ) : CompiledFile>.Dictionary
LoadFromPath ( Scope globalScope, object self, string path, IronRuby.Builtins.RubyEncoding pathEncoding, LoadFlags flags, object &loaded ) : bool
LoadLibrary ( Type initializerType, bool builtin ) : void
Loader ( RubyContext context ) : System
MakeLoadPaths ( RubyOptions options ) : RubyArray
ResolveAssembly ( string fullName ) : Assembly
ResolveFile ( string path, string extension, bool appendExtensions, string knownExtensions ) : ResolvedFile

Appends extensions if applicable.

SaveCompiledCode ( ) : void
TryGetCompiledFile ( string fullPath, CompiledFile &compiledFile ) : bool
TryParseAssemblyName ( string path, string &typeName, string &assemblyName ) : bool

Method Details

GetIronRubyAssemblyLongName() public static method

public static GetIronRubyAssemblyLongName ( string baseName ) : string
baseName string
return string

LoadAssembly() public method

public LoadAssembly ( string assemblyName, string typeName, bool throwOnError, bool tryPartialName ) : Assembly
assemblyName string
typeName string
throwOnError bool
tryPartialName bool
return System.Reflection.Assembly

LoadFile() public method

public LoadFile ( Scope globalScope, object self, MutableString path, LoadFlags flags ) : bool
globalScope Scope
self object
path MutableString
flags LoadFlags
return bool

LoadFile() public method

Returns true if a Ruby file is successfully loaded, false if it is already loaded.
public LoadFile ( Scope globalScope, object self, MutableString path, LoadFlags flags, object &loaded ) : bool
globalScope Scope /// A scope against which the file should be executed or null to create a new scope. ///
self object
path MutableString
flags LoadFlags
loaded object
return bool

SetLoadPaths() public method

public SetLoadPaths ( IEnumerable paths ) : void
paths IEnumerable
return void