Class TextReporter
java.lang.Object
org.revapi.reporter.file.AbstractFileReporter
org.revapi.reporter.text.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
-
Field Summary
Fields inherited from class org.revapi.reporter.file.AbstractFileReporter
analysis, file, keepEmptyFile, minCriticality, minLevel, output, shouldClose
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected freemarker.template.Configuration
Creates a new FreeMarker configuration.protected void
doReport
(org.revapi.Report report) protected void
void
initialize
(org.revapi.AnalysisContext analysis) protected void
setOutput
(PrintWriter wrt) Methods inherited from class org.revapi.reporter.file.AbstractFileReporter
close, createOutputWriter, getReportsByElementOrderComparator, isReportable, report
-
Constructor Details
-
TextReporter
public TextReporter()
-
-
Method Details
-
setOutput
- Overrides:
setOutput
in classorg.revapi.reporter.file.AbstractFileReporter
-
getExtensionId
-
getJSONSchema
-
initialize
- Specified by:
initialize
in interfaceorg.revapi.configuration.Configurable
- Overrides:
initialize
in classorg.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
- Specified by:
doReport
in classorg.revapi.reporter.file.AbstractFileReporter
-
flushReports
- Specified by:
flushReports
in classorg.revapi.reporter.file.AbstractFileReporter
- Throws:
IOException
-