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

The parent class of all compiled msl scripts.
Inheritance: Script
Afficher le fichier Open project: hapm/IrcShark

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CallAlias ( string line ) : void
line string
Résultat void

CallAlias() public méthode

public CallAlias ( string name, string parameters ) : void
name string
parameters string
Résultat void

CallIdentifier() public méthode

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.
Résultat string

Check() public méthode

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

Check() public méthode

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.
Résultat bool

Check() public méthode

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
Résultat bool

MslScript() public méthode

public MslScript ( IScriptEngine engine ) : System
engine IScriptEngine
Résultat System