|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.tools.lint.client.api.Lint
public class Lint
Analyzes Android projects and files
| Constructor Summary | |
|---|---|
Lint(IssueRegistry registry,
LintClient client)
Creates a new Lint |
|
| Method Summary | |
|---|---|
void |
addLintListener(LintListener listener)
Adds a listener to be notified of lint progress |
void |
analyze(List<File> files,
EnumSet<Scope> scope)
Analyze the given file (which can point to an Android project). |
void |
cancel()
Cancels the current lint run as soon as possible |
void |
removeLintListener(LintListener listener)
Removes a listener such that it is no longer notified of progress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lint(IssueRegistry registry,
LintClient client)
Lint
registry - The registry containing issues to be checkedclient - the tool wrapping the analyzer, such as an IDE or a CLI| Method Detail |
|---|
public void cancel()
public void analyze(List<File> files,
EnumSet<Scope> scope)
LintClient.
files - the files and directories to be analyzedscope - the scope of the analysis; detectors with a wider scope will
not be run. If null, the scope will be inferred from the files.public void addLintListener(LintListener listener)
listener - the listener to be addedpublic void removeLintListener(LintListener listener)
listener - the listener to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||