Class SourcePrinter


  • @Deprecated
    public class SourcePrinter
    extends Object
    Deprecated.
    moved to Prism API plugin
    Renders a source code file into a HTML snippet using Prism.js.
    Author:
    Philippe Arteau, Ullrich Hafner
    • Constructor Detail

      • SourcePrinter

        public SourcePrinter()
        Deprecated.
        Creates a new instance of SourcePrinter.
    • 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 code
        issue - the issue to show
        description - an additional description for the issue
        iconUrl - absolute URL to the small icon of the static analysis tool
        Returns:
        the source code as colorized HTML