com.android.tools.lint
Class HtmlReporter
java.lang.Object
com.android.tools.lint.Reporter
com.android.tools.lint.HtmlReporter
- Direct Known Subclasses:
- MultiProjectHtmlReporter
@Beta
public class HtmlReporter
- extends Reporter
A reporter which emits lint results into an HTML report.
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.
Field Summary |
protected java.io.Writer |
mWriter
|
Method Summary |
protected java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> |
computeMissingIssues(java.util.List<Warning> warnings)
|
void |
write(int errorCount,
int warningCount,
java.util.List<Warning> issues)
Write the given warnings into the report |
protected void |
writeStyleSheet()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mWriter
protected final java.io.Writer mWriter
HtmlReporter
public HtmlReporter(LintCliClient client,
java.io.File output)
throws java.io.IOException
- Creates a new
HtmlReporter
- Parameters:
client
- the associated clientoutput
- the output file
- Throws:
java.io.IOException
- if an error occurs
write
public void write(int errorCount,
int warningCount,
java.util.List<Warning> issues)
throws java.io.IOException
- Description copied from class:
Reporter
- Write the given warnings into the report
- Specified by:
write
in class Reporter
- Parameters:
errorCount
- the number of errorswarningCount
- the number of warningsissues
- the issues to be reported
- Throws:
java.io.IOException
- if an error occurs
computeMissingIssues
protected java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> computeMissingIssues(java.util.List<Warning> warnings)
writeStyleSheet
protected void writeStyleSheet()
throws java.io.IOException
- Throws:
java.io.IOException