|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.HTMLFormatter
public class HTMLFormatter
Formatter for coverage reports in multiple HTML pages.
Field Summary | |
---|---|
static Comparator<ICoverageNode> |
DEFAULT_SORTING
The default sorting which is absolute not covered instructions and absolute total instructions as the second criterion. |
Constructor Summary | |
---|---|
HTMLFormatter()
New instance with default settings. |
Method Summary | |
---|---|
IReportVisitor |
createReportVisitor(ICoverageNode session)
Creates a visitor for root of a coverage data tree. |
String |
getFooterText()
Returns a string of textual information to include in every page footer. |
ILanguageNames |
getLanguageNames()
Returns the language names call-back used in this report. |
String |
getOutputEncoding()
Returns the encoding of the generated HTML documents. |
Resources |
getResources()
Returns the static resources used in this report. |
CoverageTable |
getTable(ICoverageNode.ElementType type)
Returns a table for rendering of the given type. |
void |
setFooterText(String footerText)
Sets the optional text that should be included in every footer page. |
void |
setLanguageNames(ILanguageNames languageNames)
Sets the implementation for language name display. |
void |
setOutputEncoding(String outputEncoding)
Sets the encoding used for generated HTML pages. |
void |
setReportOutput(IMultiReportOutput output)
Defines the output for files created by the formatter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Comparator<ICoverageNode> DEFAULT_SORTING
Constructor Detail |
---|
public HTMLFormatter()
Method Detail |
---|
public void setReportOutput(IMultiReportOutput output)
output
- file outputpublic void setLanguageNames(ILanguageNames languageNames)
languageNames
- converter for language specific namespublic void setFooterText(String footerText)
footerText
- footer textpublic void setOutputEncoding(String outputEncoding)
outputEncoding
- HTML output encodingpublic ILanguageNames getLanguageNames()
IHTMLReportContext
getLanguageNames
in interface IHTMLReportContext
public Resources getResources()
IHTMLReportContext
getResources
in interface IHTMLReportContext
public CoverageTable getTable(ICoverageNode.ElementType type)
IHTMLReportContext
getTable
in interface IHTMLReportContext
type
- element type
public String getFooterText()
IHTMLReportContext
getFooterText
in interface IHTMLReportContext
public String getOutputEncoding()
IHTMLReportContext
getOutputEncoding
in interface IHTMLReportContext
public IReportVisitor createReportVisitor(ICoverageNode session) throws IOException
IReportFormatter
createReportVisitor
in interface IReportFormatter
session
- session root node
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |