Class SourcePrinter
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.SourcePrinter
-
@Deprecated public class SourcePrinter extends Object
Deprecated.moved to Prism API pluginRenders a source code file into a HTML snippet using Prism.js.- Author:
- Philippe Arteau, Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description SourcePrinter()
Deprecated.Creates a new instance ofSourcePrinter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
render(Stream<String> lines, edu.hm.hafner.analysis.Issue issue, String description, String iconUrl)
Deprecated.Creates a colorized HTML snippet with the specified source code.
-
-
-
Constructor Detail
-
SourcePrinter
public SourcePrinter()
Deprecated.Creates a new instance ofSourcePrinter
.
-
-
Method Detail
-
render
public String render(Stream<String> lines, edu.hm.hafner.analysis.Issue issue, String description, String iconUrl)
Deprecated.Creates a colorized HTML snippet with the specified source code. Highlights the specified issue and provides a clickable and collapsible element that shows the details for the issue.- Parameters:
lines
- the lines of the source codeissue
- the issue to showdescription
- an additional description for the issueiconUrl
- absolute URL to the small icon of the static analysis tool- Returns:
- the source code as colorized HTML
-
-