Class TextReporter

  • All Implemented Interfaces:
    AutoCloseable, org.revapi.configuration.Configurable, org.revapi.Reporter

    public class TextReporter
    extends org.revapi.reporter.file.AbstractFileReporter
    Since:
    0.1
    Author:
    Lukas Krejci
    • Constructor Detail

      • TextReporter

        public TextReporter()
    • Method Detail

      • setOutput

        protected void setOutput​(PrintWriter wrt)
        Overrides:
        setOutput in class org.revapi.reporter.file.AbstractFileReporter
      • initialize

        public void initialize​(@Nonnull
                               org.revapi.AnalysisContext analysis)
        Specified by:
        initialize in interface org.revapi.configuration.Configurable
        Overrides:
        initialize in class org.revapi.reporter.file.AbstractFileReporter
      • createFreeMarkerConfiguration

        protected freemarker.template.Configuration createFreeMarkerConfiguration()
        Creates a new FreeMarker configuration. By default, it is configured as follows:
        • compatibility level is set to 2.3.23
        • the object wrapper is configured to expose fields
        • API builtins are enabled
        • there are 2 template loaders - 1 for loading templates from /META-INF using a classloader and a second one to load templates from files.
        Returns:
      • doReport

        protected void doReport​(@Nonnull
                                org.revapi.Report report)
        Specified by:
        doReport in class org.revapi.reporter.file.AbstractFileReporter
      • flushReports

        protected void flushReports()
                             throws IOException
        Specified by:
        flushReports in class org.revapi.reporter.file.AbstractFileReporter
        Throws:
        IOException