C# Class MsieJavaScriptEngine.JsRt.ChakraJsRtJsEngineBase

Base class of the Chakra JsRT JavaScript engine
Inheritance: IInnerJsEngine
Mostrar archivo Open project: Taritsyn/MsieJavaScriptEngine

Protected Properties

Property Type Description
_dispatcher ScriptDispatcher
_disposedFlag StatedFlag
_enableDebugging bool
_engineMode JsEngineMode
_engineModeName string
_externalObjectFinalizeCallback JsObjectFinalizeCallback
_externalObjects HashSet

Public Methods

Method Description
CallFunction ( string functionName ) : object
CollectGarbage ( ) : void
Dispose ( ) : void
EmbedHostObject ( string itemName, object value ) : void
EmbedHostType ( string itemName, Type type ) : void
Evaluate ( string expression ) : object
Execute ( string code ) : void
GetVariableValue ( string variableName ) : object
HasVariable ( string variableName ) : bool
RemoveVariable ( string variableName ) : void
SetVariableValue ( string variableName, object value ) : void

Protected Methods

Method Description
ChakraJsRtJsEngineBase ( JsEngineMode engineMode, bool enableDebugging ) : System.Collections.Generic

Constructs an instance of the Chakra JsRT JavaScript engine

Dispose ( bool disposing ) : void

Destroys object

InnerStartDebugging ( ) : void
StartDebugging ( ) : void

Starts debugging

Private Methods

Method Description
ExternalObjectFinalizeCallback ( IntPtr data ) : void

Method Details

CallFunction() public abstract method

public abstract CallFunction ( string functionName ) : object
functionName string
return object

ChakraJsRtJsEngineBase() protected method

Constructs an instance of the Chakra JsRT JavaScript engine
protected ChakraJsRtJsEngineBase ( JsEngineMode engineMode, bool enableDebugging ) : System.Collections.Generic
engineMode JsEngineMode JavaScript engine mode
enableDebugging bool Flag for whether to enable script debugging features
return System.Collections.Generic

CollectGarbage() public abstract method

public abstract CollectGarbage ( ) : void
return void

Dispose() public abstract method

public abstract Dispose ( ) : void
return void

Dispose() protected method

Destroys object
protected Dispose ( bool disposing ) : void
disposing bool Flag, allowing destruction of /// managed objects contained in fields of class
return void

EmbedHostObject() public abstract method

public abstract EmbedHostObject ( string itemName, object value ) : void
itemName string
value object
return void

EmbedHostType() public abstract method

public abstract EmbedHostType ( string itemName, Type type ) : void
itemName string
type System.Type
return void

Evaluate() public abstract method

public abstract Evaluate ( string expression ) : object
expression string
return object

Execute() public abstract method

public abstract Execute ( string code ) : void
code string
return void

GetVariableValue() public abstract method

public abstract GetVariableValue ( string variableName ) : object
variableName string
return object

HasVariable() public abstract method

public abstract HasVariable ( string variableName ) : bool
variableName string
return bool

InnerStartDebugging() protected abstract method

protected abstract InnerStartDebugging ( ) : void
return void

RemoveVariable() public abstract method

public abstract RemoveVariable ( string variableName ) : void
variableName string
return void

SetVariableValue() public abstract method

public abstract SetVariableValue ( string variableName, object value ) : void
variableName string
value object
return void

StartDebugging() protected method

Starts debugging
protected StartDebugging ( ) : void
return void

Property Details

_dispatcher protected_oe property

Script dispatcher
protected ScriptDispatcher _dispatcher
return ScriptDispatcher

_disposedFlag protected_oe property

Flag that object is destroyed
protected StatedFlag _disposedFlag
return StatedFlag

_enableDebugging protected_oe property

Flag for whether to enable script debugging features
protected bool _enableDebugging
return bool

_engineMode protected_oe property

JavaScript engine mode
protected JsEngineMode _engineMode
return JsEngineMode

_engineModeName protected_oe property

Name of JavaScript engine mode
protected string _engineModeName
return string

_externalObjectFinalizeCallback protected_oe property

Callback for finalization of external object
protected JsObjectFinalizeCallback _externalObjectFinalizeCallback
return JsObjectFinalizeCallback

_externalObjects protected_oe property

Set of external objects
protected HashSet _externalObjects
return HashSet