def _add_methods(self): from pypy.translator.jvm.generator import Method for methname, methspec in self.OOTYPE._class_._methods.items(): argtypes = [self.db.annotation_to_cts(arg._type) for arg in methspec.args] restype = self.db.annotation_to_cts(methspec.retval._type) self.methods[methname] = Method.v(self, methname, argtypes, restype)
def _add_methods(self): from pypy.translator.jvm.generator import Method for methname, methspec in self.OOTYPE._class_._methods.items(): argtypes = [ self.db.annotation_to_cts(arg._type) for arg in methspec.args ] restype = self.db.annotation_to_cts(methspec.retval._type) self.methods[methname] = Method.v(self, methname, argtypes, restype)
def putter_method_obj(node): return Method.v(node, methodnm + "_p", [fieldty], jVoid)
def getter_method_obj(node): return Method.v(node, methodnm + "_g", [], fieldty)
def putter_method_obj(node): return Method.v(node, methodnm+"_p", [fieldty], jVoid)
def getter_method_obj(node): return Method.v(node, methodnm+"_g", [], fieldty)