- def map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, holds_ref):
+ def map_nullable_type(self, fn_arg, print_void, ret_arr_len, is_free, holds_ref):
+ ty_info = self.java_c_types(fn_arg, ret_arr_len)
+ mapped_info = self.map_type_with_info(ty_info, print_void, ret_arr_len, is_free, holds_ref, True)
+ return mapped_info
+
+ def map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, holds_ref, is_nullable):
+ mapped_info = self._do_map_type_with_info(ty_info, print_void, ret_arr_len, is_free, holds_ref, is_nullable)
+ if is_nullable:
+ mapped_info.nullable = True
+ return mapped_info
+
+ def _do_map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, holds_ref, is_nullable):