A B C D E F G H I J L M N O P R S T U V X

A

A11Y - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to accessibility
addCustomLintRules(IssueRegistry) - Method in class com.android.tools.lint.client.api.LintClient
Adds in any custom lint rules and returns the result as a new issue registry, or the same one if no custom rules were found
addFile(File) - Method in class com.android.tools.lint.detector.api.Project
Adds the given file to the list of files which should be checked in this project.
addLintListener(LintListener) - Method in class com.android.tools.lint.client.api.LintDriver
Adds a listener to be notified of lint progress
addMoreInfo(String) - Method in class com.android.tools.lint.detector.api.Issue
Adds a more info URL string
afterCheckFile(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis has just been finished for a specific file, perform any cleanup or report issues found
afterCheckLibraryProject(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis has just been finished for the given library project, perform any cleanup or report issues that require library-project-wide analysis.
afterCheckProject(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis has just been finished for the whole project, perform any cleanup or report issues that require project-wide analysis.
ALL - Static variable in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Special marker collection returned by Detector.XmlScanner.getApplicableElements() or Detector.XmlScanner.getApplicableAttributes() to indicate that the check should be invoked on all elements or all attributes
ALL - Static variable in enum com.android.tools.lint.detector.api.Scope
All scopes: running lint on a project will check these scopes
ALL_CLASSES_AND_LIBRARIES - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for analyzing all class files, including those in libraries
ALL_RESOURCES_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which scan all resources
allowUnknowns() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator
Whether we allow computing values where some terms are unknown.
analyze(List<File>, EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.LintDriver
Deprecated. use instead
analyze(LintRequest) - Method in class com.android.tools.lint.client.api.LintDriver
Analyze the given files (which can point to Android projects or directories containing Android projects).
applicableSuperClasses() - Method in class com.android.tools.lint.detector.api.Detector
 
applicableSuperClasses() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Returns a list of fully qualified names for super classes that this detector cares about.
appliesTo(Context, File) - Method in class com.android.tools.lint.detector.api.Detector
Returns true if this detector applies to the given file
appliesTo(ResourceFolderType) - Method in class com.android.tools.lint.detector.api.Detector
 
appliesTo(ResourceFolderType) - Method in interface com.android.tools.lint.detector.api.Detector.BinaryResourceScanner
Returns whether this detector applies to the given folder type.
appliesTo(ResourceFolderType) - Method in interface com.android.tools.lint.detector.api.Detector.ResourceFolderScanner
Returns whether this detector applies to the given folder type.
appliesTo(ResourceFolderType) - Method in class com.android.tools.lint.detector.api.LayoutDetector
 
appliesTo(Context, File) - Method in class com.android.tools.lint.detector.api.ResourceXmlDetector
 
appliesTo(ResourceFolderType) - Method in class com.android.tools.lint.detector.api.ResourceXmlDetector
Returns whether this detector applies to the given folder type.
appliesToFolder(Scope, ResourceFolderType) - Method in class com.android.tools.lint.detector.api.Detector
 
appliesToResourceRefs() - Method in class com.android.tools.lint.detector.api.Detector
 
appliesToResourceRefs() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Returns whether this detector cares about Android resource references (such as R.layout.main or R.string.app_name).
argumentMatchesType(int, String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Returns true if the parameter at the given index matches the given type signature
assertionsEnabled() - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if assertions are enabled

B

beforeCheckFile(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis is about to be performed on a specific file, perform any setup steps.
beforeCheckLibraryProject(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis is about to begin for the given library project, perform any setup steps.
beforeCheckProject(Context) - Method in class com.android.tools.lint.detector.api.Detector
Analysis is about to begin, perform any setup steps.
BINARY_RESOURCE_FILE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single binary resource file

C

cancel() - Method in class com.android.tools.lint.client.api.LintDriver
Cancels the current lint run as soon as possible
CANCELLED - Static variable in class com.android.tools.lint.client.api.IssueRegistry
Issue reported when lint is canceled
Category - Class in com.android.tools.lint.detector.api
A category is a container for related issues.
checkBinaryResource(ResourceContext) - Method in interface com.android.tools.lint.detector.api.Detector.BinaryResourceScanner
Called for each resource folder
checkBinaryResource(ResourceContext) - Method in class com.android.tools.lint.detector.api.Detector
 
checkCall(ClassContext, ClassNode, MethodNode, MethodInsnNode) - Method in class com.android.tools.lint.detector.api.Detector
 
checkCall(ClassContext, ClassNode, MethodNode, MethodInsnNode) - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Process a given method call node, and register lint issues if applicable.
checkClass(JavaContext, ClassDeclaration, Node, JavaParser.ResolvedClass) - Method in class com.android.tools.lint.detector.api.Detector
 
checkClass(ClassContext, ClassNode) - Method in class com.android.tools.lint.detector.api.Detector
 
checkClass(ClassContext, ClassNode) - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Checks the given class' bytecode for issues.
checkClass(JavaContext, ClassDeclaration, Node, JavaParser.ResolvedClass) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Called for each class that extends one of the super classes specified with Detector.JavaScanner.applicableSuperClasses()
checkFolder(ResourceContext, String) - Method in class com.android.tools.lint.detector.api.Detector
 
checkFolder(ResourceContext, String) - Method in interface com.android.tools.lint.detector.api.Detector.ResourceFolderScanner
Called for each resource folder
checkForSuppressComments() - Method in class com.android.tools.lint.client.api.LintClient
Returns whether lint should look for suppress comments.
checkInstruction(ClassContext, ClassNode, MethodNode, AbstractInsnNode) - Method in class com.android.tools.lint.detector.api.Detector
 
checkInstruction(ClassContext, ClassNode, MethodNode, AbstractInsnNode) - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Process a given instruction node, and register lint issues if applicable.
checkSingleFile(EnumSet<Scope>) - Static method in enum com.android.tools.lint.detector.api.Scope
Returns true if the given scope set corresponds to scanning a single file rather than a whole project
CircularDependencyException - Exception in com.android.tools.lint.client.api
Exception thrown when there is a circular dependency, such as a circular dependency of library mProject references
CLASS_AND_ALL_RESOURCE_FILES - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for analyzing individual class files and all resource files
CLASS_FILE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single Java class file
ClassContext - Class in com.android.tools.lint.detector.api
A Context used when checking .class files.
ClassContext(LintDriver, Project, Project, File, File, File, byte[], ClassNode, boolean, String) - Constructor for class com.android.tools.lint.detector.api.ClassContext
Construct a new ClassContext
closeConnection(URLConnection) - Method in class com.android.tools.lint.client.api.LintClient
Closes a connection previously returned by LintClient.openConnection(java.net.URL)
com.android.tools.lint.client.api - package com.android.tools.lint.client.api
 
com.android.tools.lint.detector.api - package com.android.tools.lint.detector.api
 
compareTo(Category) - Method in class com.android.tools.lint.detector.api.Category
 
compareTo(Issue) - Method in class com.android.tools.lint.detector.api.Issue
Sorts the detectors alphabetically by id.
computeResourceName(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Computes a suggested name given a resource prefix and resource name
computeResourcePrefix(AndroidProject) - Static method in class com.android.tools.lint.detector.api.LintUtils
Looks up the resource prefix for the given Gradle project, if possible
CONFIG_FILE_NAME - Static variable in class com.android.tools.lint.client.api.DefaultConfiguration
Default name of the configuration file
Configuration - Class in com.android.tools.lint.client.api
Lint configuration for an Android project such as which specific rules to include, which specific rules to exclude, and which specific errors to ignore.
Configuration() - Constructor for class com.android.tools.lint.client.api.Configuration
 
ConstantEvaluator - Class in com.android.tools.lint.detector.api
Evaluates constant expressions
ConstantEvaluator(JavaContext) - Constructor for class com.android.tools.lint.detector.api.ConstantEvaluator
Creates a new constant evaluator
containsCommentSuppress() - Method in class com.android.tools.lint.detector.api.Context
Returns whether this file contains any suppress comment markers
Context - Class in com.android.tools.lint.detector.api
Context passed to the detectors during an analysis run.
Context(LintDriver, Project, Project, File) - Constructor for class com.android.tools.lint.detector.api.Context
Construct a new Context
convertTo(String, TextFormat) - Method in enum com.android.tools.lint.detector.api.TextFormat
Converts the given message to the given format.
convertVersion(ApiVersion, IAndroidTarget[]) - Static method in class com.android.tools.lint.detector.api.LintUtils
Convert an ApiVersion to a AndroidVersion.
CORRECTNESS - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to correctness
create(LintClient, Project, Configuration) - Static method in class com.android.tools.lint.client.api.DefaultConfiguration
Creates a new DefaultConfiguration
create(LintClient, File) - Static method in class com.android.tools.lint.client.api.DefaultConfiguration
Creates a new DefaultConfiguration for the given lint config file, not affiliated with a project.
create(String, int) - Static method in class com.android.tools.lint.detector.api.Category
Creates a new top level Category with the given sorting priority.
create(Category, String, int) - Static method in class com.android.tools.lint.detector.api.Category
Creates a new top level Category with the given sorting priority.
create(String, String, String, Category, int, Severity, Implementation) - Static method in class com.android.tools.lint.detector.api.Issue
Creates a new issue.
create(String, String, String, String, Category, int, Severity, Implementation) - Static method in class com.android.tools.lint.detector.api.Issue
Deprecated. Use Issue.create(String, String, String, Category, int, Severity, Implementation) instead
create(File) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file
create(File, SourcePosition) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file and SourcePosition.
create(File, Position, Position) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file and starting and ending positions.
create(File, String, int, int) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file, with the given contents, for the given offset range.
create(File, String, int) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file, with the given contents, for the given line number.
create(File, String, int, String, String, Location.SearchHints) - Static method in class com.android.tools.lint.detector.api.Location
Creates a new location for the given file, with the given contents, for the given line number.
create(Location.SearchDirection) - Static method in class com.android.tools.lint.detector.api.Location.SearchHints
Constructs a new Location.SearchHints object
create(LintClient, File, File) - Static method in class com.android.tools.lint.detector.api.Project
Creates a new Project for the given directory.
createJavaVisitor(JavaContext) - Method in class com.android.tools.lint.detector.api.Detector
 
createJavaVisitor(JavaContext) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Create a parse tree visitor to process the parse tree.
createLocationHandle(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Creates a light-weight handle to a location for the given node.
createLocationHandle(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Creates a light-weight handle to a location for the given node.
createLocationHandle(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
 
createLocationHandle(Node) - Method in class com.android.tools.lint.detector.api.XmlContext
 
createProject(File, File) - Method in class com.android.tools.lint.client.api.LintClient
Create a project for the given directory
createResourceItemHandle(ResourceItem) - Method in class com.android.tools.lint.client.api.LintClient
For a lint client which supports resource items (via LintClient.supportsProjectResources()) return a handle for a resource item
createSignature(String, String, String) - Static method in class com.android.tools.lint.detector.api.ClassContext
Computes a user-readable type signature from the given class owner, name and description.
createSuperClassMap(Project) - Method in class com.android.tools.lint.client.api.LintClient
Creates a super class map for the given project.

D

DefaultConfiguration - Class in com.android.tools.lint.client.api
Default implementation of a Configuration which reads and writes configuration data into lint.xml in the project directory.
DefaultConfiguration(LintClient, Project, Configuration, File) - Constructor for class com.android.tools.lint.client.api.DefaultConfiguration
 
DefaultConfiguration(LintClient, Project, Configuration) - Constructor for class com.android.tools.lint.client.api.DefaultConfiguration
 
DefaultPosition - Class in com.android.tools.lint.detector.api
A simple offset-based position *
DefaultPosition(int, int, int) - Constructor for class com.android.tools.lint.detector.api.DefaultPosition
Creates a new DefaultPosition
dependsOn(String) - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project depends on the given artifact.
Detector - Class in com.android.tools.lint.detector.api
A detector is able to find a particular problem (or a set of related problems).
Detector() - Constructor for class com.android.tools.lint.detector.api.Detector
 
Detector.BinaryResourceScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan binary resource files
Detector.ClassScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan Java class files
Detector.GradleScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan Gradle files
Detector.JavaScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan Java source file parse trees
Detector.OtherFileScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan other files
Detector.ResourceFolderScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan resource folders (the folder directory itself, not the individual files within it
Detector.XmlScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan XML files
dispose(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Dispose any data structures held for the given context.
dispose() - Method in class com.android.tools.lint.client.api.JavaParser
Dispose any remaining data structures held for all contexts.
dispose() - Method in class com.android.tools.lint.client.api.JavaVisitor
 
dispose(XmlContext, Document) - Method in class com.android.tools.lint.client.api.XmlParser
Dispose any data structures held for the given context.
document - Variable in class com.android.tools.lint.detector.api.XmlContext
The XML document

E

editDistance(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Computes the edit distance (number of insertions, deletions or substitutions to edit one string into the other) between two strings.
endsWith(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Case insensitive ends with
equals(Object) - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
equals(Object) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
 
equals(Object) - Method in class com.android.tools.lint.detector.api.Project
 
evaluate(Node) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator
Evaluates the given node and returns the constant value it resolves to, if any
evaluate(JavaContext, Node) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
Evaluates the given node and returns the constant value it resolves to, if any.
evaluateString(JavaContext, Node, boolean) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
Evaluates the given node and returns the constant string it resolves to, if any.

F

file - Variable in class com.android.tools.lint.detector.api.Context
The file being checked.
findClass(JavaContext, String) - Method in class com.android.tools.lint.client.api.JavaParser
Finds the given type, if possible (which should be reachable from the compilation patch of the given node.
findClass(ClassContext, String, int) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the ClassNode corresponding to the given type, if possible, or null
findClass(String) - Method in class com.android.tools.lint.detector.api.JavaContext
 
findGlobalRuleJars() - Method in class com.android.tools.lint.client.api.LintClient
Finds any custom lint rule jars that should be included for analysis, regardless of project.
findLineNumber(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.ClassContext
Finds the line number closest to the given node
findLineNumber(MethodNode) - Static method in class com.android.tools.lint.detector.api.ClassContext
Finds the line number closest to the given method declaration
findLineNumber(ClassNode) - Static method in class com.android.tools.lint.detector.api.ClassContext
Finds the line number closest to the given class declaration
findProjectFor(File) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the project containing a given file, or null if not found.
findResource(String) - Method in class com.android.tools.lint.client.api.LintClient
Locates an SDK resource (relative to the SDK root directory).
findRuleJars(Project) - Method in class com.android.tools.lint.client.api.LintClient
Finds any custom lint rule jars that should be included for analysis in the given project
findSubstring(String, String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Looks for a certain string within a larger string, which should immediately follow the given prefix and immediately precede the given suffix.
findSurroundingClass(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
findSurroundingMethod(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
finishBulkEditing() - Method in class com.android.tools.lint.client.api.Configuration
Marks the end of a "bulk" editing operation, where values should be committed to persistent storage.
finishBulkEditing() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
formatList(List<String>, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Format a list of strings, and cut of the list at maxItems if the number of items are greater.
fromName(String) - Static method in enum com.android.tools.lint.detector.api.Severity
Looks up the severity corresponding to a given named severity.

G

getAllLibraries() - Method in class com.android.tools.lint.detector.api.Project
Returns the transitive closure of the library projects for this project
getAnalysisScopes() - Method in class com.android.tools.lint.detector.api.Implementation
Returns the sets of scopes required to analyze this issue, or null if all scopes named by Implementation.getScope() are necessary.
getAnnotation(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Searches for the annotation of the given type on this node
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Returns any annotations defined on this node
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
 
getApplicableAsmNodeTypes() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Returns the list of node types (corresponding to the constants in the AbstractInsnNode class) that this scanner applies to.
getApplicableAsmNodeTypes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableAttributes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableAttributes() - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Returns the list of attributes that this detector wants to analyze.
getApplicableCallNames() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Return the list of method call names (in VM format, e.g.
getApplicableCallNames() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableCallOwners() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
Just like Detector.getApplicableCallNames(), but for the owner field instead.
getApplicableCallOwners() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableConstructorTypes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableConstructorTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Return the list of constructor types this detector is interested in, or null.
getApplicableDensities() - Method in class com.android.tools.lint.detector.api.Project
Returns the set of applicable densities for this project.
getApplicableElements() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableElements() - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Returns the list of elements that this detector wants to analyze.
getApplicableFiles() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableFiles() - Method in interface com.android.tools.lint.detector.api.Detector.OtherFileScanner
Returns the set of files this scanner wants to consider.
getApplicableMethodNames() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableMethodNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Return the list of method names this detector is interested in, or null.
getApplicableNodeTypes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableNodeTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Return the types of AST nodes that the visitor returned from Detector.JavaScanner.createJavaVisitor(JavaContext) should visit.
getArgumentCount() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
getArgumentNode(MethodInvocation, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
Returns the given argument of the given call
getArgumentType(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
getBaseName(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the basename of the given filename, unless it's a dot-file such as ".svn".
getBriefDescription(TextFormat) - Method in class com.android.tools.lint.detector.api.Issue
Briefly (in a couple of words) describes these errors
getBuildSdk() - Method in class com.android.tools.lint.detector.api.Project
Returns the target API used to build the project, or -1 if not known
getBuildTarget() - Method in class com.android.tools.lint.detector.api.Project
Returns the target used to build the project, or null if not known
getBuildTools(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the specific version of the build tools being used for the given project, if known
getBuildTools() - Method in class com.android.tools.lint.detector.api.Project
Returns the specific version of the build tools being used, if known
getBytecode() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the raw bytecode data for this class file
getCacheDir(boolean) - Method in class com.android.tools.lint.client.api.LintClient
Returns a suitable location for storing cache files.
getCategories() - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns the available categories
getCategory() - Method in class com.android.tools.lint.detector.api.Issue
The primary category of the issue
getChildCount(Node) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the number of children of the given node
getChildren(Node) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the children elements of the given node
getClassFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
getClassNode() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the bytecode object model
getClassPath(Project) - Method in class com.android.tools.lint.client.api.LintClient
Considers the given project as an Eclipse project and returns class path information for the project - the source folder(s), the output folder and any libraries.
getClassType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Returns the JavaParser.ResolvedClass which defines the annotation
getClient() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the lint client requesting the lint check.
getClient() - Method in class com.android.tools.lint.client.api.LintRequest
Returns the lint client requesting the lint check
getClient() - Method in class com.android.tools.lint.detector.api.Context
Returns the lint client requesting the lint check
getClient() - Method in class com.android.tools.lint.detector.api.Project
Returns the associated client
getClientData() - Method in class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
 
getClientData() - Method in class com.android.tools.lint.detector.api.Location
Returns the client data associated with this location - an optional field which can be used by the creator of the Location to store temporary state associated with the location.
getClientData() - Method in interface com.android.tools.lint.detector.api.Location.Handle
Returns the client data associated with this location - an optional field which can be used by the creator of the Location to store temporary state associated with the location.
getClientData() - Method in class com.android.tools.lint.detector.api.Location.ResourceItemHandle
 
getColumn() - Method in class com.android.tools.lint.detector.api.DefaultPosition
 
getColumn() - Method in class com.android.tools.lint.detector.api.Position
Returns the column number (where the first character on the line is 0), or -1 if unknown
getCommonParent(List<File>) - Static method in class com.android.tools.lint.detector.api.LintUtils
Computes the shared parent among a set of files (which may be null).
getCommonParent(File, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Computes the closest common parent path between two files.
getCompilationUnit() - Method in class com.android.tools.lint.detector.api.JavaContext
 
getCompileTarget(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the compile target to use for the given project
getCompileTarget() - Method in class com.android.tools.lint.detector.api.Project
Returns the compile target to use for this project
getConfiguration(Project, LintDriver) - Method in class com.android.tools.lint.client.api.LintClient
Returns a configuration for use by the given project.
getConfiguration() - Method in class com.android.tools.lint.detector.api.Context
Returns the configuration for this project.
getConfiguration(LintDriver) - Method in class com.android.tools.lint.detector.api.Project
Gets the configuration associated with this project
getConstructors() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
getContainingClassName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
getContents() - Method in class com.android.tools.lint.detector.api.Context
Returns the contents of the file.
getCurrentVariant() - Method in class com.android.tools.lint.detector.api.Project
Returns the current selected variant, if any (and if the current project is a Gradle project).
getDefaultSeverity(Issue) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
getDefaultSeverity() - Method in class com.android.tools.lint.detector.api.Issue
Returns the default severity of the issues found by this detector (some tools may allow the user to specify custom severities for detectors).
getDescription() - Method in enum com.android.tools.lint.detector.api.Severity
Returns a description of this severity suitable for display to the user
getDetectorClass() - Method in class com.android.tools.lint.detector.api.Implementation
Returns the class of the detector to use to find this issue
getDir() - Method in class com.android.tools.lint.detector.api.Project
Returns the project root directory
getDirectLibraries() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of library projects referenced by this project
getDisplayName() - Method in enum com.android.tools.lint.detector.api.Speed
Returns the user-visible description of the speed of the given detector
getDisplayPath(File) - Method in class com.android.tools.lint.detector.api.Project
Returns the relative path of a given file relative to the user specified directory (which is often the project directory but sometimes a higher up directory when a directory tree is being scanned
getDriver() - Method in class com.android.tools.lint.detector.api.Context
Returns the driver running through the lint checks
getEncodedString(LintClient, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the encoded String for the given file.
getEncodedString(byte[]) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the String corresponding to the given data.
getEnd() - Method in class com.android.tools.lint.detector.api.Location
The end position of the range
getExplanation(TextFormat) - Method in class com.android.tools.lint.detector.api.Issue
Describes the error found by this rule, e.g.
getField(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the named field defined in this class, or optionally inherited from a superclass
getFields(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the fields defined in this class, and optionally any fields declared in any superclasses as well
getFile() - Method in class com.android.tools.lint.detector.api.Location
Returns the file containing the warning.
getFiles() - Method in class com.android.tools.lint.client.api.LintRequest
Returns the set of files to check with lint.
getFolderVersion() - Method in class com.android.tools.lint.detector.api.ResourceContext
Returns the folder version.
getFormattedParameters(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Splits up the given message coming from a given string format (where the string format follows the very specific convention of having only strings formatted exactly with the format %n$s where n is between 1 and 9 inclusive, and each formatting parameter appears exactly once, and in increasing order.
getFqcn(String) - Static method in class com.android.tools.lint.detector.api.ClassContext
Converts from a VM owner name (such as foo/bar/Foo$Baz) to a fully qualified class name (such as foo.bar.Foo.Baz).
getFullName() - Method in class com.android.tools.lint.detector.api.Category
Returns a full name for this category.
getGradleBuildScripts() - Method in class com.android.tools.lint.detector.api.Project
Returns the Gradle build script files configured for this project, if any
getGradleLibraryModel() - Method in class com.android.tools.lint.detector.api.Project
Returns the project model for this project if it corresponds to a Gradle library.
getGradleProjectModel() - Method in class com.android.tools.lint.detector.api.Project
Returns the project model for this project if it corresponds to a Gradle project.
getHighestKnownApiLevel() - Method in class com.android.tools.lint.client.api.LintClient
Returns the highest known API level.
getId() - Method in class com.android.tools.lint.detector.api.Issue
Returns the unique id of this issue.
getImplementation() - Method in class com.android.tools.lint.detector.api.Issue
Returns the implementation for the given issue
getInheritedStyles(Project, LintClient, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
getInternalName(String) - Static method in class com.android.tools.lint.detector.api.ClassContext
Computes the internal class name of the given fully qualified class name.
getIssue(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns the issue for the given id, or null if it's not a valid id
getIssueCapacity(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.IssueRegistry
Get an approximate issue count for a given scope.
getIssues() - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns the list of issues that can be found by all known detectors.
getIssuesForScope(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns all available issues of a given scope (regardless of whether they are actually enabled for a given configuration etc)
getJarFile() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the jar file, if any.
getJavaClassFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of output folders for class files
getJavaClassFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of output folders for class files
getJavaLibraries(Project, boolean) - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of Java libraries
getJavaLibraries(boolean) - Method in class com.android.tools.lint.detector.api.Project
Returns the list of Java libraries (typically .jar files) that this project depends on.
getJavaParser(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns a JavaParser to use to parse Java
getJavaSourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of source folders for Java source files
getJavaSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of source folders for Java source files
getKnownProjects() - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of known projects (projects registered via LintClient.getProject(File, File)
getLayoutName(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the layout resource name for the given layout file
getLibraries(boolean) - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
getLine() - Method in class com.android.tools.lint.detector.api.DefaultPosition
 
getLine() - Method in class com.android.tools.lint.detector.api.Position
Returns the line number (0-based where the first line is line 0)
getLocale(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the locale for the given parent folder.
getLocale(XmlContext) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the locale for the given context.
getLocaleAndRegion(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Look up the locale and region from the given parent folder name and return it as a combined string, such as "en", "en-rUS", b+eng-US, etc, or null if no language is specified.
getLocation() - Method in exception com.android.tools.lint.client.api.CircularDependencyException
Returns the associated location, if any
getLocation(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Returns a Location for the given node
getLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node
getLocation(XmlContext, Node, int, int) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node.
getLocation(ClassNode) - Method in class com.android.tools.lint.detector.api.ClassContext
Returns a location for the given ClassNode, where class node is either the top level class, or an inner class, in the current context.
getLocation(MethodNode, ClassNode) - Method in class com.android.tools.lint.detector.api.ClassContext
Returns a location for the given MethodNode.
getLocation(AbstractInsnNode) - Method in class com.android.tools.lint.detector.api.ClassContext
Returns a location for the given AbstractInsnNode.
getLocation(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns a location for the given node
getLocation(Node) - Method in class com.android.tools.lint.detector.api.XmlContext
Returns the location for the given node, which may be an element or an attribute.
getLocation(Node, int, int) - Method in class com.android.tools.lint.detector.api.XmlContext
Creates a new location within an XML text node
getLocationForLine(int, String, String, Location.SearchHints) - Method in class com.android.tools.lint.detector.api.ClassContext
Returns a location for the given source line number in this class file's source file, if available.
getMainProject(Project) - Method in class com.android.tools.lint.client.api.LintRequest
Returns the project to be used as the main project during analysis.
getMainProject() - Method in class com.android.tools.lint.detector.api.Context
Returns the main project if this project is a library project, or self if this is not a library project.
getManifestFiles() - Method in class com.android.tools.lint.detector.api.Project
Gets the paths to the manifest files in this project, if any exists.
getMessage() - Method in class com.android.tools.lint.detector.api.Location
Returns the custom message for this location, if any.
getMethodName(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
getMethods(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the methods defined in this class, and optionally any methods inherited from any superclasses as well
getMethods(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the methods of a given name defined in this class, and optionally any methods inherited from any superclasses as well
getMinSdk() - Method in class com.android.tools.lint.detector.api.Project
Returns the minimum API level requested by the manifest, or -1 if not specified.
getMinSdkVersion() - Method in class com.android.tools.lint.detector.api.Project
Returns the minimum API level for the project
getModifiers() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
 
getMoreInfo() - Method in class com.android.tools.lint.detector.api.Issue
Returns a link (a URL string) to more information, or null
getName() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the fully qualified name of this class
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Returns the fully qualified name of the type, such as "int" or "android.app.Activity"
getName() - Method in class com.android.tools.lint.detector.api.Category
Returns the name of this category
getName() - Method in class com.android.tools.lint.detector.api.Project
Returns the name of the project
getName() - Method in enum com.android.tools.lint.detector.api.Severity
Returns the name of this severity
getNameLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node
getNameLocation(Node) - Method in class com.android.tools.lint.detector.api.XmlContext
Returns the location for name-portion of the given element or attribute.
getNextInstruction(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the next instruction after to the given node, ignoring label and line number nodes.
getNextOpcode(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the next opcode after to the given node, ignoring label and line number nodes
getNextSiblingOfType(Node, Class<T>) - Static method in class com.android.tools.lint.detector.api.JavaContext
Returns the first sibling of the given node that is of the given class
getNode() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
 
getNodeEndOffset(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns the end offset of the given node, or -1 if not known
getNodeStartOffset(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns the start offset of the given node, or -1 if not known
getOffset() - Method in class com.android.tools.lint.detector.api.DefaultPosition
 
getOffset() - Method in class com.android.tools.lint.detector.api.Position
The character offset
getOuterClassNode(ClassNode) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the outer class node of the given class node
getPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the package containing this class
getPackage() - Method in class com.android.tools.lint.detector.api.Project
Returns the application package specified by the manifest
getPackageName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the package name of this class
getParameter(Node, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
getParameterAnnotation(String, int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Searches for the annotation of the given type on the method
getParameterAnnotations(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Returns any annotations defined on the given parameter of this method
getParameters(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
getParent() - Method in class com.android.tools.lint.detector.api.Category
Returns the parent category, or null if this is a top level category
getParentOfType(Node, Class<T>) - Static method in class com.android.tools.lint.detector.api.JavaContext
Returns the first ancestor node of the given type
getParentOfType(Node, Class<T>, boolean) - Static method in class com.android.tools.lint.detector.api.JavaContext
Returns the first ancestor node of the given type
getParentOfType(Node, Class<T>, boolean, Class<? extends Node>...) - Static method in class com.android.tools.lint.detector.api.JavaContext
Returns the first ancestor node of the given type, stopping at the given type
getParentPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
Returns the parent package of this package, if any.
getParentViewClass(String) - Method in class com.android.tools.lint.client.api.SdkInfo
Returns the fully qualified name of the parent view, or null if the view is the root android.view.View class.
getParentViewName(String) - Method in class com.android.tools.lint.client.api.SdkInfo
Returns the class name of the parent view, or null if the view is the root android.view.View class.
getParser() - Method in class com.android.tools.lint.detector.api.JavaContext
 
getParser() - Method in class com.android.tools.lint.detector.api.XmlContext
 
getPhase() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the current phase number.
getPhase() - Method in class com.android.tools.lint.detector.api.Context
Returns the current phase number.
getPrevInstruction(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the previous instruction prior to the given node, ignoring label and line number nodes.
getPrevOpcode(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the previous opcode prior to the given node, ignoring label and line number nodes
getPriority() - Method in class com.android.tools.lint.detector.api.Issue
Returns a priority, in the range 1-10, with 10 being the most severe and 1 the least
getProguardFiles() - Method in class com.android.tools.lint.detector.api.Project
Returns the proguard files configured for this project, if any
getProject() - Method in exception com.android.tools.lint.client.api.CircularDependencyException
Returns the associated project, if any
getProject(File, File) - Method in class com.android.tools.lint.client.api.LintClient
Returns a project for the given directory.
getProject() - Method in class com.android.tools.lint.detector.api.Context
Returns the project containing the file being checked
getProjectName(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the name of the given project
getProjectResources(Project, boolean) - Method in class com.android.tools.lint.client.api.LintClient
Returns the project resources, if available
getProjects() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the projects being analyzed
getProjects() - Method in class com.android.tools.lint.client.api.LintRequest
Gets the projects for the lint requests.
getProperty(Object) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the property previously stored with the given key, or null
getProperty(String) - Method in class com.android.tools.lint.detector.api.Context
Returns the value of the given named property, or null.
getReferenceDir() - Method in class com.android.tools.lint.detector.api.Project
Returns the original user supplied directory where the lint search started.
getRegistry() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the current IssueRegistry.
getRelativePath(File) - Method in class com.android.tools.lint.detector.api.Project
Returns the relative path of a given file within the current project.
getReportIssues() - Method in class com.android.tools.lint.detector.api.Project
Returns whether lint should report issues in this project.
getRequest() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the current request, which points to the original files to be checked, the original scope, the original LintClient, as well as the release mode.
getResourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the resource folders.
getResourceFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the resource folder.
getResourceFolderType() - Method in class com.android.tools.lint.detector.api.ResourceContext
Returns the resource folder type of this XML file, if any.
getResourceFolderVersion(File) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the folder version of the given file.
getResourceVisibility() - Method in class com.android.tools.lint.detector.api.Project
Returns a shared ResourceVisibilityLookup
getResourceVisibilityProvider() - Method in class com.android.tools.lint.client.api.LintClient
Returns a shared ResourceVisibilityLookup.Provider
getReturnType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
getScope() - Method in class com.android.tools.lint.client.api.LintDriver
Returns the scope for the lint job
getScope() - Method in class com.android.tools.lint.client.api.LintRequest
Sets the scope to use; lint checks which require a wider scope set will be ignored
getScope() - Method in class com.android.tools.lint.detector.api.Context
Returns the scope for the lint job
getScope() - Method in class com.android.tools.lint.detector.api.Implementation
Returns the scope required to analyze the code to detect this issue.
getSdk() - Method in class com.android.tools.lint.client.api.LintClient
Returns the SDK installation (used to look up platforms etc)
getSdkHome() - Method in class com.android.tools.lint.client.api.LintClient
Returns the File pointing to the user's SDK install area.
getSdkInfo(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the SdkInfo to use for the given project.
getSdkInfo() - Method in class com.android.tools.lint.detector.api.Context
Gets the SDK info for the current project.
getSdkInfo() - Method in class com.android.tools.lint.detector.api.Project
Gets the SDK info for the current project.
getSecondary() - Method in class com.android.tools.lint.detector.api.Location
Returns a secondary location associated with this location (if applicable), or null.
getSeverity(Issue) - Method in class com.android.tools.lint.client.api.Configuration
Returns the severity for a given issue.
getSeverity(Issue) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Returns the signature of the resolved node
getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Returns the full signature of the type, which is normally the same as JavaParser.TypeDescriptor.getName() but for arrays can include []'s, for generic methods can include generics parameters etc
getSimpleName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns the simple of this class
getSourceContents() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the contents of the source file for this class file, if found.
getSourceContents(boolean) - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the contents of the source file for this class file, if found.
getSourceFile() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns the source file for this class file, if possible.
getSourceFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
getSpeed() - Method in class com.android.tools.lint.detector.api.Detector
Returns the expected speed of this detector
getSpeed(Issue) - Method in class com.android.tools.lint.detector.api.Detector
Returns the expected speed of this detector.
getStart() - Method in class com.android.tools.lint.detector.api.Location
The start position of the range
getStyleAttributes(Project, LintClient, String, String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Looks up the resource values for the given attribute given a style.
getSubset() - Method in class com.android.tools.lint.detector.api.Project
The list of files to be checked in this project.
getSuperClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
getSuperClass(Project, String) - Method in class com.android.tools.lint.client.api.LintClient
Returns the super class for the given class name, which should be in VM format (e.g.
getSuperClass(String) - Method in class com.android.tools.lint.client.api.LintDriver
Returns the super class for the given class name, which should be in VM format (e.g.
getSuperClassMap() - Method in class com.android.tools.lint.detector.api.Project
Returns a super class map for this project.
getSuperMethod() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Returns the super implementation of the given method, if any
getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.Context
Returns the comment marker used in Studio to suppress statements for language, if any
getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.JavaContext
 
getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.XmlContext
 
getTargets() - Method in class com.android.tools.lint.client.api.LintClient
Returns all the IAndroidTarget versions installed in the user's SDK install area.
getTargetSdk() - Method in class com.android.tools.lint.detector.api.Project
Returns the target API level specified by the manifest, or -1 if not specified.
getTargetSdkVersion() - Method in class com.android.tools.lint.detector.api.Project
Returns the target API level for the project
getTestSourceFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
getTestSourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of source folders for test source files
getTestSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of source folders for Java test source files
getType(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Gets the type of the given node
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
 
getType(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
 
getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
If the type is not primitive, returns the class of the type if known
getValue(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
getValueLocation(XmlContext, Attr) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node
getValueLocation(Attr) - Method in class com.android.tools.lint.detector.api.XmlContext
Returns the location for value-portion of the given attribute
getValues() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
getXmlParser() - Method in class com.android.tools.lint.client.api.LintClient
Returns a XmlParser to use to parse XML
globToRegexp(String) - Static method in class com.android.tools.lint.client.api.DefaultConfiguration
 
GRADLE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single Gradle build file

H

hashCode() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
hashCode() - Method in class com.android.tools.lint.detector.api.Project
 
hasPadding(Element) - Method in class com.android.tools.lint.detector.api.LayoutDetector
 
hasParserErrors() - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether lint has encountered any files with fatal parser errors (e.g.

I

I18N - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to internationalization
ICONS - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to icons
idReferencesMatch(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given two id references match.
ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.Configuration
Marks the given warning as "ignored".
ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
ignore(Issue, File) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
Marks the given issue and file combination as being ignored.
Implementation - Class in com.android.tools.lint.detector.api
An Implementation of an Issue maps to the Detector class responsible for analyzing the issue, as well as the Scope required by the detector to perform its analysis.
Implementation(Class<? extends Detector>, EnumSet<Scope>) - Constructor for class com.android.tools.lint.detector.api.Implementation
Creates a new implementation for analyzing one or more issues
Implementation(Class<? extends Detector>, EnumSet<Scope>, EnumSet<Scope>...) - Constructor for class com.android.tools.lint.detector.api.Implementation
Creates a new implementation for analyzing one or more issues
infer(Collection<Project>) - Static method in enum com.android.tools.lint.detector.api.Scope
Infers a suitable scope to use from the given projects to be analyzed
initialize() - Method in class com.android.tools.lint.detector.api.Project
 
intersect(EnumSet<Scope>, EnumSet<Scope>) - Static method in enum com.android.tools.lint.detector.api.Scope
Returns the intersection of two scope sets
isAbbreviating() - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether lint should abbreviate output when appropriate.
isAdequate(EnumSet<Scope>) - Method in class com.android.tools.lint.detector.api.Implementation
Returns true if the given scope is adequate for analyzing this issue.
isAndroidProject() - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project is an Android project.
isAnonymousClass(ClassNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given class node represents an anonymous inner class
isAospFrameworksProject(File) - Static method in class com.android.tools.lint.detector.api.Project
Is this the frameworks AOSP project? Needs some hardcoded support since it doesn't have a manifest file, etc.
isArray() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
isArray() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Returns true if the given TypeDescriptor represents an array
isBitmapFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given file represents a bitmap drawable file
isCategoryName(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns true if the given category is a valid category
isConstructor() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
isConstructor() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
 
isContextMethod(MethodInvocation) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns true if the given method invocation node corresponds to a call on a android.content.Context
isCustomIssue(Issue) - Method in class com.android.tools.lint.client.api.LintDriver
Returns true if the given issue is an issue that was loaded as a custom rule (e.g.
isEnabled(Issue) - Method in class com.android.tools.lint.client.api.Configuration
Returns false if the given issue has been disabled.
isEnabled(Issue) - Method in class com.android.tools.lint.detector.api.Context
Returns false if the given issue has been disabled.
isEnabledByDefault() - Method in class com.android.tools.lint.detector.api.Issue
Returns whether this issue should be enabled by default, unless the user has explicitly disabled it.
isEnglishResource(XmlContext, boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
Check whether the given resource file is in an English locale
isFileBasedResourceType(ResourceType) - Static method in class com.android.tools.lint.detector.api.LintUtils
Determine if the given type corresponds to a resource that has a unique file
isFromClassLibrary() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns whether this class is part of a library (not this project).
isGradleProject(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns true if this project is a Gradle-based Android project
isGradleProject() - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project is a Gradle-based Android project
isHeightFillParent(Element) - Static method in class com.android.tools.lint.detector.api.LayoutDetector
 
isIgnored(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.Configuration
Checks whether this issue should be ignored because the user has already suppressed the error? Note that this refers to individual issues being suppressed/ignored, not a whole detector being disabled via something like Configuration.isEnabled(Issue).
isIgnored(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
isImplementing(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Determines whether this is implementing the given interface.
isImported(Node, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given class (specified by a fully qualified class name) name is imported in the given compilation unit either through a fully qualified import or by a wildcard import.
isInheritingFrom(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Determines whether this class extends or implements the class of the given name.
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Returns true if this element is in the given package (or optionally, in one of its sub packages)
isIssueId(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
Returns true if the given id represents a valid issue id
isJavaSymbol() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
 
isLayout(String) - Method in class com.android.tools.lint.client.api.SdkInfo
Returns true if the given widget name is a layout
isLibrary() - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project is an Android library project
isManifestFolder(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given directory is a lint manifest file directory.
isMergingManifests() - Method in class com.android.tools.lint.detector.api.Project
Returns whether manifest merging is in effect
isModelOlderThan(AndroidProject, int, int, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given Gradle model is older than the given version number
isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Returns true if the given TypeDescriptor represents a primitive
isProjectDirectory(File) - Method in class com.android.tools.lint.client.api.LintClient
Returns true if the given directory is a lint project directory.
isReleaseMode() - Method in class com.android.tools.lint.client.api.LintRequest
Returns true if lint is invoked as part of a release mode build, false if it is part of a debug mode build, and null if the release mode is not known
isRootElement(Element) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given element is the root element of its document
isSameResourceFile(File, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given two paths point to the same logical resource file within a source set.
isStaticInnerClass(ClassNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given class node represents a static inner class.
isSubclassOf(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Determines whether this class extends the given name.
isSubclassOf(Project, String, String) - Method in class com.android.tools.lint.client.api.LintClient
Checks whether the given name is a subclass of the given super class.
isSubclassOf(ClassNode, String) - Method in class com.android.tools.lint.client.api.LintDriver
Returns true if the given class is a subclass of the given super class.
isSubViewOf(String, String) - Method in class com.android.tools.lint.client.api.SdkInfo
Returns true if the given child view is the same class or a sub class of the given parent view class
Issue - Class in com.android.tools.lint.detector.api
An issue is a potential bug in an Android application.
IssueRegistry - Class in com.android.tools.lint.client.api
Registry which provides a list of checks to be performed on an Android project
IssueRegistry() - Constructor for class com.android.tools.lint.client.api.IssueRegistry
Creates a new IssueRegistry
isSuppressed(Issue, ClassNode, MethodNode, AbstractInsnNode) - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether the given issue is suppressed in the given method.
isSuppressed(Issue, FieldNode) - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether the given issue is suppressed for the given field.
isSuppressed(Issue, ClassNode) - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether the given issue is suppressed in the given class.
isSuppressed(JavaContext, Issue, Node) - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether the given issue is suppressed in the given parse tree node.
isSuppressed(XmlContext, Issue, Node) - Method in class com.android.tools.lint.client.api.LintDriver
Returns whether the given issue is suppressed in the given XML DOM node.
isSuppressedWithComment(int, Issue) - Method in class com.android.tools.lint.detector.api.Context
Returns true if the given issue is suppressed at the given character offset in the file's contents
isSuppressedWithComment(Node, Issue) - Method in class com.android.tools.lint.detector.api.JavaContext
 
isSuppressedWithComment(Node, Issue) - Method in class com.android.tools.lint.detector.api.XmlContext
 
isWholeWord() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
 
isWidthFillParent(Element) - Static method in class com.android.tools.lint.detector.api.LayoutDetector
 
isXmlFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given file represents an XML file

J

JAVA_AND_RESOURCE_FILES - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by single XML and Java source files
JAVA_FILE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single Java source file
JAVA_LIBRARY_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by Java libraries
JavaContext - Class in com.android.tools.lint.detector.api
A Context used when checking Java files.
JavaContext(LintDriver, Project, Project, File, JavaParser) - Constructor for class com.android.tools.lint.detector.api.JavaContext
Constructs a JavaContext for running lint on the given file, with the given scope, in the given project reporting errors to the given client.
JavaParser - Class in com.android.tools.lint.client.api
A wrapper for a Java parser.
JavaParser() - Constructor for class com.android.tools.lint.client.api.JavaParser
 
JavaParser.DefaultTypeDescriptor - Class in com.android.tools.lint.client.api
Convenience implementation of JavaParser.TypeDescriptor
JavaParser.DefaultTypeDescriptor(String) - Constructor for class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
JavaParser.ResolvedAnnotation - Class in com.android.tools.lint.client.api
An annotation reference.
JavaParser.ResolvedAnnotation() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
 
JavaParser.ResolvedAnnotation.Value - Class in com.android.tools.lint.client.api
 
JavaParser.ResolvedAnnotation.Value(String, Object) - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
 
JavaParser.ResolvedClass - Class in com.android.tools.lint.client.api
A resolved class declaration (class, interface, enumeration or annotation)
JavaParser.ResolvedClass() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedClass
 
JavaParser.ResolvedField - Class in com.android.tools.lint.client.api
A field declaration
JavaParser.ResolvedField() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedField
 
JavaParser.ResolvedMethod - Class in com.android.tools.lint.client.api
A method or constructor declaration
JavaParser.ResolvedMethod() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
 
JavaParser.ResolvedNode - Class in com.android.tools.lint.client.api
A resolved declaration from an AST Node reference
JavaParser.ResolvedNode() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedNode
 
JavaParser.ResolvedPackage - Class in com.android.tools.lint.client.api
A package declaration
JavaParser.ResolvedPackage() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
 
JavaParser.ResolvedVariable - Class in com.android.tools.lint.client.api
A local variable or parameter declaration
JavaParser.ResolvedVariable() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
 
JavaParser.TypeDescriptor - Class in com.android.tools.lint.client.api
A description of a type, such as a primitive int or the android.app.Activity class
JavaParser.TypeDescriptor() - Constructor for class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
 
JavaVisitor - Class in com.android.tools.lint.client.api
Specialized visitor for running detectors on a Java AST.

L

LayoutDetector - Class in com.android.tools.lint.detector.api
Abstract class specifically intended for layout detectors which provides some common utility methods shared by layout detectors.
LayoutDetector() - Constructor for class com.android.tools.lint.detector.api.LayoutDetector
 
LINT - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to running lint itself
LINT_ERROR - Static variable in class com.android.tools.lint.client.api.IssueRegistry
Issue reported by lint for various other issues which prevents lint from running normally when it's not necessarily an error in the user's code base.
LintClient - Class in com.android.tools.lint.client.api
Information about the tool embedding the lint analyzer.
LintClient() - Constructor for class com.android.tools.lint.client.api.LintClient
 
LintClient.ClassPathInfo - Class in com.android.tools.lint.client.api
Information about class paths (sources, class files and libraries) usually associated with a project.
LintClient.ClassPathInfo(List<File>, List<File>, List<File>, List<File>, List<File>) - Constructor for class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
LintDriver - Class in com.android.tools.lint.client.api
Analyzes Android projects and files
LintDriver(IssueRegistry, LintClient) - Constructor for class com.android.tools.lint.client.api.LintDriver
Creates a new LintDriver
LintListener - Interface in com.android.tools.lint.client.api
Interface implemented by listeners to be notified of lint events
LintListener.EventType - Enum in com.android.tools.lint.client.api
The various types of events provided to lint listeners
LintRequest - Class in com.android.tools.lint.client.api
Information about a request to run lint
LintRequest(LintClient, List<File>) - Constructor for class com.android.tools.lint.client.api.LintRequest
Creates a new LintRequest, to be passed to a LintDriver
LintUtils - Class in com.android.tools.lint.detector.api
Useful utility methods related to lint.
Location - Class in com.android.tools.lint.detector.api
Location information for a warning

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.

Location(File, Position, Position) - Constructor for class com.android.tools.lint.detector.api.Location
(Private constructor, use one of the factory methods Location.create(File), Location.create(File, Position, Position), or Location.create(File, String, int, int).
Location.DefaultLocationHandle - Class in com.android.tools.lint.detector.api
A default Location.Handle implementation for simple file offsets
Location.DefaultLocationHandle(Context, int, int) - Constructor for class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
Constructs a new Location.DefaultLocationHandle
Location.Handle - Interface in com.android.tools.lint.detector.api
A Location.Handle is a reference to a location.
Location.ResourceItemHandle - Class in com.android.tools.lint.detector.api
 
Location.ResourceItemHandle(ResourceItem) - Constructor for class com.android.tools.lint.detector.api.Location.ResourceItemHandle
 
Location.SearchDirection - Enum in com.android.tools.lint.detector.api
Whether to look forwards, or backwards, or in both directions, when searching for a pattern in the source code to determine the right position range for a given symbol.
Location.SearchHints - Class in com.android.tools.lint.detector.api
Extra information pertaining to finding a symbol in a source buffer, used by Location.create(File, String, int, String, String, SearchHints)
log(Throwable, String, Object...) - Method in class com.android.tools.lint.client.api.LintClient
Send an exception or error message (with warning severity) to the log
log(Severity, Throwable, String, Object...) - Method in class com.android.tools.lint.client.api.LintClient
Send an exception or error message to the log
log(Throwable, String, Object...) - Method in class com.android.tools.lint.detector.api.Context
Send an exception to the log.

M

mAllLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
MANIFEST_AND_RESOURCE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Resource XML files and manifest files
MANIFEST_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by the manifest only
mAppCompat - Variable in class com.android.tools.lint.detector.api.Project
 
matchConstructor() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
Indicates that pattern matches should apply to constructors.
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Returns whether this field name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Returns whether this class' fully qualified name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Returns whether this field name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Returns whether this method name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
Returns whether this variable name matches the given name
matchesName(String) - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
matchesName(String) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
 
matchesSignature(String) - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
matchesSignature(String) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
 
matchJavaSymbol() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
Indicates that pattern matches should apply to Java symbols only
matchWholeWord() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
Indicates that pattern matches should apply to whole words only
mBuildSdk - Variable in class com.android.tools.lint.detector.api.Project
 
mClient - Variable in class com.android.tools.lint.client.api.LintRequest
 
mClient - Variable in class com.android.tools.lint.detector.api.Project
 
mConfiguration - Variable in class com.android.tools.lint.detector.api.Project
 
mDir - Variable in class com.android.tools.lint.detector.api.Project
 
mDirectLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
mDriver - Variable in class com.android.tools.lint.detector.api.Context
The driver running through the checks
MESSAGES - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to messages/strings
mFiles - Variable in class com.android.tools.lint.client.api.LintRequest
 
mFiles - Variable in class com.android.tools.lint.detector.api.Project
If non null, specifies a non-empty list of specific files under this project which should be checked.
mGradleFiles - Variable in class com.android.tools.lint.detector.api.Project
 
mGradleProject - Variable in class com.android.tools.lint.detector.api.Project
 
mJavaClassFolders - Variable in class com.android.tools.lint.detector.api.Project
 
mJavaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
mJavaSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
mLibrary - Variable in class com.android.tools.lint.detector.api.Project
 
mManifestFiles - Variable in class com.android.tools.lint.detector.api.Project
 
mManifestMinSdk - Variable in class com.android.tools.lint.detector.api.Project
 
mManifestTargetSdk - Variable in class com.android.tools.lint.detector.api.Project
 
mMergeManifests - Variable in class com.android.tools.lint.detector.api.Project
 
mName - Variable in class com.android.tools.lint.detector.api.Project
 
mNonProvidedJavaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
mPackage - Variable in class com.android.tools.lint.detector.api.Project
 
mProguardFiles - Variable in class com.android.tools.lint.detector.api.Project
 
mProguardPath - Variable in class com.android.tools.lint.detector.api.Project
 
mProjects - Variable in class com.android.tools.lint.client.api.LintRequest
 
mReferenceDir - Variable in class com.android.tools.lint.detector.api.Project
 
mReleaseMode - Variable in class com.android.tools.lint.client.api.LintRequest
 
mReportIssues - Variable in class com.android.tools.lint.detector.api.Project
 
mResourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
mScope - Variable in class com.android.tools.lint.client.api.LintRequest
 
mSdk - Variable in class com.android.tools.lint.client.api.LintClient
 
mSdkInfo - Variable in class com.android.tools.lint.detector.api.Project
The SDK info, if any
mSupportLib - Variable in class com.android.tools.lint.detector.api.Project
 
mTarget - Variable in class com.android.tools.lint.detector.api.Project
 
mTargets - Variable in class com.android.tools.lint.client.api.LintClient
 
mTestSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 

N

name - Variable in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
 

O

openConnection(URL) - Method in class com.android.tools.lint.client.api.LintClient
Opens a URL connection.
OTHER_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which correspond to some other context

P

parseJava(JavaContext) - Method in class com.android.tools.lint.client.api.JavaParser
Parse the file pointed to by the given context.
PARSER_ERROR - Static variable in class com.android.tools.lint.client.api.IssueRegistry
Issue reported by lint (not a specific detector) when it cannot even parse an XML file prior to analysis
parseXml(XmlContext) - Method in class com.android.tools.lint.client.api.XmlParser
Parse the file pointed to by the given context and return as a Document
PERFORMANCE - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to performance
Position - Class in com.android.tools.lint.detector.api
Information about a position in a file/document.
Position() - Constructor for class com.android.tools.lint.detector.api.Position
 
prepare(List<JavaContext>) - Method in class com.android.tools.lint.client.api.JavaVisitor
 
prepareJavaParse(List<JavaContext>) - Method in class com.android.tools.lint.client.api.JavaParser
Prepare to parse the given contexts.
PROGUARD_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single ProGuard class file
Project - Class in com.android.tools.lint.detector.api
A project contains information about an Android project being scanned for Lint errors.
Project(LintClient, File, File) - Constructor for class com.android.tools.lint.detector.api.Project
Creates a new Project.
PROPERTY_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which correspond to property files
putProperty(Object, Object) - Method in class com.android.tools.lint.client.api.LintDriver
Records a property for later retrieval by LintDriver.getProperty(Object)

R

readBytes(File) - Method in class com.android.tools.lint.client.api.LintClient
Reads the given binary file and returns the content as a byte array.
readFile(File) - Method in class com.android.tools.lint.client.api.LintClient
Reads the given text file and returns the content as a string
readManifest(Document) - Method in class com.android.tools.lint.detector.api.Project
Initialized the manifest state from the given manifest model
registerProject(File, Project) - Method in class com.android.tools.lint.client.api.LintClient
Registers the given project for the given directory.
removeLintListener(LintListener) - Method in class com.android.tools.lint.client.api.LintDriver
Removes a listener such that it is no longer notified of progress
replaceDetector(Class<? extends Detector>) - Method in class com.android.tools.lint.client.api.LintClient
Returns an optimal detector, if applicable.
report(Context, Issue, Severity, Location, String, TextFormat) - Method in class com.android.tools.lint.client.api.LintClient
Report the given issue.
report(Issue, Location, String) - Method in class com.android.tools.lint.detector.api.ClassContext
Reports an issue.
report(Issue, MethodNode, AbstractInsnNode, Location, String) - Method in class com.android.tools.lint.detector.api.ClassContext
Reports an issue applicable to a given method node.
report(Issue, FieldNode, Location, String) - Method in class com.android.tools.lint.detector.api.ClassContext
Reports an issue applicable to a given method node.
report(Issue, MethodNode, AbstractInsnNode, Location, String, Object) - Method in class com.android.tools.lint.detector.api.ClassContext
Deprecated. Use ClassContext.report(Issue, FieldNode, Location, String) instead; this method is here for custom rule compatibility
report(Issue, FieldNode, Location, String, Object) - Method in class com.android.tools.lint.detector.api.ClassContext
Deprecated. Use ClassContext.report(Issue, FieldNode, Location, String) instead; this method is here for custom rule compatibility
report(Issue, Location, String) - Method in class com.android.tools.lint.detector.api.Context
Reports an issue.
report(Issue, Location, String, Object) - Method in class com.android.tools.lint.detector.api.Context
Deprecated. Use Context.report(Issue, Location, String) instead; this method is here for custom rule compatibility
report(Issue, Location, String) - Method in class com.android.tools.lint.detector.api.JavaContext
 
report(Issue, Node, Location, String) - Method in class com.android.tools.lint.detector.api.JavaContext
Reports an issue applicable to a given AST node.
report(Issue, Node, Location, String, Object) - Method in class com.android.tools.lint.detector.api.JavaContext
Deprecated. Use JavaContext.report(Issue, Node, Location, String) instead; this method is here for custom rule compatibility
report(Issue, Node, Location, String) - Method in class com.android.tools.lint.detector.api.XmlContext
Reports an issue applicable to a given DOM node.
report(Issue, Node, Location, String, Object) - Method in class com.android.tools.lint.detector.api.XmlContext
Deprecated. Use XmlContext.report(Issue, org.w3c.dom.Node, Location, String) instead; this method is here for custom rule compatibility
report(Issue, Location, String) - Method in class com.android.tools.lint.detector.api.XmlContext
 
requestRepeat(Detector, EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.LintDriver
Requests another pass through the data for the given detector.
requestRepeat(Detector, EnumSet<Scope>) - Method in class com.android.tools.lint.detector.api.Context
Requests another pass through the data for the given detector.
reset() - Static method in class com.android.tools.lint.client.api.IssueRegistry
Reset the registry such that it recomputes its available issues.
resolve(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Resolves the given expression node: computes the declaration for the given symbol
resolve(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
 
resolve() - Method in class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
 
resolve() - Method in interface com.android.tools.lint.detector.api.Location.Handle
Compute a full location for the given handle
resolve() - Method in class com.android.tools.lint.detector.api.Location.ResourceItemHandle
 
RESOURCE_FILE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single resource file
RESOURCE_FOLDER_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
Scope-set used for detectors which are affected by a single resource folder
ResourceContext - Class in com.android.tools.lint.detector.api
A Context used when checking resource files (both bitmaps and XML files; for XML files a subclass of this context is used: XmlContext.)

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.

ResourceContext(LintDriver, Project, Project, File, ResourceFolderType) - Constructor for class com.android.tools.lint.detector.api.ResourceContext
Construct a new ResourceContext
ResourceXmlDetector - Class in com.android.tools.lint.detector.api
Specialized detector intended for XML resources.
ResourceXmlDetector() - Constructor for class com.android.tools.lint.detector.api.ResourceXmlDetector
 
reverse(Location) - Static method in class com.android.tools.lint.detector.api.Location
Reverses the secondary location list initiated by the given location
RTL - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to right to left and bi-directional text support
run(Context) - Method in class com.android.tools.lint.detector.api.Detector
Runs the detector.
run(Context) - Method in class com.android.tools.lint.detector.api.ResourceXmlDetector
 

S

Scope - Enum in com.android.tools.lint.detector.api
The scope of a detector is the set of files a detector must consider when performing its analysis.
SdkInfo - Class in com.android.tools.lint.client.api
Information about SDKs
SdkInfo() - Constructor for class com.android.tools.lint.client.api.SdkInfo
 
SECURITY - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to security
setAbbreviating(boolean) - Method in class com.android.tools.lint.client.api.LintDriver
Sets whether lint should abbreviate output when appropriate.
setClientData(Object) - Method in class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
 
setClientData(Object) - Method in interface com.android.tools.lint.detector.api.Location.Handle
Sets the client data associated with this location.
setClientData(Object) - Method in class com.android.tools.lint.detector.api.Location.ResourceItemHandle
 
setClientData(Object) - Method in class com.android.tools.lint.detector.api.Location
Sets the client data associated with this location.
setCompilationUnit(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
Sets the compilation result.
setEnabledByDefault(boolean) - Method in class com.android.tools.lint.detector.api.Issue
Sets whether this issue is enabled by default.
setHasParserErrors(boolean) - Method in class com.android.tools.lint.client.api.LintDriver
Sets whether lint has encountered files with fatal parser errors.
setImplementation(Implementation) - Method in class com.android.tools.lint.detector.api.Issue
Sets the implementation for the given issue.
setLocation(Location) - Method in exception com.android.tools.lint.client.api.CircularDependencyException
Sets the associated location, if any
setMessage(String) - Method in class com.android.tools.lint.detector.api.Location
Sets a custom message for this location.
setName(String) - Method in class com.android.tools.lint.detector.api.Project
Sets the name of the project
setProject(Project) - Method in exception com.android.tools.lint.client.api.CircularDependencyException
Sets the associated project, if any
setProjects(Collection<Project>) - Method in class com.android.tools.lint.client.api.LintRequest
Sets the projects for the lint requests.
setProperty(String, Object) - Method in class com.android.tools.lint.detector.api.Context
Sets the value of the given named property.
setReleaseMode(Boolean) - Method in class com.android.tools.lint.client.api.LintRequest
Sets the release mode.
setReportIssues(boolean) - Method in class com.android.tools.lint.detector.api.Project
Sets whether lint should report issues in this project.
setScope(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.LintDriver
Sets the scope for the lint job
setScope(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.LintRequest
Sets the scope to use; lint checks which require a wider scope set will be ignored
setSecondary(Location) - Method in class com.android.tools.lint.detector.api.Location
Sets a secondary location for this location.
setSeverity(Issue, Severity) - Method in class com.android.tools.lint.client.api.Configuration
Sets the severity to be used for this issue.
setSeverity(Issue, Severity) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
Severity - Enum in com.android.tools.lint.detector.api
Severity of an issue found by lint

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.

Speed - Enum in com.android.tools.lint.detector.api
Enum which describes the different computation speeds of various detectors
splitPath(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Splits the given path into its individual parts, attempting to be tolerant about path separators (: or ;).
startBulkEditing() - Method in class com.android.tools.lint.client.api.Configuration
Marks the beginning of a "bulk" editing operation with repeated calls to Configuration.setSeverity(com.android.tools.lint.detector.api.Issue, com.android.tools.lint.detector.api.Severity) or Configuration.ignore(com.android.tools.lint.detector.api.Context, com.android.tools.lint.detector.api.Issue, com.android.tools.lint.detector.api.Location, java.lang.String).
startBulkEditing() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
startsWith(String, String, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Case insensitive starts with
stripIdPrefix(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the given id without an @id/ or @+id prefix
sTryPrefixLookup - Static variable in class com.android.tools.lint.detector.api.LintUtils
Whether we should attempt to look up the prefix from the model.
supportsProjectResources() - Method in class com.android.tools.lint.client.api.LintClient
Returns true if this client supports project resource repository lookup via LintClient.getProjectResources(Project,boolean)

T

TextFormat - Enum in com.android.tools.lint.detector.api
Lint error message, issue explanations and location descriptions are described in a TextFormat.RAW format which looks similar to text but which can contain bold, symbols and links.
toHtml(String) - Method in enum com.android.tools.lint.detector.api.TextFormat
Converts the given text to HTML
toString() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
 
toString() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
 
toString() - Method in class com.android.tools.lint.detector.api.Implementation
 
toString() - Method in class com.android.tools.lint.detector.api.Issue
 
toString() - Method in class com.android.tools.lint.detector.api.Location
 
toString() - Method in class com.android.tools.lint.detector.api.Project
 
toText(String) - Method in enum com.android.tools.lint.detector.api.TextFormat
Converts the given text to plain text
TYPE_BOOLEAN - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_BYTE - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_CHAR - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_DOUBLE - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_FLOAT - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_INT - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_LONG - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_NULL - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_OBJECT - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_SHORT - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_STRING - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPOGRAPHY - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to typography

U

update(LintDriver, LintListener.EventType, Context) - Method in interface com.android.tools.lint.client.api.LintListener
Notifies listeners that the event of the given type has occurred.
USABILITY - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to usability

V

value - Variable in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
 
valueOf(String) - Static method in enum com.android.tools.lint.client.api.LintListener.EventType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.Location.SearchDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.Scope
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.Severity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.Speed
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.TextFormat
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.android.tools.lint.client.api.LintListener.EventType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.tools.lint.detector.api.Location.SearchDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.tools.lint.detector.api.Scope
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.tools.lint.detector.api.Severity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.tools.lint.detector.api.Speed
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.tools.lint.detector.api.TextFormat
Returns an array containing the constants of this enum type, in the order they are declared.
visitAttribute(XmlContext, Attr) - Method in class com.android.tools.lint.detector.api.Detector
 
visitAttribute(XmlContext, Attr) - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Visit the given attribute.
visitBuildScript(Context, Map<String, Object>) - Method in interface com.android.tools.lint.detector.api.Detector.GradleScanner
 
visitBuildScript(Context, Map<String, Object>) - Method in class com.android.tools.lint.detector.api.Detector
 
visitConstructor(JavaContext, AstVisitor, ConstructorInvocation, JavaParser.ResolvedMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Method invoked for any constructor calls found that matches any names returned by Detector.JavaScanner.getApplicableConstructorTypes().
visitConstructor(JavaContext, AstVisitor, ConstructorInvocation, JavaParser.ResolvedMethod) - Method in class com.android.tools.lint.detector.api.Detector
 
visitDocument(XmlContext, Document) - Method in class com.android.tools.lint.detector.api.Detector
 
visitDocument(XmlContext, Document) - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Visit the given document.
visitElement(XmlContext, Element) - Method in class com.android.tools.lint.detector.api.Detector
 
visitElement(XmlContext, Element) - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Visit the given element.
visitElementAfter(XmlContext, Element) - Method in class com.android.tools.lint.detector.api.Detector
 
visitElementAfter(XmlContext, Element) - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Visit the given element after its children have been analyzed.
visitMethod(JavaContext, AstVisitor, MethodInvocation) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Method invoked for any method calls found that matches any names returned by Detector.JavaScanner.getApplicableMethodNames().
visitMethod(JavaContext, AstVisitor, MethodInvocation) - Method in class com.android.tools.lint.detector.api.Detector
 
visitResourceReference(JavaContext, AstVisitor, Node, String, String, boolean) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Called for any resource references (such as R.layout.main found in Java code, provided this detector returned true from Detector.JavaScanner.appliesToResourceRefs().
visitResourceReference(JavaContext, AstVisitor, Node, String, String, boolean) - Method in class com.android.tools.lint.detector.api.Detector
 

X

XmlContext - Class in com.android.tools.lint.detector.api
A Context used when checking XML files.
XmlContext(LintDriver, Project, Project, File, ResourceFolderType, XmlParser) - Constructor for class com.android.tools.lint.detector.api.XmlContext
Construct a new XmlContext
XmlParser - Class in com.android.tools.lint.client.api
A wrapper for an XML parser.
XmlParser() - Constructor for class com.android.tools.lint.client.api.XmlParser
 

A B C D E F G H I J L M N O P R S T U V X