|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.SourceHighlighter
public class SourceHighlighter
Creates a highlighted output of a source file.
Constructor Summary | |
---|---|
SourceHighlighter()
Creates a new highlighter with default settings. |
Method Summary | |
---|---|
void |
render(HTMLElement parent,
ILines lines,
Reader contents)
Highlights the given source file. |
void |
setLanguage(String lang)
Specifies the source language. |
void |
setTabWidth(int width)
Specifies the number of spaces that are represented by a single tab. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceHighlighter()
Method Detail |
---|
public void setTabWidth(int width)
width
- spaces per tabpublic void setLanguage(String lang)
lang
- source language identifierpublic void render(HTMLElement parent, ILines lines, Reader contents) throws IOException
parent
- parent HTML elementlines
- highlighting informationcontents
- contents of the source file
IOException
- problems while reading the source file or writing the output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |