net.sourceforge.cobertura.reporting.html
Class JavaToHtml
java.lang.Object
net.sourceforge.cobertura.reporting.html.JavaToHtml
private static String | escapeEntity(char character)
|
String | process(String text) - Add HTML colorization to a block of Java code.
|
private String | processLine(String line) - Add HTML colorization to a single line of Java code.
|
void | reset() - Reset the state of this Java parser.
|
escapeEntity
private static String escapeEntity(char character)
process
public String process(String text)
Add HTML colorization to a block of Java code.
text
- The block of Java code.
- The same block of Java code with added span tags.
Newlines are preserved.
processLine
private String processLine(String line)
Add HTML colorization to a single line of Java code.
line
- One line of Java code.
- The same line of Java code with added span tags.
reset
public void reset()
Reset the state of this Java parser. Call this if you have
been parsing one Java file and you want to begin parsing
another Java file.