com.android.tools.lint.checks
Class BuiltinIssueRegistry

java.lang.Object
  extended by com.android.tools.lint.client.api.IssueRegistry
      extended by 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


Field Summary
 
Fields inherited from class com.android.tools.lint.client.api.IssueRegistry
CANCELLED, LINT_ERROR, PARSER_ERROR
 
Constructor Summary
BuiltinIssueRegistry()
          Constructs a new BuiltinIssueRegistry
 
Method Summary
 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, isCategoryName, isIssueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuiltinIssueRegistry

public BuiltinIssueRegistry()
Constructs a new BuiltinIssueRegistry

Method Detail

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

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 checked
issue - 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.