Interpreter that can install commands from dynamically loaded (compiled) scripts and run them. Script loader object of a type is accessed through a property that can be overridden in derived classes, such that a different script loader is used. This is importand because different libraries will be required for compilation in different contexts. Script loader property creates a new script loader on first access.
More...
|
| LoadableScriptInterpreterBase () |
|
string | RunCommand (string commandName, string[] commandArguments) |
| Runs command with the specified name that is loaded on the current object. More...
|
|
void | AddCommandFromCode (string commandName, string code, string className, string[] initializationArguments) |
| Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the specified script code. More...
|
|
void | AddCommandFromCode (string commandName, string code, string[] initializationArguments) |
| Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the specified script code. Name of the class is extracted from the script code. More...
|
|
void | AddCommandFromFile (string commandName, string filePath, string className, string[] initializationArguments) |
| Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the script code contained in the specified file. More...
|
|
void | AddCommandFromFile (string commandName, string filePath, string[] initializationArguments) |
| Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the script code contained in the specified file. Name of the class is extracted from the script code. More...
|
|
|
object | Lock [get] |
| This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
|
|
virtual ScriptLoaderBase | ScriptLoader [get, set] |
| Script loader that is used to load loadable script classes that will be used for execution of commands. More...
|
|
SortedList< string,
ILoadableScript > | Commands [get] |
| Sorted list that contains commands as key-value pairs where the key is command name and the corresponding value is a loadable script object of type that can be executd. More...
|
|
ILoadableScript | this[string commandName] [get, set] |
|
object | Lock [get] |
|
Interpreter that can install commands from dynamically loaded (compiled) scripts and run them. Script loader object of a type is accessed through a property that can be overridden in derived classes, such that a different script loader is used. This is importand because different libraries will be required for compilation in different contexts. Script loader property creates a new script loader on first access.
$A Igor Oct09;
IG.Lib.LoadableScriptInterpreterBase.LoadableScriptInterpreterBase |
( |
| ) |
|
|
inline |
string IG.Lib.LoadableScriptInterpreterBase.RunCommand |
( |
string |
commandName, |
|
|
string[] |
commandArguments |
|
) |
| |
|
inline |
Runs command with the specified name that is loaded on the current object.
- Parameters
-
commandName | Name of the command. |
commandArguments | Command arguments. |
- Returns
- Result of the command.
References IG.Lib.ILoadableScript.Run().
void IG.Lib.LoadableScriptInterpreterBase.AddCommandFromCode |
( |
string |
commandName, |
|
|
string |
code, |
|
|
string |
className, |
|
|
string[] |
initializationArguments |
|
) |
| |
|
inline |
Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the specified script code.
- Parameters
-
commandName | Interpreter's name of the command; added command is installed under this name on the current interpreter. |
code | Script code containing definition of the loadable class that contains executable code of the command. |
className | Name of the class containing loadable script code. |
initializationArguments | Initialization arguments for the created object that will perform execution of the added command. |
void IG.Lib.LoadableScriptInterpreterBase.AddCommandFromCode |
( |
string |
commandName, |
|
|
string |
code, |
|
|
string[] |
initializationArguments |
|
) |
| |
|
inline |
Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the specified script code. Name of the class is extracted from the script code.
- Parameters
-
commandName | Interpreter's name of the command; added command is installed under this name on the current interpreter. |
code | Script code containing definition of the loadable class that contains executable code of the command. |
initializationArguments | Initialization arguments for the created object that will perform execution of the added command. |
void IG.Lib.LoadableScriptInterpreterBase.AddCommandFromFile |
( |
string |
commandName, |
|
|
string |
filePath, |
|
|
string |
className, |
|
|
string[] |
initializationArguments |
|
) |
| |
|
inline |
Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the script code contained in the specified file.
- Parameters
-
commandName | Interpreter's name of the command; added command is installed under this name on the current interpreter. |
filePath | Path to the file containing script code containing definition of the loadable class that contains executable code of the command. |
className | Name of the class containing loadable script code. |
initializationArguments | Initialization arguments for the created object that will perform execution of the added command. |
void IG.Lib.LoadableScriptInterpreterBase.AddCommandFromFile |
( |
string |
commandName, |
|
|
string |
filePath, |
|
|
string[] |
initializationArguments |
|
) |
| |
|
inline |
Adds a new command whose execution is perfomed by an instance of a class that is dynamically compiled from the script code contained in the specified file. Name of the class is extracted from the script code.
- Parameters
-
commandName | Interpreter's name of the command; added command is installed under this name on the current interpreter. |
filePath | Path to the file containing script code containing definition of the loadable class that contains executable code of the command. |
initializationArguments | Initialization arguments for the created object that will perform execution of the added command. |
object IG.Lib.LoadableScriptInterpreterBase._mainLock = new object() |
|
private |
object IG.Lib.LoadableScriptInterpreterBase.Lock |
|
get |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
SortedList<string, ILoadableScript> IG.Lib.LoadableScriptInterpreterBase.Commands |
|
get |
Sorted list that contains commands as key-value pairs where the key is command name and the corresponding value is a loadable script object of type that can be executd.
ILoadableScript IG.Lib.LoadableScriptInterpreterBase.this[string commandName] |
|
getset |
The documentation for this class was generated from the following file: