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

The parent class of all compiled msl scripts.
Inheritance: Script
ファイルを表示 Open project: hapm/IrcShark

Public Methods

Method Description
CallAlias ( string line ) : void
CallAlias ( string name, string parameters ) : void
CallIdentifier ( string name, string parameters, string property ) : string

Calls the given identifier.

Check ( string s ) : bool

Checks if the given string represents true or false.

Check ( string s, string op ) : bool

Checks if the given string matches the given operation.

Check ( string s1, string op, string s2 ) : bool

Compares two strings with the given operator.

MslScript ( IScriptEngine engine ) : System

Private Methods

Method Description
CreateRealParameters ( MethodInfo method, string parameters ) : object[]

Converts the string parameters to a list of objects matching the parameter types of a given method.

This method uses the IConvertible interface to try to convert the strings in the proper types.

GetGlobalVariableValue ( string varname ) : string

Gets the value of a global variable.

SetGlobalVariableValue ( string varname, string varvalue ) : void

Sets the value of a global variable.

Method Details

CallAlias() public method

public CallAlias ( string line ) : void
line string
return void

CallAlias() public method

public CallAlias ( string name, string parameters ) : void
name string
parameters string
return void

CallIdentifier() public method

Calls the given identifier.
public CallIdentifier ( string name, string parameters, string property ) : string
name string The name of the identifier.
parameters string The parameters for the identifier.
property string The property, assigned to the identifier.
return string

Check() public method

Checks if the given string represents true or false.
public Check ( string s ) : bool
s string The string to check.
return bool

Check() public method

Checks if the given string matches the given operation.
public Check ( string s, string op ) : bool
s string The string to check.
op string The operator to evaluate the string with.
return bool

Check() public method

Compares two strings with the given operator.
public Check ( string s1, string op, string s2 ) : bool
s1 string The first string to check.
op string The operator to compare the strings with.
s2 string
return bool

MslScript() public method

public MslScript ( IScriptEngine engine ) : System
engine IScriptEngine
return System