Exemplo n.º 1
0
    def get_xrefs_list_from_element(cls, element):
        """Helper for get_xrefs_list

           element is a ClassDefItem or MethodDefItem

           At the end of the function, we lost if we worked on
           a class or method but we do not care for now.
        """

        xref_items = element.XREFfrom.items
        log.debug("%d XREFs found" % len(xref_items))
        xrefs = []
        for xref_item in xref_items:
            class_ = xref_item[0].get_class_name()
            method_ = xref_item[0].get_name()
            descriptor_ = xref_item[0].get_descriptor()
            xrefs.append(classmethod2display(class_, method_, descriptor_))
        return xrefs
Exemplo n.º 2
0
    def get_xrefs_list_from_element(cls, element):
        '''Helper for get_xrefs_list

           element is a ClassDefItem or MethodDefItem

           At the end of the function, we lost if we worked on
           a class or method but we do not care for now.
        '''

        xref_items = element.XREFfrom.items
        androconf.debug("%d XREFs found" % len(xref_items))
#        print xref_items
        xrefs = []
        for i in range(len(xref_items)):
            class_ = xref_items[i][0].get_class_name()
            method_ = xref_items[i][0].get_name()
            xrefs.append(classmethod2display(class_, method_))
#        print xrefs
        return xrefs
Exemplo n.º 3
0
    def get_xrefs_list_from_element(cls, element):
        """Helper for get_xrefs_list

           element is a ClassDefItem or MethodDefItem

           At the end of the function, we lost if we worked on
           a class or method but we do not care for now.
        """

        xref_items = element.XREFfrom.items
        log.debug("%d XREFs found" % len(xref_items))
        #        print xref_items
        xrefs = []
        for xref_item in xref_items:
            class_ = xref_item[0].get_class_name()
            method_ = xref_item[0].get_name()
            descriptor_ = xref_item[0].get_descriptor()
            xrefs.append(classmethod2display(class_, method_, descriptor_))
        #        print xrefs
        return xrefs
Exemplo n.º 4
0
    def get_xrefs_list_from_element(cls, element):
        '''Helper for get_xrefs_list

           element is a ClassDefItem or MethodDefItem

           At the end of the function, we lost if we worked on
           a class or method but we do not care for now.
        '''

        xref_items = element.XREFfrom.items
        androconf.debug("%d XREFs found" % len(xref_items))
        #        print xref_items
        xrefs = []
        for i in range(len(xref_items)):
            class_ = xref_items[i][0].get_class_name()
            method_ = xref_items[i][0].get_name()
            xrefs.append(classmethod2display(class_, method_))


#        print xrefs
        return xrefs