Class ElementIndex
java.lang.Object
org.jacoco.report.internal.html.index.ElementIndex
- All Implemented Interfaces:
IIndexUpdate
An index over all report pages that allows queries according to certain
criteria.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElementIndex
(ReportOutputFolder baseFolder) Creates a new empty index for a HTML report. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a class to the index.getLinkToClass
(long classid) Returns the link to the class with the given identifier if a corresponding page exists.
-
Field Details
-
baseFolder
-
allClasses
-
-
Constructor Details
-
ElementIndex
Creates a new empty index for a HTML report.- Parameters:
baseFolder
- base folder where all links are calculated relative to
-
-
Method Details
-
getLinkToClass
Returns the link to the class with the given identifier if a corresponding page exists.- Parameters:
classid
- class identifier- Returns:
- Link or null
-
addClass
Description copied from interface:IIndexUpdate
Adds a class to the index.- Specified by:
addClass
in interfaceIIndexUpdate
- Parameters:
link
- link to the classclassid
- identifier of the class
-