@Beta public class HtmlReporter 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.
| Modifier and Type | Field and Description |
|---|---|
protected LintCliFlags |
flags |
protected java.io.Writer |
writer |
| Constructor and Description |
|---|
HtmlReporter(LintCliClient client,
java.io.File output,
LintCliFlags flags)
Creates a new
HtmlReporter |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> |
computeMissingIssues(java.util.List<Warning> warnings) |
void |
write(com.android.tools.lint.LintStats stats,
java.util.List<Warning> issues)
Write the given warnings into the report
|
void |
writeCard(java.lang.Runnable appender,
java.lang.String title,
boolean dismissible,
java.lang.String cardId,
com.android.tools.lint.HtmlReporter.Action... actions) |
void |
writeCard(java.lang.Runnable appender,
java.lang.String title,
java.lang.String cardId) |
void |
writeCardAction(com.android.tools.lint.HtmlReporter.Action... actions) |
void |
writeCardFooter() |
void |
writeCardHeader(java.lang.String title,
java.lang.String cardId) |
void |
writeChip(java.lang.String text) |
void |
writeProjectList(com.android.tools.lint.LintStats stats,
java.util.List<com.android.tools.lint.MultiProjectHtmlReporter.ProjectEntry> projects)
Writes a project overview table
|
createHtmlReporter, createTextReporter, createXmlReporter, getOutput, getTitle, hasAutoFix, isDisplayEmpty, setDisplayEmpty, setStripPrefix, setTitle, setUrlMap, stripPathprotected final java.io.Writer writer
protected final LintCliFlags flags
public HtmlReporter(@NonNull
LintCliClient client,
@NonNull
java.io.File output,
@NonNull
LintCliFlags flags)
throws java.io.IOException
HtmlReporterclient - the associated clientoutput - the output fileflags - the command line flagsjava.io.IOException - if an error occurspublic void write(@NonNull
com.android.tools.lint.LintStats stats,
java.util.List<Warning> issues)
throws java.io.IOException
Reporterprotected java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> computeMissingIssues(java.util.List<Warning> warnings)
public void writeCardHeader(@Nullable
java.lang.String title,
@NonNull
java.lang.String cardId)
public void writeCardAction(@NonNull
com.android.tools.lint.HtmlReporter.Action... actions)
public void writeCardFooter()
public void writeCard(@NonNull
java.lang.Runnable appender,
@Nullable
java.lang.String title,
@Nullable
java.lang.String cardId)
public void writeChip(@NonNull
java.lang.String text)
public void writeCard(@NonNull
java.lang.Runnable appender,
@Nullable
java.lang.String title,
boolean dismissible,
java.lang.String cardId,
com.android.tools.lint.HtmlReporter.Action... actions)
public void writeProjectList(@NonNull
com.android.tools.lint.LintStats stats,
@NonNull
java.util.List<com.android.tools.lint.MultiProjectHtmlReporter.ProjectEntry> projects)
throws java.io.IOException
ReporterwriteProjectList in class Reporterstats - the vital statistics for the lint reportprojects - the projects to writejava.io.IOException