Метод | Описание | |
---|---|---|
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
|
public GetFunctionDefinition ( string name ) : IInvokable | ||
name | string | Name |
Результат | IInvokable |
public GetItem ( string id, bool throwException ) : object | ||
id | string | Variable ID |
throwException | bool | |
Результат | object |
protected GetVariableInternal ( string id, bool searchHierarchy ) : object | ||
id | string | |
searchHierarchy | bool | |
Результат | object |
public ScriptScope ( IScriptScope parent ) : System | ||
parent | IScriptScope | |
Результат | System |
public SetItem ( string id, object value ) : void | ||
id | string | item's id |
value | object | value |
Результат | void |