|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.report.internal.html.resources.Resources
public class Resources
Static resource that are included with the coverage report and might be referenced from created HTML pages.
| Field Summary | |
|---|---|
static String |
GREENBAR
The name of the green part of the coverage bar |
static String |
PRETTIFY_SCRIPT
The name of the prettify script |
static String |
PRETTIFY_STYLESHEET
The name of the prettify style sheet |
static String |
REDBAR
The name of the red part of the coverage bar |
static String |
SORT_SCRIPT
The name of the sort script |
static String |
STYLESHEET
The name of the style sheet |
| Constructor Summary | |
|---|---|
Resources(ReportOutputFolder root)
Attaches resources to the report with the given root folder. |
|
| Method Summary | |
|---|---|
void |
copyResources()
Copies all static resources into the report. |
static String |
getElementStyle(org.jacoco.core.analysis.ICoverageNode.ElementType type)
Determines the style sheet class for the given element type. |
String |
getLink(ReportOutputFolder base,
String name)
Returns a relative link to a static resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STYLESHEET
public static final String PRETTIFY_STYLESHEET
public static final String PRETTIFY_SCRIPT
public static final String SORT_SCRIPT
public static final String REDBAR
public static final String GREENBAR
| Constructor Detail |
|---|
public Resources(ReportOutputFolder root)
root - root folder of the report| Method Detail |
|---|
public String getLink(ReportOutputFolder base,
String name)
base - base folder from where the link should be createdname - name of the static resource, see constants in this class
public static String getElementStyle(org.jacoco.core.analysis.ICoverageNode.ElementType type)
type - type of the element
public void copyResources()
throws IOException
IOException - if the resources can't be written to the report
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||