def __init__(self, db, classty, name, jargtypes, jrettype, graph, is_static): """ classty: the JvmClassType object this is a part of (even static functions have a class) name: the name of the function jargtypes: JvmType of each argument jrettype: JvmType this function returns graph: the graph representing the body of the function is_static: boolean flag indicate whether func is static (!) """ OOFunction.__init__(self, db, graph, name, not is_static) self.classty = classty self.jargtypes = jargtypes self.jrettype = jrettype self._block_labels = {}
def __init__(self, *args, **kwargs): OOFunction.__init__(self, *args, **kwargs) if hasattr(self.db.genoo, 'exceptiontransformer'): self.auto_propagate_exceptions = False namespace = getattr(self.graph.func, '_namespace_', None) if namespace: if '.' in namespace: self.namespace, self.classname = namespace.rsplit('.', 1) else: self.namespace = None self.classname = namespace else: self.namespace = None self.classname = None