C# Class IrcShark.Extensions.Scripting.Msl.MslScriptEngine

Inheritance: System.MarshalByRefObject, IScriptEngine
显示文件 Open project: hapm/IrcShark Class Usage Examples

Public Methods

Method Description
Compile ( System file, string binPathes ) : ScriptContainer

Compiles the given msl script file to a Script instance.

Compile ( string name, string source, string binPathes ) : ScriptContainer

Compiles the given msl script string to a Script instance.

Evaluate ( string script ) : object

Evaluates the given string and returns the result, if any.

GetCurrentProperty ( ) : string
GetGlobalVariableValue ( string varname ) : string
MslScriptEngine ( ) : System

Initializes a new instance of the MslScriptEngine class.

PopProperty ( ) : void
PushProperty ( string property ) : void
SetGlobalVariableValue ( string varname, string varvalue ) : void

Private Methods

Method Description
GetActivePropertyStack ( ) : Stack

Method Details

Compile() public method

Compiles the given msl script file to a Script instance.
public Compile ( System file, string binPathes ) : ScriptContainer
file System The file to compile.
binPathes string
return IrcShark.Extensions.Scripting.ScriptContainer

Compile() public method

Compiles the given msl script string to a Script instance.
public Compile ( string name, string source, string binPathes ) : ScriptContainer
name string
source string
binPathes string
return IrcShark.Extensions.Scripting.ScriptContainer

Evaluate() public method

Evaluates the given string and returns the result, if any.
public Evaluate ( string script ) : object
script string The string, that should be interpreted as a msl script.
return object

GetCurrentProperty() public method

public GetCurrentProperty ( ) : string
return string

GetGlobalVariableValue() public method

public GetGlobalVariableValue ( string varname ) : string
varname string
return string

MslScriptEngine() public method

Initializes a new instance of the MslScriptEngine class.
public MslScriptEngine ( ) : System
return System

PopProperty() public method

public PopProperty ( ) : void
return void

PushProperty() public method

public PushProperty ( string property ) : void
property string
return void

SetGlobalVariableValue() public method

public SetGlobalVariableValue ( string varname, string varvalue ) : void
varname string
varvalue string
return void