def new_method(self, signature, num_bytecodes, num_literals, num_locals, maximum_number_of_stack_elements): # Allocate a new method and set its class to be the method class result = Method(self._nilObject, num_literals, num_locals, maximum_number_of_stack_elements, num_bytecodes, signature) result.set_class(self._methodClass) # Return the freshly allocated method return result
def new_method(signature, num_bytecodes, literals, num_locals, maximum_number_of_stack_elements): return Method(literals, num_locals, maximum_number_of_stack_elements, num_bytecodes, signature)
def new_method(self, signature, invokable, embedded_block_methods): return Method(signature, invokable, embedded_block_methods, self)