C# 클래스 IronRuby.Runtime.Loader

파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

GetIronRubyAssemblyLongName() 공개 정적인 메소드

public static GetIronRubyAssemblyLongName ( string baseName ) : string
baseName string
리턴 string

LoadAssembly() 공개 메소드

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

LoadFile() 공개 메소드

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

LoadFile() 공개 메소드

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
리턴 bool

SetLoadPaths() 공개 메소드

public SetLoadPaths ( IEnumerable paths ) : void
paths IEnumerable
리턴 void