@Beta public class TextReporter extends Reporter
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
| Constructor and Description |
|---|
TextReporter(LintCliClient client,
LintCliFlags flags,
java.io.File file,
java.io.Writer writer,
boolean close)
Constructs a new
TextReporter |
TextReporter(LintCliClient client,
LintCliFlags flags,
java.io.Writer writer,
boolean close)
Constructs a new
TextReporter |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isForwardSlashPaths()
Gets whether the reporter should convert paths to forward slashes
|
void |
setForwardSlashPaths(boolean forwardSlashPaths)
Sets whether the reporter should convert paths to forward slashes
|
void |
setWriteStats(boolean writeStats)
Whether the report should include stats.
|
void |
write(com.android.tools.lint.LintStats stats,
java.util.List<Warning> issues)
Write the given warnings into the report
|
createHtmlReporter, createTextReporter, createXmlReporter, getOutput, getTitle, hasAutoFix, isDisplayEmpty, setDisplayEmpty, setStripPrefix, setTitle, setUrlMap, stripPath, writeProjectListpublic TextReporter(@NonNull
LintCliClient client,
@NonNull
LintCliFlags flags,
@NonNull
java.io.Writer writer,
boolean close)
TextReporterclient - the clientflags - the flagswriter - the writer to write intoclose - whether the writer should be closed when donepublic TextReporter(@NonNull
LintCliClient client,
@NonNull
LintCliFlags flags,
@Nullable
java.io.File file,
@NonNull
java.io.Writer writer,
boolean close)
TextReporterclient - the clientflags - the flagsfile - the file corresponding to the writer, if anywriter - the writer to write intoclose - whether the writer should be closed when donepublic void write(@NonNull
com.android.tools.lint.LintStats stats,
java.util.List<Warning> issues)
throws java.io.IOException
Reporterpublic boolean isForwardSlashPaths()
public void setForwardSlashPaths(boolean forwardSlashPaths)
forwardSlashPaths - true to force paths to forward slashespublic void setWriteStats(boolean writeStats)