Свойство | Тип | Описание | |
---|---|---|---|
visitor |
Метод | Описание | |
---|---|---|
AddPermission ( IPermission perm ) : |
||
CallFunction ( JsFunction function ) : object | ||
CallFunction ( string name ) : object | ||
Compile ( string source, bool debugInformation ) : Program | ||
DisableSecurity ( ) : |
||
EnableSecurity ( ) : |
||
EscapteStringLiteral ( string value ) : string |
Escapes a JavaScript string literal
|
|
HasErrors ( string script, string &errors ) : bool |
Pre-compiles the expression in order to check syntax errors. If errors are detected, the Error property contains the message.
|
|
Load ( Stream s ) : |
||
Load ( |
||
Run ( Program program ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Run ( Program program, bool unwrap ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Run ( TextReader reader ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Run ( TextReader reader, bool unwrap ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Run ( string script ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Run ( string script, bool unwrap ) : object |
Runs a set of JavaScript statements and optionally returns a value if return is called
|
|
Save ( Stream s ) : void | ||
SetDebugMode ( bool debugMode ) : |
||
SetFunction ( string name, Delegate function ) : |
||
SetFunction ( string name, JsFunction function ) : |
||
SetMaxRecursions ( int maxRecursions ) : |
Defines the max allowed number of recursions in the script
|
|
SetParameter ( string name, DateTime value ) : |
Defines an external DateTime value to be available inside the script
|
|
SetParameter ( string name, bool value ) : |
Defines an external Boolean value to be available inside the script
|
|
SetParameter ( string name, double value ) : |
Defines an external Double value to be available inside the script
|
|
SetParameter ( string name, int value ) : |
Defines an external Int32 value to be available inside the script
|
|
SetParameter ( string name, string value ) : |
Defines an external String instance to be available inside the script
|
Метод | Описание | |
---|---|---|
OnBreak ( object sender, DebugInformation info ) : void | ||
OnStep ( object sender, DebugInformation info ) : void |
Метод | Описание | |
---|---|---|
JintEngine ( ) | ||
JintEngine ( Jint.Options options ) |
public AddPermission ( IPermission perm ) : |
||
perm | IPermission | |
Результат |
public CallFunction ( JsFunction function ) : object | ||
function | JsFunction | |
Результат | object |
public CallFunction ( string name ) : object | ||
name | string | |
Результат | object |
public static Compile ( string source, bool debugInformation ) : Program | ||
source | string | |
debugInformation | bool | |
Результат | Program |
public static EscapteStringLiteral ( string value ) : string | ||
value | string | The string literal to espace |
Результат | string |
public static HasErrors ( string script, string &errors ) : bool | ||
script | string | |
errors | string | |
Результат | bool |
public static Load ( Stream s ) : |
||
s | Stream | |
Результат |
public static Load ( |
||
engine | ||
s | Stream | |
Результат | void |
protected OnBreak ( object sender, DebugInformation info ) : void | ||
sender | object | |
info | DebugInformation | |
Результат | void |
protected OnStep ( object sender, DebugInformation info ) : void | ||
sender | object | |
info | DebugInformation | |
Результат | void |
public Run ( Program program ) : object | ||
program | Program | The expression tree to execute |
Результат | object |
public Run ( Program program, bool unwrap ) : object | ||
program | Program | The expression tree to execute |
unwrap | bool | Whether to unwrap the returned value to a CLR instance. |
Результат | object |
public Run ( TextReader reader ) : object | ||
reader | TextReader | The TextReader to read script from |
Результат | object |
public Run ( TextReader reader, bool unwrap ) : object | ||
reader | TextReader | The TextReader to read script from |
unwrap | bool | Whether to unwrap the returned value to a CLR instance. |
Результат | object |
public Run ( string script ) : object | ||
script | string | The script to execute |
Результат | object |
public Run ( string script, bool unwrap ) : object | ||
script | string | The script to execute |
unwrap | bool | Whether to unwrap the returned value to a CLR instance. |
Результат | object |
public SetDebugMode ( bool debugMode ) : |
||
debugMode | bool | |
Результат |
public SetFunction ( string name, Delegate function ) : |
||
name | string | |
function | Delegate | |
Результат |
public SetFunction ( string name, JsFunction function ) : |
||
name | string | |
function | JsFunction | |
Результат |
public SetMaxRecursions ( int maxRecursions ) : |
||
maxRecursions | int | |
Результат |
public SetParameter ( string name, DateTime value ) : |
||
name | string | Local name of the DateTime value during the execution of the script |
value | DateTime | Available DateTime value |
Результат |
public SetParameter ( string name, bool value ) : |
||
name | string | Local name of the Boolean value during the execution of the script |
value | bool | Available Boolean value |
Результат |
public SetParameter ( string name, double value ) : |
||
name | string | Local name of the Double value during the execution of the script |
value | double | Available Double value |
Результат |
public SetParameter ( string name, int value ) : |
||
name | string | Local name of the Int32 value during the execution of the script |
value | int | Available Int32 value |
Результат |
public SetParameter ( string name, string value ) : |
||
name | string | Local name of the String instance during the execution of the script |
value | string | Available String instance |
Результат |