private void addSupertypeEdges ( ClassVertex vertex , LinkedList < XClass > workList ) { XClass xclass = vertex . getXClass ( ) ; // Direct superclass ClassDescriptor superclassDescriptor = xclass . getSuperclassDescriptor ( ) ; if ( superclassDescriptor != null ) { addInheritanceEdge ( vertex , superclassDescriptor , false , workList ) ; } // Directly implemented interfaces for ( ClassDescriptor ifaceDesc : xclass . getInterfaceDescriptorList ( ) ) { addInheritanceEdge ( vertex , ifaceDesc , true , workList ) ; } }
Add supertype edges to the InheritanceGraph for given ClassVertex . If any direct supertypes have not been processed add them to the worklist .