def __init__(self, signature, callable): self.__signature = signature self.__name = descriptor.call_descriptor(signature) self.__oneway = callable.oneway() self.__arguments = callable.parameters() self.__returntype = callable.returnType() self.__exceptions = callable.raises() self.__contexts = callable.contexts() self.__has_in_args = 0 self.__has_out_args = 0 self.__has_return_value = 0 for argument in self.__arguments: if argument.is_in(): self.__has_in_args = 1 if argument.is_out(): self.__has_out_args = 1 if self.__returntype.kind() != idltype.tk_void: self.__has_return_value = 1 if self.__contexts: self.__context_name = descriptor.\ context_descriptor(self.__signature) self.__ami = callable.ami()