Exemple #1
0
    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)
Exemple #2
0
 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)
Exemple #3
0
 def putter_method_obj(node):
     return Method.v(node, methodnm + "_p", [fieldty], jVoid)
Exemple #4
0
 def getter_method_obj(node):
     return Method.v(node, methodnm + "_g", [], fieldty)
Exemple #5
0
 def putter_method_obj(node):
     return Method.v(node, methodnm+"_p", [fieldty], jVoid)
Exemple #6
0
 def getter_method_obj(node):
     return Method.v(node, methodnm+"_g", [], fieldty)