def _create_sig(self, containing_class, name, arg_types, ret_type): """From a given class name, and method call node, create a JVM style method signature string. classed_refed is the class the field was referenced from, class_ is the class it's defined in. """ sig = containing_class + '/' + name try: # Add the params to the method_spec method_spec = '(' for type_ in arg_types: method_spec += get_jvm_type(type_) method_spec += ')' except AttributeError: # If there are no parameters method_spec = '()' method_spec += get_jvm_type(ret_type) sig += method_spec return sig
def _create_sig(self, containing_class, name, arg_types, ret_type): """From a given class name, and method call node, create a JVM style method signature string. classed_refed is the class the field was referenced from, class_ is the class it's defined in. """ sig = containing_class + '/' + name try: # Add the params to the method_spec method_spec = '(' for type_ in arg_types: method_spec += get_jvm_type(type_) method_spec += ')' except AttributeError: # If there are no parameters method_spec = '()' method_spec += get_jvm_type(ret_type) sig += method_spec return sig
def _create_sig(self, class_, arg_types): """From a given class name, and object creation node, create a JVM style constructor signature string. """ sig = class_ + '/<init>' try: # Assume it has parameters method_spec = '(' for type_ in arg_types: method_spec += get_jvm_type(type_) method_spec += ')V' except AttributeError: # If there are no parameters method_spec = '()V' return sig + method_spec
def _create_sig(self, class_, arg_types): """From a given class name, and object creation node, create a JVM style constructor signature string. """ sig = class_ + '/<init>' try: # Assume it has parameters method_spec = '(' for type_ in arg_types: method_spec += get_jvm_type(type_) method_spec += ')V' except AttributeError: # If there are no parameters method_spec = '()V' return sig + method_spec
def _create_sig(self, containing_class, name, type_): """From a given class and field name, create a JVM style field signature string. classed_refed is the class the field was referenced from, class_ is the class it's defined in. """ return containing_class + '/' + name + ' ' + get_jvm_type(type_)
def _create_sig(self, containing_class, name, type_): """From a given class and field name, create a JVM style field signature string. classed_refed is the class the field was referenced from, class_ is the class it's defined in. """ return containing_class + '/' + name + ' ' + get_jvm_type(type_)