![]() |
BadScript 2
|
The Execution Context. Every execution of a script needs a context the script is running in. It is responsible for defining the global scope and the global variables. More...
Public Member Functions | |
| BadExecutionContext (BadScope scope) | |
| Creates a new Execution Context. | |
| void | Dispose () |
| Disposes the context. | |
| BadObject? | Run (IEnumerable< BadExpression > expressions) |
| Executes an enumeration of expressions. | |
| BadObject | ExecuteScript (IEnumerable< BadExpression > expressions) |
| Executes an enumeration of expressions and returns the last value. | |
| BadObject | ExecuteScript (BadExpression expression) |
| Executes an expression and returns the last value. | |
| IEnumerable< BadObject > | Execute (IEnumerable< BadExpression > expressions) |
| Executes an enumeration of expressions. | |
| IEnumerable< BadObject > | Execute (BadExpression expression) |
| Executes an expression. | |
Static Public Member Functions | |
| static BadExecutionContext | Create (BadInteropExtensionProvider provider) |
| Creates a new Execution Context with an empty scope. | |
Properties | |
| BadScope | Scope [get] |
| The Root Scope of the Context. | |
The Execution Context. Every execution of a script needs a context the script is running in. It is responsible for defining the global scope and the global variables.
Definition at line 15 of file BadExecutionContext.cs.
| BadScript2.Runtime.BadExecutionContext.BadExecutionContext | ( | BadScope | scope | ) |
Creates a new Execution Context.
| scope | The Root Scope |
Definition at line 21 of file BadExecutionContext.cs.
|
static |
Creates a new Execution Context with an empty scope.
Definition at line 43 of file BadExecutionContext.cs.
| void BadScript2.Runtime.BadExecutionContext.Dispose | ( | ) |
Disposes the context.
Definition at line 34 of file BadExecutionContext.cs.
| IEnumerable< BadObject > BadScript2.Runtime.BadExecutionContext.Execute | ( | BadExpression | expression | ) |
Executes an expression.
| expression | The expression to execute. |
Definition at line 114 of file BadExecutionContext.cs.
| IEnumerable< BadObject > BadScript2.Runtime.BadExecutionContext.Execute | ( | IEnumerable< BadExpression > | expressions | ) |
Executes an enumeration of expressions.
| expressions | Expression Enumeration |
Definition at line 104 of file BadExecutionContext.cs.
| BadObject BadScript2.Runtime.BadExecutionContext.ExecuteScript | ( | BadExpression | expression | ) |
Executes an expression and returns the last value.
| expression | The expression to execute. |
Definition at line 87 of file BadExecutionContext.cs.
| BadObject BadScript2.Runtime.BadExecutionContext.ExecuteScript | ( | IEnumerable< BadExpression > | expressions | ) |
Executes an enumeration of expressions and returns the last value.
| expressions | Expression Enumeration |
Definition at line 69 of file BadExecutionContext.cs.
| BadObject? BadScript2.Runtime.BadExecutionContext.Run | ( | IEnumerable< BadExpression > | expressions | ) |
Executes an enumeration of expressions.
| expressions | Expression Enumeration |
Definition at line 54 of file BadExecutionContext.cs.
|
get |