C# Class Scorpio.Userdata.ReflectUserdataType

Inheritance: UserdataType
Show file Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Public Methods

Method Description
AddExtensionMethod ( MethodInfo method ) : void
CreateInstance ( ScriptObject parameters ) : object

创建一个实例

GetComputeMethod ( TokenType type ) : ScorpioMethod

获得运算符重载的函数

GetValue ( object obj, string name ) : object

获得一个类变量

ReflectUserdataType ( Script script, Type type ) : System
SetValue ( object obj, string name, ScriptObject value ) : void

设置一个类变量

Private Methods

Method Description
GetMethod ( object obj, string name, UserdataMethod method ) : ScorpioMethod
GetMethod ( string name ) : UserdataMethod
GetVariable ( string name ) : UserdataVariable
InitializeConstructor ( ) : void
InitializeMethods ( ) : void

Method Details

AddExtensionMethod() public method

public AddExtensionMethod ( MethodInfo method ) : void
method System.Reflection.MethodInfo
return void

CreateInstance() public method

创建一个实例
public CreateInstance ( ScriptObject parameters ) : object
parameters Scorpio.ScriptObject
return object

GetComputeMethod() public method

获得运算符重载的函数
public GetComputeMethod ( TokenType type ) : ScorpioMethod
type TokenType
return Scorpio.Variable.ScorpioMethod

GetValue() public method

获得一个类变量
public GetValue ( object obj, string name ) : object
obj object
name string
return object

ReflectUserdataType() public method

public ReflectUserdataType ( Script script, Type type ) : System
script Script
type System.Type
return System

SetValue() public method

设置一个类变量
public SetValue ( object obj, string name, ScriptObject value ) : void
obj object
name string
value Scorpio.ScriptObject
return void