C# Class ScriptNET.Runtime.ScriptContext

Base implementation of ScriptContext object
Inheritance: IScriptContext
显示文件 Open project: Zepheus/Fiesta_Utils Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CreateScope ( ) : void

Creates new default nested scope

CreateScope ( IScriptScope scope ) : void

Replace existing scope with new one

GetFunctionDefinition ( string name ) : IInvokable

Finds function definition in current scope

GetItem ( string id, bool throwException ) : object
IsBreak ( ) : bool

Break state

IsContinue ( ) : bool

Continue state

IsReturn ( ) : bool

Return state

RemoveLocalScope ( ) : void

Remove Local Scope

ScriptContext ( ) : System

Creates new Script Context with Default scope

SetBreak ( bool val ) : void

Set break state of run-time

SetContinue ( bool val ) : void

Set continue state of run-time

SetItem ( string id, object value ) : void
SetReturn ( bool val ) : void

Set return state of run-time

Method Details

CreateScope() public method

Creates new default nested scope
public CreateScope ( ) : void
return void

CreateScope() public method

Replace existing scope with new one
public CreateScope ( IScriptScope scope ) : void
scope IScriptScope
return void

GetFunctionDefinition() public method

Finds function definition in current scope
public GetFunctionDefinition ( string name ) : IInvokable
name string function name
return IInvokable

GetItem() public method

public GetItem ( string id, bool throwException ) : object
id string
throwException bool
return object

IsBreak() public method

Break state
public IsBreak ( ) : bool
return bool

IsContinue() public method

Continue state
public IsContinue ( ) : bool
return bool

IsReturn() public method

Return state
public IsReturn ( ) : bool
return bool

RemoveLocalScope() public method

Remove Local Scope
public RemoveLocalScope ( ) : void
return void

ScriptContext() public method

Creates new Script Context with Default scope
public ScriptContext ( ) : System
return System

SetBreak() public method

Set break state of run-time
public SetBreak ( bool val ) : void
val bool true or false
return void

SetContinue() public method

Set continue state of run-time
public SetContinue ( bool val ) : void
val bool true or false
return void

SetItem() public method

public SetItem ( string id, object value ) : void
id string
value object
return void

SetReturn() public method

Set return state of run-time
public SetReturn ( bool val ) : void
val bool true or false
return void