C# Class Core.DlrEngine

Mostra file Open project: jflam/repl-lib Class Usage Examples

Protected Properties

Property Type Description
_compilerOptions CompilerOptions
_engine ScriptEngine
_outputStream MemoryStream
_scope ScriptScope

Public Methods

Method Description
CreateScriptScope ( ) : ScriptScope
Execute ( string code ) : object
GetFileExtension ( ) : string
GetFileExtensions ( ) : IList
GetTokenInfos ( string code ) : List
InvokeMember ( object target, string method ) : object
ReadStandardOutput ( ) : string
Require ( string module ) : bool
Reset ( ScriptScope scope ) : void
SetVariable ( string name, object value ) : void

Protected Methods

Method Description
CreateScriptSourceFromString ( string code ) : Microsoft.Scripting.ScriptSource
CreateSourceUnit ( string code ) : SourceUnit
ResetOutputStream ( ) : void

Method Details

CreateScriptScope() public method

public CreateScriptScope ( ) : ScriptScope
return ScriptScope

CreateScriptSourceFromString() protected method

protected CreateScriptSourceFromString ( string code ) : Microsoft.Scripting.ScriptSource
code string
return Microsoft.Scripting.ScriptSource

CreateSourceUnit() protected method

protected CreateSourceUnit ( string code ) : SourceUnit
code string
return SourceUnit

Execute() public method

public Execute ( string code ) : object
code string
return object

GetFileExtension() public method

public GetFileExtension ( ) : string
return string

GetFileExtensions() public method

public GetFileExtensions ( ) : IList
return IList

GetTokenInfos() public method

public GetTokenInfos ( string code ) : List
code string
return List

InvokeMember() public abstract method

public abstract InvokeMember ( object target, string method ) : object
target object
method string
return object

ReadStandardOutput() public method

public ReadStandardOutput ( ) : string
return string

Require() public abstract method

public abstract Require ( string module ) : bool
module string
return bool

Reset() public abstract method

public abstract Reset ( ScriptScope scope ) : void
scope ScriptScope
return void

ResetOutputStream() protected method

protected ResetOutputStream ( ) : void
return void

SetVariable() public method

public SetVariable ( string name, object value ) : void
name string
value object
return void

Property Details

_compilerOptions protected_oe property

protected CompilerOptions _compilerOptions
return CompilerOptions

_engine protected_oe property

protected ScriptEngine _engine
return ScriptEngine

_outputStream protected_oe property

protected MemoryStream _outputStream
return MemoryStream

_scope protected_oe property

protected ScriptScope _scope
return ScriptScope