Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MakeVirtual = func(__proto__ interface{}, properties properties) {
makeVirtual(__proto__.(prototype), properties)
}
Functions ¶
func FuncAnalyse ¶
func FuncAnalyse(m interface{})
func GetFunctionFullName ¶
func GetFunctionFullName(i interface{}) string
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
Types ¶
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
抽象类,因为interface没有成员变量 通过class,将外部结构体转为接口
func (*Class) Invoke ¶
func (c *Class) Invoke(method interface{}, args ...interface{}) []interface{}
func (*Class) InvokeByName ¶
call virtual method by name 后续增加虚函数表缓存策略
func (*Class) SetProperities ¶
func (c *Class) SetProperities(properties properties)
Click to show internal directories.
Click to hide internal directories.