func _getGoField(fieldObj *heap.Object) *heap.Field { extra := fieldObj.Extra() if extra != nil { return extra.(*heap.Field) } root := fieldObj.GetFieldValue("root", "Ljava/lang/reflect/Field;").(*heap.Object) return root.Extra().(*heap.Field) }
func _getGoMethod(methodObj *heap.Object, isConstructor bool) *heap.Method { extra := methodObj.Extra() if extra != nil { return extra.(*heap.Method) } if isConstructor { root := methodObj.GetFieldValue("root", "Ljava/lang/reflect/Constructor;").(*heap.Object) return root.Extra().(*heap.Method) } else { root := methodObj.GetFieldValue("root", "Ljava/lang/reflect/Method;").(*heap.Object) return root.Extra().(*heap.Method) } }
func Unbox(obj *heap.Object, primitiveDescriptor string) interface{} { return obj.GetFieldValue("value", primitiveDescriptor) }
func _getPath(fileObj *heap.Object) string { pathStr := fileObj.GetFieldValue("path", "Ljava/lang/String;").(*heap.Object) return rtda.GoString(pathStr) }
// java.lang.String -> go string func GoString(jStr *heap.Object) string { charArr := jStr.GetFieldValue("value", "[C").(*heap.Object) return _utf16ToString(charArr.Chars()) }