com.android.tools.lint.checks
Class BuiltinIssueRegistry
java.lang.Object
com.android.tools.lint.client.api.IssueRegistry
com.android.tools.lint.checks.BuiltinIssueRegistry
public class BuiltinIssueRegistry
- extends com.android.tools.lint.client.api.IssueRegistry
Registry which provides a list of checks to be performed on an Android project
Fields inherited from class com.android.tools.lint.client.api.IssueRegistry |
CANCELLED, LINT_ERROR, PARSER_ERROR |
Method Summary |
protected int |
getIssueCapacity(java.util.EnumSet<com.android.tools.lint.detector.api.Scope> scope)
|
java.util.List<com.android.tools.lint.detector.api.Issue> |
getIssues()
|
boolean |
hasAutoFix(java.lang.String tool,
com.android.tools.lint.detector.api.Issue issue)
Returns true if the given issue has an automatic IDE fix. |
static void |
reset()
Reset the registry such that it recomputes its available issues. |
Methods inherited from class com.android.tools.lint.client.api.IssueRegistry |
getCategories, getIssue, getIssuesForScope, isCategoryName, isIssueId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuiltinIssueRegistry
public BuiltinIssueRegistry()
- Constructs a new
BuiltinIssueRegistry
getIssues
@NonNull
public java.util.List<com.android.tools.lint.detector.api.Issue> getIssues()
- Specified by:
getIssues
in class com.android.tools.lint.client.api.IssueRegistry
getIssueCapacity
protected int getIssueCapacity(@NonNull
java.util.EnumSet<com.android.tools.lint.detector.api.Scope> scope)
- Overrides:
getIssueCapacity
in class com.android.tools.lint.client.api.IssueRegistry
hasAutoFix
@Beta
public boolean hasAutoFix(java.lang.String tool,
com.android.tools.lint.detector.api.Issue issue)
- Returns true if the given issue has an automatic IDE fix.
- Parameters:
tool
- the name of the tool to be checkedissue
- the issue to be checked
- Returns:
- true if the given tool is known to have an automatic fix for the
given issue
reset
public static void reset()
- Reset the registry such that it recomputes its available issues.
NOTE: This is only intended for testing purposes.