Class Coverage


  • public class Coverage
    extends java.lang.Object
    This class can create a coverage table between two classspaces. The destination class space is used to create a table of methods. All source methods that refer to a specific dest are then filled into the table.
    • Constructor Detail

      • Coverage

        public Coverage()
    • Method Detail

      • getCrossRef

        public static java.util.Map<Clazz.MethodDef,​java.util.List<Clazz.MethodDef>> getCrossRef​(java.util.Collection<Clazz> source,
                                                                                                       java.util.Collection<Clazz> dest)
                                                                                                throws java.lang.Exception
        Create a cross reference table from source to dest.
        Parameters:
        source - The methods that refer to dest
        dest - The methods that are being referred to
        Returns:
        A mapping of source methods to destination methods.
        Throws:
        java.lang.Exception
      • crossRef

        private static void crossRef​(java.util.Collection<Clazz> source,
                                     java.util.Map<Clazz.MethodDef,​java.util.List<Clazz.MethodDef>> catalog)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • buildCatalog

        private static java.util.Map<Clazz.MethodDef,​java.util.List<Clazz.MethodDef>> buildCatalog​(java.util.Collection<Clazz> sources)
                                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception