func _getGoField(fieldObj *rtc.Obj) *rtc.Field { extra := fieldObj.Extra() if extra != nil { return extra.(*rtc.Field) } root := fieldObj.GetFieldValue("root", "Ljava/lang/reflect/Field;").(*rtc.Obj) return root.Extra().(*rtc.Field) }
func _extraThread(threadObj *rtc.Obj) *rtda.Thread { threadObj.RLockState() defer threadObj.RUnlockState() extra := threadObj.Extra() if extra == nil { return nil } else { return extra.(*rtda.Thread) } }
func _getGoMethod(methodObj *rtc.Obj, isConstructor bool) *rtc.Method { extra := methodObj.Extra() if extra != nil { return extra.(*rtc.Method) } if isConstructor { root := methodObj.GetFieldValue("root", "Ljava/lang/reflect/Constructor;").(*rtc.Obj) return root.Extra().(*rtc.Method) } else { root := methodObj.GetFieldValue("root", "Ljava/lang/reflect/Method;").(*rtc.Obj) return root.Extra().(*rtc.Method) } }