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.ConfigurationCreates a new FreeMarker configuration.protected voiddoReport(org.revapi.Report report) protected voidvoidinitialize(org.revapi.AnalysisContext analysis) protected voidsetOutput(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:
setOutputin classorg.revapi.reporter.file.AbstractFileReporter
-
getExtensionId
-
getJSONSchema
-
initialize
- Specified by:
initializein interfaceorg.revapi.configuration.Configurable- Overrides:
initializein 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:
doReportin classorg.revapi.reporter.file.AbstractFileReporter
-
flushReports
- Specified by:
flushReportsin classorg.revapi.reporter.file.AbstractFileReporter- Throws:
IOException
-