Property | Type | Description | |
---|---|---|---|
visitor |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
OnBreak ( object sender, DebugInformation info ) : void | ||
OnStep ( object sender, DebugInformation info ) : void |
Method | Description | |
---|---|---|
JintEngine ( ) | ||
JintEngine ( Jint.Options options ) |
public AddPermission ( IPermission perm ) : |
||
perm | IPermission | |
return |
public CallFunction ( JsFunction function ) : object | ||
function | JsFunction | |
return | object |
public static Compile ( string source, bool debugInformation ) : Program | ||
source | string | |
debugInformation | bool | |
return | Program |
public static EscapteStringLiteral ( string value ) : string | ||
value | string | The string literal to espace |
return | string |
public static HasErrors ( string script, string &errors ) : bool | ||
script | string | |
errors | string | |
return | bool |
public static Load ( |
||
engine | ||
s | Stream | |
return | void |
protected OnBreak ( object sender, DebugInformation info ) : void | ||
sender | object | |
info | DebugInformation | |
return | void |
protected OnStep ( object sender, DebugInformation info ) : void | ||
sender | object | |
info | DebugInformation | |
return | void |
public Run ( Program program ) : object | ||
program | Program | The expression tree to execute |
return | 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. |
return | object |
public Run ( TextReader reader ) : object | ||
reader | TextReader | The TextReader to read script from |
return | 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. |
return | object |
public Run ( string script ) : object | ||
script | string | The script to execute |
return | 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. |
return | object |
public SetDebugMode ( bool debugMode ) : |
||
debugMode | bool | |
return |
public SetFunction ( string name, Delegate function ) : |
||
name | string | |
function | Delegate | |
return |
public SetFunction ( string name, JsFunction function ) : |
||
name | string | |
function | JsFunction | |
return |
public SetMaxRecursions ( int maxRecursions ) : |
||
maxRecursions | int | |
return |
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 |
return |
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 |
return |
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 |
return |
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 |
return |
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 |
return |