|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.ReportPage
org.jacoco.report.html.SourceFilePage
public class SourceFilePage
Page showing the content of a source file with numbered and highlighted source lines.
Field Summary |
---|
Fields inherited from class org.jacoco.report.html.ReportPage |
---|
context, outputFolder |
Constructor Summary | |
---|---|
SourceFilePage(ICoverageNode node,
ReportPage parent,
ReportOutputFolder outputFolder,
IHTMLReportContext context)
Creates a new visitor in the given context. |
Method Summary | |
---|---|
protected void |
body(HTMLElement body,
ISourceFileLocator sourceFileLocator)
Renders the content of the body element. |
protected void |
content(HTMLElement body,
ISourceFileLocator sourceFileLocator)
Creates the actual content of the page. |
boolean |
exists()
Checks whether this page has actually been rendered. |
protected String |
getFileName()
Specifies the local file name of this page. |
protected ReportOutputFolder |
getFolder(ReportOutputFolder base)
Creates the output folder relative to the given base for this report page. |
protected void |
head(HTMLElement head)
Fills the content of the 'head' element. |
IReportVisitor |
visitChild(ICoverageNode node)
Called for every direct child. |
void |
visitEnd(ISourceFileLocator sourceFileLocator)
Called at the very end, when all child node have been processed and the counters for this node are properly populated. |
Methods inherited from class org.jacoco.report.html.ReportPage |
---|
footer, getLabel, getLink, getNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceFilePage(ICoverageNode node, ReportPage parent, ReportOutputFolder outputFolder, IHTMLReportContext context)
node
- parent
- outputFolder
- context
- Method Detail |
---|
public IReportVisitor visitChild(ICoverageNode node)
IReportVisitor
node
- Node for the child in the implementation class specific to
this type. The counters are may yet be populated.
public void visitEnd(ISourceFileLocator sourceFileLocator) throws IOException
IReportVisitor
visitEnd
in interface IReportVisitor
visitEnd
in class ReportPage
sourceFileLocator
- source file locator valid for this node
IOException
- in case of IO problems with the report writerprotected void content(HTMLElement body, ISourceFileLocator sourceFileLocator) throws IOException
ReportPage
content
in class ReportPage
body
- body tag of the pagesourceFileLocator
- locator for source file content in this context
IOException
- in case of IO problems with the report writerprotected void head(HTMLElement head) throws IOException
ReportPage
head
in class ReportPage
head
- enclosing head element
IOException
- in case of IO problems with the report writerprotected void body(HTMLElement body, ISourceFileLocator sourceFileLocator) throws IOException
ReportPage
body
in class ReportPage
body
- enclosing body elementsourceFileLocator
- locator for source file content in this context
IOException
- in case of IO problems with the report writerprotected String getFileName()
ReportPage
getFileName
in class ReportPage
protected ReportOutputFolder getFolder(ReportOutputFolder base)
ReportPage
getFolder
in class ReportPage
base
- base folder
public boolean exists()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |