C# 클래스 ScriptNET.Runtime.ScriptScope

Script Scope represents a tree of local scopes. Scopes stores variables and types tables. Run-time queries ScriptScope through ScriptContext for: Resolving names of types and variables; Resolving names of functions; Adding new function into scope; Assigning values to variables.
상속: IScriptScope
파일 보기 프로젝트 열기: Zepheus/Fiesta_Utils 1 사용 예제들

공개 메소드들

메소드 설명
Clean ( ) : void

Cleans Scope (Removes items)

GetFunctionDefinition ( string name ) : IInvokable

Gets Invokable object (Function) by a given name

GetItem ( string id, bool throwException ) : object

Returns value of the variable. Throws ScriptIdNotFoundException

HasVariable ( string id ) : bool

Returns true if excatly this scope has variable with given id

ScriptScope ( ) : System

Default Constructor

ScriptScope ( IScriptScope parent ) : System
SetItem ( string id, object value ) : void

Sets Item: variable or type

보호된 메소드들

메소드 설명
GetVariableInternal ( string id, bool searchHierarchy ) : object

Searches the scope hierarchy for the given id, should return NoVariable if it is not found

메소드 상세

Clean() 공개 메소드

Cleans Scope (Removes items)
public Clean ( ) : void
리턴 void

GetFunctionDefinition() 공개 메소드

Gets Invokable object (Function) by a given name
public GetFunctionDefinition ( string name ) : IInvokable
name string Name
리턴 IInvokable

GetItem() 공개 메소드

Returns value of the variable. Throws ScriptIdNotFoundException
public GetItem ( string id, bool throwException ) : object
id string Variable ID
throwException bool
리턴 object

GetVariableInternal() 보호된 메소드

Searches the scope hierarchy for the given id, should return NoVariable if it is not found
protected GetVariableInternal ( string id, bool searchHierarchy ) : object
id string
searchHierarchy bool
리턴 object

HasVariable() 공개 메소드

Returns true if excatly this scope has variable with given id
public HasVariable ( string id ) : bool
id string
리턴 bool

ScriptScope() 공개 메소드

Default Constructor
public ScriptScope ( ) : System
리턴 System

ScriptScope() 공개 메소드

public ScriptScope ( IScriptScope parent ) : System
parent IScriptScope
리턴 System

SetItem() 공개 메소드

Sets Item: variable or type
public SetItem ( string id, object value ) : void
id string item's id
value object value
리턴 void