Package aQute.bnd.make.coverage
Class Coverage
java.lang.Object
aQute.bnd.make.coverage.Coverage
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map<Clazz.MethodDef,
List<Clazz.MethodDef>> buildCatalog
(Collection<Clazz> sources) private static void
crossRef
(Collection<Clazz> source, Map<Clazz.MethodDef, List<Clazz.MethodDef>> catalog) static Map<Clazz.MethodDef,
List<Clazz.MethodDef>> getCrossRef
(Collection<Clazz> source, Collection<Clazz> dest) Create a cross reference table from source to dest.
-
Constructor Details
-
Coverage
public Coverage()
-
-
Method Details
-
getCrossRef
public static Map<Clazz.MethodDef,List<Clazz.MethodDef>> getCrossRef(Collection<Clazz> source, Collection<Clazz> dest) throws Exception Create a cross reference table from source to dest.- Parameters:
source
- The methods that refer to destdest
- The methods that are being referred to- Returns:
- A mapping of source methods to destination methods.
- Throws:
Exception
-
crossRef
private static void crossRef(Collection<Clazz> source, Map<Clazz.MethodDef, List<Clazz.MethodDef>> catalog) throws Exception- Throws:
Exception
-
buildCatalog
private static Map<Clazz.MethodDef,List<Clazz.MethodDef>> buildCatalog(Collection<Clazz> sources) throws Exception - Throws:
Exception
-