Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 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
allLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
allowDereference(boolean) - Method in class com.android.tools.lint.detector.api.ResourceEvaluator
Whether we allow dereferencing resources when computing constants; e.g.
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.
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).
appCompat - Variable in class com.android.tools.lint.detector.api.Project
 
applicableSuperClasses() - Method in class com.android.tools.lint.detector.api.Detector
 
applicableSuperClasses() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Returns a list of fully qualified names for super classes that this detector cares about.
applicableSuperClasses() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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
Deprecated.
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(ResourceFolderType) - Method in class com.android.tools.lint.detector.api.ResourceXmlDetector
Returns whether this detector applies to the given folder type.
appliesToResourceRefs() - Method in class com.android.tools.lint.detector.api.Detector
 
appliesToResourceRefs() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Returns whether this detector cares about Android resource references (such as R.layout.main or R.string.app_name).
appliesToResourceRefs() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
Returns whether this detector cares about Android resource references (such as R.layout.main or R.string.app_name).
areSignaturesEqual(PsiMethod, PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
argumentMatchesType(int, String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
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
assetFolders - Variable in class com.android.tools.lint.detector.api.Project
 

B

BASELINE - 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.
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
buildSdk - Variable in class com.android.tools.lint.detector.api.Project
 

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.
CharSequences - Class in com.android.tools.lint.detector.api
A number of utility methods around CharSequence handling, which adds methods that are available on Strings (such as indexOf, startsWith and regionMatches and provides equivalent methods for character sequences.
CharSequences() - Constructor for class com.android.tools.lint.detector.api.CharSequences
 
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
Deprecated.
checkClass(ClassContext, ClassNode) - Method in class com.android.tools.lint.detector.api.Detector
 
checkClass(JavaContext, PsiClass) - 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, PsiClass) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Called for each class that extends one of the super classes specified with Detector.JavaPsiScanner.applicableSuperClasses().
checkClass(JavaContext, ClassDeclaration, Node, JavaParser.ResolvedClass) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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
CHROME_OS - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to Chrome OS devices
CircularDependencyException - Exception in com.android.tools.lint.client.api
Exception thrown when there is a circular dependency, such as a circular dependency of library project references
CircularDependencyException(String) - Constructor for exception com.android.tools.lint.client.api.CircularDependencyException
 
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, CharSequence) - Constructor for class com.android.tools.lint.detector.api.ClassContext
Construct a new ClassContext
ClassPathInfo(List<File>, List<File>, List<File>, List<File>, List<File>, List<File>) - Constructor for class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
clearCrashCount() - Static method in class com.android.tools.lint.client.api.LintDriver
For testing only: clears the crash counter
client - Variable in class com.android.tools.lint.client.api.LintRequest
 
client - Variable in class com.android.tools.lint.detector.api.Project
 
CLIENT_CLI - Static variable in class com.android.tools.lint.client.api.LintClient
The client name returned by LintClient.getClientName() when running in the CLI (command line interface) version of lint, lint
CLIENT_GRADLE - Static variable in class com.android.tools.lint.client.api.LintClient
The client name returned by LintClient.getClientName() when running in Gradle
CLIENT_STUDIO - Static variable in class com.android.tools.lint.client.api.LintClient
The client name returned by LintClient.getClientName() when running in Android Studio/IntelliJ IDEA
CLIENT_UNKNOWN - Static variable in class com.android.tools.lint.client.api.LintClient
The client name returned by LintClient.getClientName() when running in some unknown client
close() - Method in class com.android.tools.lint.client.api.LintBaseline
Finishes writing the baseline
closeConnection(URLConnection) - Method in class com.android.tools.lint.client.api.LintClient
Closes a connection previously returned by LintClient.openConnection(URL)
COLOR_INT_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
COLOR_INT_MARKER_TYPE - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
Marker ResourceType used to signify that an expression is of type @ColorInt, which isn't actually a ResourceType but one we want to specifically compare with.
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
computeResourceName(String, String, ResourceFolderType) - 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
 
configuration - Variable in class com.android.tools.lint.detector.api.Project
 
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
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, CharSequence, 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, CharSequence, 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
Deprecated.
createJavaVisitor(JavaContext) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
Create a parse tree visitor to process the parse tree.
createLocation(PsiElement) - Method in class com.android.tools.lint.client.api.JavaParser
 
createLocationHandle(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Deprecated.
Use PSI instead (where handles aren't necessary; use PsiElement directly)
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
Deprecated.
Location handles aren't needed for AST nodes anymore; just use the PsiElement from the AST
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
createPsiVisitor(JavaContext) - Method in class com.android.tools.lint.detector.api.Detector
 
createPsiVisitor(JavaContext) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Create a parse tree visitor to process the parse tree.
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
createSequence(char[]) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
createSequence(char[], int, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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.
createUrlClassLoader(URL[], ClassLoader) - Method in class com.android.tools.lint.client.api.LintClient
Creates a ClassLoader which can load in a set of Jar files.

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
 
DefaultLocationHandle(Context, int, int) - Constructor for class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
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
DefaultTypeDescriptor(String) - Constructor for class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
dependsOn(String) - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project depends on the given artifact.
describeCounts(int, int, boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns a description of counts for errors and warnings, such as "5 errors and 2 warnings" or "3 errors" or "2 warnings"
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 (typically bitmaps but also files in res/raw)
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.JavaPsiScanner - Interface in com.android.tools.lint.detector.api
Interface to be implemented by lint detectors that want to analyze Java source files.
Detector.JavaScanner - Interface in com.android.tools.lint.detector.api
Deprecated.
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
DIMENSION_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
DIMENSION_MARKER_TYPE - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
Marker ResourceType used to signify that an expression is of type @Px, which isn't actually a ResourceType but one we want to specifically compare with.
dir - Variable in class com.android.tools.lint.detector.api.Project
 
directLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
dirToProject - Variable in class com.android.tools.lint.client.api.LintClient
A map from directory to existing projects, or null.
dispose(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
dispose(JavaContext, PsiJavaFile) - 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.JavaPsiVisitor
 
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
driver - Variable in class com.android.tools.lint.detector.api.Context
The driver running through the checks

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.
editDistance(String, String, int) - 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
Deprecated.
 
equals(Object) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
equals(Object) - Method in class com.android.tools.lint.detector.api.Category
 
equals(Object) - Method in class com.android.tools.lint.detector.api.Project
 
erasure(PsiType) - Static method in class com.android.tools.lint.client.api.JavaEvaluator
 
evaluate(Node) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator
evaluate(PsiElement) - 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
evaluate(JavaContext, PsiElement) - 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.
evaluate(Node) - Method in class com.android.tools.lint.detector.api.TypeEvaluator
Deprecated.
evaluate(PsiElement) - Method in class com.android.tools.lint.detector.api.TypeEvaluator
Returns the inferred type of the given node
evaluate(JavaContext, Node) - Static method in class com.android.tools.lint.detector.api.TypeEvaluator
evaluate(JavaContext, PsiElement) - Static method in class com.android.tools.lint.detector.api.TypeEvaluator
Evaluates the given node and returns the likely type of the instance.
evaluateString(JavaContext, Node, boolean) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
evaluateString(JavaContext, PsiElement, 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.
extendsClass(PsiClass, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 

F

file - Variable in class com.android.tools.lint.detector.api.Context
The file being checked.
files - Variable in class com.android.tools.lint.client.api.LintRequest
 
files - 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.
findAndMark(Issue, Location, String, Severity, Project) - Method in class com.android.tools.lint.client.api.LintBaseline
Checks whether the given warning (of the given issue type, message and location) is present in this baseline, and if so marks it as used such that a second call will not find it.
findAnnotation(PsiModifierListOwner, String...) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
findAnnotationInHierarchy(PsiModifierListOwner, String...) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
findAstNode() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
Attempts to find the corresponding AST node, if possible.
findClass(String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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
Deprecated.
findElementAt(JavaContext, int) - Method in class com.android.tools.lint.client.api.JavaParser
Returns the leaf element at the given offset (biased towards the right), or null if not found
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.
findJarPath(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Try to determine the path to the .jar file containing the element, if applicable
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
findNameElement(PsiElement) - Static method in class com.android.tools.lint.detector.api.JavaContext
Searches for a name node corresponding to the given node
findNameNode(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
findNodeAt(XmlContext, int) - Method in class com.android.tools.lint.client.api.XmlParser
Returns the leaf node at the given offset (biased towards the right), or null if not found
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
Deprecated.
Use PsiTreeUtil.getParentOfType(PsiElement, Class[]) with PsiMethod.class instead
findSurroundingMethod(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
Use PsiTreeUtil.getParentOfType(PsiElement, Class[]) with PsiMethod.class instead
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.
fromLintOptionSeverity(int) - Static method in enum com.android.tools.lint.detector.api.Severity
Returns a severity corresponding to the various LintOptions severity constants
fromName(String) - Static method in enum com.android.tools.lint.detector.api.Severity
Looks up the severity corresponding to a given named severity.

G

get(LintClient, File) - Static method in class com.android.tools.lint.client.api.JarFileIssueRegistry
 
getAllAnnotations(PsiModifierListOwner, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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
Deprecated.
Searches for the annotation of the given type on this node
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
Returns any annotations defined on this node
getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
Deprecated.
 
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.JavaPsiScanner
Return the list of constructor types this detector is interested in, or null.
getApplicableConstructorTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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.JavaPsiScanner
Return the list of method names this detector is interested in, or null.
getApplicableMethodNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
Return the list of method names this detector is interested in, or null.
getApplicableNodeTypes() - Method in class com.android.tools.lint.detector.api.Detector
Deprecated.
getApplicableNodeTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
Return the types of AST nodes that the visitor returned from Detector.JavaScanner.createJavaVisitor(JavaContext) should visit.
getApplicablePsiTypes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicablePsiTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Return the types of AST nodes that the visitor returned from Detector.createJavaVisitor(JavaContext) should visit.
getApplicableReferenceNames() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableReferenceNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Return the list of reference names types this detector is interested in, or null.
getArgumentCount() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getArgumentNode(MethodInvocation, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
getArgumentType(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getAssetFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the asset folders.
getAssetFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the asset folders.
getAutoBoxedType(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
getBaseline() - Method in class com.android.tools.lint.client.api.LintDriver
 
getBaselineFile() - Method in class com.android.tools.lint.client.api.Configuration
Returns the baseline file to use, if any.
getBaselineFile() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
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.
getCallName(PsiCallExpression) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
getCatchTypes(JavaContext, Catch) - Method in class com.android.tools.lint.client.api.JavaParser
Deprecated.
Use Detector.JavaPsiScanner APIs instead
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
getCharArray(CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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(PsiClass) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getClassType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
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
 
getClientName() - Static method in class com.android.tools.lint.client.api.LintClient
Returns the name of the embedding client.
getClientRevision() - Method in class com.android.tools.lint.client.api.LintClient
Returns the version number of this lint client, if known
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
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
Deprecated.
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getContainingClassName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
getContents() - Method in class com.android.tools.lint.detector.api.Context
Returns the contents of the file.
getCrashCount() - Static method in class com.android.tools.lint.client.api.LintDriver
For testing only: returns the number of exceptions thrown during Java AST analysis
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, boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the encoded String for the given file.
getEncodedString(byte[], boolean) - 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
getEvaluator() - Method in class com.android.tools.lint.client.api.JavaParser
Returns an evaluator which can perform various resolution tasks, evaluate inheritance lookup etc.
getEvaluator() - Method in class com.android.tools.lint.detector.api.JavaContext
 
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
Deprecated.
Returns the named field defined in this class, or optionally inherited from a superclass
getFieldName(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the corresponding R field name for the given XML resource name
getFields(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
Returns the fields defined in this class, and optionally any fields declared in any superclasses as well
getFile(PsiFile) - Method in class com.android.tools.lint.client.api.JavaParser
 
getFile() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the file which records the data in this baseline
getFile() - Method in class com.android.tools.lint.detector.api.Location
Returns the file containing the warning.
getFileContents(PsiFile) - Method in class com.android.tools.lint.client.api.JavaParser
 
getFiles() - Method in class com.android.tools.lint.client.api.LintRequest
Returns the set of files to check with lint.
getFixedCount() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the number of issues that appear to have been fixed (e.g.
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.
getFoundErrorCount() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the number of errors that have been matched from the baseline
getFoundWarningCount() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the number of warnings that have been matched from the baseline
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.
getGradleModelVersion() - Method in class com.android.tools.lint.detector.api.Project
If this is a Gradle project with a valid Gradle model, return the version of the model/plugin.
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
 
getInterfaces() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
getInternalDescription(PsiMethod, boolean, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Computes the internal JVM description of the given method.
getInternalMethodName(PsiMethod) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the internal method name
getInternalName(PsiClass) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getInternalName(PsiClassType) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getInternalName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
Computes the internal class name of the given fully qualified class name.
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.
getIssues() - Method in class com.android.tools.lint.client.api.JarFileIssueRegistry
 
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
getJavaFile() - Method in class com.android.tools.lint.detector.api.JavaContext
Returns the PsiJavaFile.
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
getLocation(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.JavaParser
Returns a Location for the given element
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(PsiElement) - Method in class com.android.tools.lint.detector.api.JavaContext
 
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
Deprecated.
getMethodName(PsiElement) - Static method in class com.android.tools.lint.detector.api.JavaContext
 
getMethods(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
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
Deprecated.
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
Deprecated.
 
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
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
Returns the fully qualified name of this class
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
Deprecated.
 
getName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
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(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
getNameLocation(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.JavaParser
Returns a Location for the given node.
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.JavaContext
Returns a Location for the given node.
getNameLocation(PsiElement) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns a Location for the given 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
Deprecated.
Use PsiTreeUtil.getNextSiblingOfType(PsiElement, Class) instead
getNode() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
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(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
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
Deprecated.
Returns the package name of this class
getParameter(Node, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
getParameterAnnotation(String, int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
Searches for the annotation of the given type on the method
getParameterAnnotations(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
Returns any annotations defined on the given parameter of this method
getParameterCount(PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getParameters(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
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
Deprecated.
Use PsiTreeUtil.getParentOfType(com.intellij.psi.PsiElement, java.lang.Class<T>) instead
getParentOfType(Node, Class<T>, boolean) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
Use PsiTreeUtil.getParentOfType(com.intellij.psi.PsiElement, java.lang.Class<T>) instead
getParentOfType(Node, Class<T>, boolean, Class<? extends Node>...) - Static method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
Use PsiTreeUtil.getParentOfType(com.intellij.psi.PsiElement, java.lang.Class<T>) instead
getParentPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
Deprecated.
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
getPrimitiveSignature(String) - Static method in class com.android.tools.lint.client.api.JavaEvaluator
 
getPrimitiveType(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
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.
getRangeLocation(JavaContext, Node, int, Node, int) - Method in class com.android.tools.lint.client.api.JavaParser
getRangeLocation(JavaContext, PsiElement, int, PsiElement, int) - Method in class com.android.tools.lint.client.api.JavaParser
Returns a Location for the given node range (from the starting offset of the first node to the ending offset of the second node).
getRangeLocation(JavaContext, PsiElement, int, int) - Method in class com.android.tools.lint.client.api.JavaParser
Like JavaParser.getRangeLocation(JavaContext, PsiElement, int, PsiElement, int) but both offsets are relative to the starting offset of the given node.
getRangeLocation(Node, int, Node, int) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns a location for the given node range (from the starting offset of the first node to the ending offset of the second node).
getRangeLocation(PsiElement, int, PsiElement, int) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns a location for the given node range (from the starting offset of the first node to the ending offset of the second node).
getRangeLocation(PsiElement, int, int) - Method in class com.android.tools.lint.detector.api.JavaContext
Returns a location for the given node range (from the starting offset of the first node to the ending offset of the second node).
getReader(CharSequence, boolean) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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.
getRepositoryLogger() - Method in class com.android.tools.lint.client.api.LintClient
Returns a repository logger used by this client.
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.
getResource(JavaEvaluator, PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
Evaluates the given node and returns the resource reference (type and name) it points to, if any
getResource(PsiElement) - Method in class com.android.tools.lint.detector.api.ResourceEvaluator
Evaluates the given node and returns the resource reference (type and name) it points to, if any
getResourceConstant(PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
Returns a resource URL based on the field reference in the code
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 folders.
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.
getResourceRepository(Project, boolean, boolean) - Method in class com.android.tools.lint.client.api.LintClient
Returns the project resources, if available
getResourceTypes(JavaEvaluator, PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
Evaluates the given node and returns the resource types implied by the given element, if any.
getResourceTypes(PsiElement) - Method in class com.android.tools.lint.detector.api.ResourceEvaluator
Evaluates the given node and returns the resource types applicable to the node, if any.
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
Deprecated.
 
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
Deprecated.
 
getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
Returns the signature of the resolved node
getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
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
Deprecated.
Returns the simple name of this class
getSimpleName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
Returns the simple name 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
Deprecated.
getSpeed(Issue) - Method in class com.android.tools.lint.detector.api.Detector
Deprecated.
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
Deprecated.
 
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(PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getSuperMethod() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
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
getTestLibraries() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
 
getTestLibraries(Project) - Method in class com.android.tools.lint.client.api.LintClient
Returns the list of libraries needed to compile the test source files
getTestLibraries() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of source folders for Java test source files
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
getTotalCount() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the total number of issues contained in this baseline
getType(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Deprecated.
Use Detector.JavaPsiScanner APIs instead
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
Deprecated.
 
getType(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
Use PsiExpression.getType() )} instead
getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
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
Deprecated.
 
getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
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
Deprecated.
 
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
gradleFiles - Variable in class com.android.tools.lint.detector.api.Project
 
gradleProject - Variable in class com.android.tools.lint.detector.api.Project
 
gradleVersion - Variable in class com.android.tools.lint.detector.api.Project
 
guessGradleLocation(Project) - Static method in class com.android.tools.lint.detector.api.LintUtils
Create a Location for an error in the top level build.gradle file.

H

handleDetectorError(Context, RuntimeException) - Static method in class com.android.tools.lint.client.api.LintDriver
Logs the given error produced by the various lint detectors
hashCode() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
hashCode() - Method in class com.android.tools.lint.detector.api.Category
 
hashCode() - Method in class com.android.tools.lint.detector.api.Project
 
hasLegacyDetectors() - Method in class com.android.tools.lint.client.api.JarFileIssueRegistry
True if one or more java detectors were found that use the old Lombok-based API
hasPadding(Element) - Static 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(Issue, File) - Method in class com.android.tools.lint.client.api.Configuration
Marks the given issue and file combination as being 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
 
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
implementsInterface(PsiClass, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
indexOf(CharSequence, char) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
indexOf(CharSequence, char, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
indexOf(CharSequence, CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
indexOf(CharSequence, CharSequence, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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
inheritsFrom(PsiClass, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Checks whether the class extends a super class or implements a given interface.
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.
isAbstract(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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
isAospBuildEnvironment() - Static method in class com.android.tools.lint.detector.api.Project
Is lint running in an AOSP build environment
isAospFrameworksProject(File) - Static method in class com.android.tools.lint.detector.api.Project
Is this the actual frameworks project.
isAospFrameworksRelatedProject(File) - Static method in class com.android.tools.lint.detector.api.Project
Is this the frameworks or related 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
Deprecated.
 
isArray() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
Returns true if the given TypeDescriptor represents an array
isArrayLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
Returns true if the node is pointing to a an array literal
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
Deprecated.
 
isConstructor() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
 
isContextMethod(MethodInvocation) - Method in class com.android.tools.lint.detector.api.JavaContext
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.
isEditableTo(String, String, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the first string can be edited (Via insertions, deletions or substitutions) into the second string in at most the given number of editing operations.
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
isEnum() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
isError() - Method in enum com.android.tools.lint.detector.api.Severity
Returns true if this severity is at least an error
isFalseLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
isFilteredMessage(String, TextFormat) - Static method in class com.android.tools.lint.client.api.LintBaseline
Given an error message produced by this lint detector for the given issue type, determines whether this corresponds to the warning (produced by {link LintBaseline.reportBaselineIssues(LintDriver, Project) above) that one or more issues have been filtered out.
isFinal(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
isFixedMessage(String, TextFormat) - Static method in class com.android.tools.lint.client.api.LintBaseline
Given an error message produced by this lint detector for the given issue type, determines whether this corresponds to the warning (produced by {link LintBaseline.reportBaselineIssues(LintDriver, Project) above) that one or more issues have been fixed (present in baseline but not in project.)
isFromClassLibrary() - Method in class com.android.tools.lint.detector.api.ClassContext
Returns whether this class is part of a library (not this project).
isGradle() - Static method in class com.android.tools.lint.client.api.LintClient
Returns true if the embedding client currently running lint is Gradle
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
Deprecated.
Determines whether this is implementing the given interface.
isImported(Node, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Deprecated.
Use PSI element hierarchies instead where type resolution is more directly available (call PsiImportStatementBase.resolve())
isInherited(PsiAnnotation, PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Returns true if the given annotation is inherited (instead of being defined directly on the given modifier list holder
isInheritingFrom(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
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
Deprecated.
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
Returns true if this element is in the given package (or optionally, in one of its sub packages)
isInterface() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
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.
isMemberInClass(PsiMember, String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
isMemberInSubClassOf(PsiMember, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
isMergingManifests() - Method in class com.android.tools.lint.detector.api.Project
Returns whether manifest merging is in effect
isModelOlderThan(Project, 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
isNullLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given element is the null literal
isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
Returns true if the given TypeDescriptor represents a primitive
isPrivate(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
isProjectDirectory(File) - Method in class com.android.tools.lint.client.api.LintClient
Returns true if the given directory is a lint project directory.
isPublic(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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
isRemoveFixed() - Method in class com.android.tools.lint.client.api.LintBaseline
Whether the baseline when writing the file will skip fixed issues, or include all.
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.
isSelfExplanatory() - Method in class com.android.tools.lint.detector.api.Location
Whether this message is self-explanatory.
isStatic(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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.
isString(PsiType) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
isStudio() - Static method in class com.android.tools.lint.client.api.LintClient
Returns true if the embedding client currently running lint is Android Studio (or IntelliJ IDEA)
isSubclassOf(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
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(JavaContext, Issue, PsiElement) - Method in class com.android.tools.lint.client.api.LintDriver
 
isSuppressed(Issue, PsiModifierList) - Static method in class com.android.tools.lint.client.api.LintDriver
Returns true if the given AST modifier has a suppress annotation for the given issue (which can be null to check for the "all" annotation)
isSuppressed(Issue, PsiAnnotationMemberValue) - Static method in class com.android.tools.lint.client.api.LintDriver
Returns true if the annotation member value, assumed to be specified on a a SuppressWarnings or SuppressLint annotation, specifies the given id (or "all").
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(PsiElement, Issue) - Method in class com.android.tools.lint.detector.api.JavaContext
 
isSuppressedWithComment(Node, Issue) - Method in class com.android.tools.lint.detector.api.XmlContext
 
isTestSource() - Method in class com.android.tools.lint.detector.api.JavaContext
Whether this compilation unit is in a test folder
isTrueLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
isVisible() - Method in class com.android.tools.lint.detector.api.Location
Whether this location should be visible on its own.
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
 
isWriteOnClose() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns whether this baseline is writing its result upon close
isXmlFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given file represents an XML file

J

JarFileIssueRegistry - Class in com.android.tools.lint.client.api
An IssueRegistry for a custom lint rule jar file.
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
javaClassFolders - Variable in class com.android.tools.lint.detector.api.Project
 
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.
JavaEvaluator - Class in com.android.tools.lint.client.api
 
JavaEvaluator() - Constructor for class com.android.tools.lint.client.api.JavaEvaluator
 
javaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
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
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedAnnotation - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedAnnotation.Value - Class in com.android.tools.lint.client.api
Deprecated.
 
JavaParser.ResolvedClass - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedField - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedMethod - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedNode - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedPackage - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.ResolvedVariable - Class in com.android.tools.lint.client.api
Deprecated.
Use Detector.JavaPsiScanner APIs instead
JavaParser.TypeDescriptor - Class in com.android.tools.lint.client.api
Deprecated.
Use PsiType instead
JavaPsiVisitor - Class in com.android.tools.lint.client.api
Specialized visitor for running detectors on a Java AST.
javaSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
JavaVisitor - Class in com.android.tools.lint.client.api
Specialized visitor for running detectors on a Java AST.

L

lastIndexOf(CharSequence, String, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
lastIndexOf(CharSequence, char) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
lastIndexOf(CharSequence, int, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
lastIndexOf(CharSequence, String) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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
 
library - Variable in class com.android.tools.lint.detector.api.Project
 
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.
LintBaseline - Class in com.android.tools.lint.client.api
A lint baseline is a collection of warnings for a project that have been obtained from a previous run of lint.
LintBaseline(LintClient, File) - Constructor for class com.android.tools.lint.client.api.LintBaseline
 
LintClient - Class in com.android.tools.lint.client.api
Information about the tool embedding the lint analyzer.
LintClient(String) - Constructor for class com.android.tools.lint.client.api.LintClient
 
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.
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
Location(File, Position, Position) - Constructor for class com.android.tools.lint.detector.api.Location
Location.DefaultLocationHandle - Class in com.android.tools.lint.detector.api
A default Location.Handle implementation for simple file offsets
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.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, CharSequence, 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

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
manifestFiles - Variable in class com.android.tools.lint.detector.api.Project
 
manifestMinSdk - Variable in class com.android.tools.lint.detector.api.Project
 
manifestTargetSdk - 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
Deprecated.
Returns whether this field name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
Returns whether this class' fully qualified name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
Returns whether this field name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
Returns whether this method name matches the given name
matches(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
Deprecated.
Returns whether this variable name matches the given name
matchesName(String) - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
matchesName(String) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
matchesSignature(String) - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
matchesSignature(String) - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
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
max(Severity, Severity) - Static method in enum com.android.tools.lint.detector.api.Severity
Returns the largest / most severe of the two given severities
mergeManifests - Variable in class com.android.tools.lint.detector.api.Project
 
MESSAGES - Static variable in class com.android.tools.lint.detector.api.Category
Issues related to messages/strings
methodMatches(PsiMethod, String, boolean, String...) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Returns true if the given method (which is typically looked up by resolving a method call) is either a method in the exact given class, or if allowInherit is true, a method in a class possibly extending the given class, and if the parameter types are the exact types specified.
min(Severity, Severity) - Static method in enum com.android.tools.lint.detector.api.Severity
Returns the smallest / least severe of the two given severities

N

name - Variable in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
Deprecated.
 
name - Variable in class com.android.tools.lint.detector.api.Project
 
nextNonWhitespace(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
NONE - Static variable in class com.android.tools.lint.detector.api.Location
Special marker location which means location not available, or not applicable, or filtered out, etc.
nonProvidedJavaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 

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

parameterHasType(PsiMethod, int, String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Returns true if the given type matches the given fully qualified type name
parametersMatch(PsiMethod, String...) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Returns true if the given method's parameters are the exact types specified.
parseDocumentSilently(CharSequence, boolean) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
parseJava(JavaContext) - Method in class com.android.tools.lint.client.api.JavaParser
parseJavaToPsi(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
pkg - Variable in class com.android.tools.lint.detector.api.Project
 
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.JavaPsiVisitor
 
prepareJavaParse(List<JavaContext>) - Method in class com.android.tools.lint.client.api.JavaParser
Prepare to parse the given contexts.
prevNonWhitespace(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
proguardFiles - Variable in class com.android.tools.lint.detector.api.Project
 
proguardPath - Variable in class com.android.tools.lint.detector.api.Project
 
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.
projectDirs - Variable in class com.android.tools.lint.client.api.LintClient
 
projects - Variable in class com.android.tools.lint.client.api.LintRequest
 
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)
PX_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 

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
referenceDir - Variable in class com.android.tools.lint.detector.api.Project
 
regionMatches(CharSequence, int, CharSequence, int, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
regionMatches(CharSequence, boolean, int, CharSequence, int, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
registerProject(File, Project) - Method in class com.android.tools.lint.client.api.LintClient
Registers the given project for the given directory.
releaseMode - Variable in class com.android.tools.lint.client.api.LintRequest
 
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, PsiElement, Location, String) - Method in class com.android.tools.lint.detector.api.JavaContext
 
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 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
 
reportIssues - Variable in class com.android.tools.lint.detector.api.Project
 
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.
RES_SUFFIX - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
reset() - Static method in class com.android.tools.lint.client.api.IssueRegistry
Reset the registry such that it recomputes its available issues.
resolve(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
resolve(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
Deprecated.
Use Detector.JavaPsiScanner APIs instead
resolve(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
Deprecated.
Use PsiElement resolve methods (varies by AST node type, e.g. PsiCall.resolveMethod()
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
 
ResolvedAnnotation() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
ResolvedClass() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
 
ResolvedField() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedField
Deprecated.
 
ResolvedMethod() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
ResolvedNode() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
 
ResolvedPackage() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
Deprecated.
 
ResolvedVariable() - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
Deprecated.
 
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.)
ResourceContext(LintDriver, Project, Project, File, ResourceFolderType) - Constructor for class com.android.tools.lint.detector.api.ResourceContext
Construct a new ResourceContext
ResourceEvaluator - Class in com.android.tools.lint.detector.api
Evaluates constant expressions
ResourceEvaluator(JavaEvaluator) - Constructor for class com.android.tools.lint.detector.api.ResourceEvaluator
Creates a new resource evaluator
resourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
ResourceItemHandle(ResourceItem) - Constructor for class com.android.tools.lint.detector.api.Location.ResourceItemHandle
 
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 bidirectional 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
 
runReadAction(Runnable) - Method in class com.android.tools.lint.client.api.LintClient
Runs the given runnable under a readlock such that it can access the PSI

S

scope - Variable in class com.android.tools.lint.client.api.LintRequest
 
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.
sdk - Variable in class com.android.tools.lint.client.api.LintClient
 
SdkInfo - Class in com.android.tools.lint.client.api
Information about SDKs
SdkInfo() - Constructor for class com.android.tools.lint.client.api.SdkInfo
 
sdkInfo - Variable in class com.android.tools.lint.detector.api.Project
The SDK info, if any
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.
setBaseline(LintBaseline) - Method in class com.android.tools.lint.client.api.LintDriver
 
setBaselineFile(File) - Method in class com.android.tools.lint.client.api.Configuration
Sets the baseline file, if any.
setBaselineFile(File) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
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.
setDisposeUnitsAfterUse(boolean) - Method in class com.android.tools.lint.client.api.JavaPsiVisitor
 
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.
setJavaFile(PsiJavaFile) - Method in class com.android.tools.lint.detector.api.JavaContext
Sets the compilation result.
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.
setMessage(String, boolean) - 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.
setRemoveFixed(boolean) - Method in class com.android.tools.lint.client.api.LintBaseline
Whether the baseline when writing the file should skip fixed issues, or include all.
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.
setSelfExplanatory(boolean) - Method in class com.android.tools.lint.detector.api.Location
Sets whether this message is self-explanatory.
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
 
setTestSource(boolean) - Method in class com.android.tools.lint.detector.api.JavaContext
Sets whether this compilation unit is in a test folder
setVisible(boolean) - Method in class com.android.tools.lint.detector.api.Location
Sets whether this location should be visible on its own.
setWriteOnClose(boolean) - Method in class com.android.tools.lint.client.api.LintBaseline
Sets whether the baseline should write its matched entries on LintBaseline.close()
severity - Variable in class com.android.tools.lint.client.api.DefaultConfiguration
Map from id to custom Severity override
Severity - Enum in com.android.tools.lint.detector.api
Severity of an issue found by lint
skipParentheses(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
startBulkEditing() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
startsWith(CharSequence, CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
startsWith(CharSequence, CharSequence, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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.
supportLib - Variable in class com.android.tools.lint.detector.api.Project
 
supportsProjectResources() - Method in class com.android.tools.lint.client.api.LintClient
Returns true if this client supports project resource repository lookup via LintClient.getResourceRepository(Project, boolean, boolean)
SUPPRESS_WARNINGS_FQCN - Static variable in class com.android.tools.lint.client.api.LintDriver
 

T

TAG_ISSUES - Static variable in class com.android.tools.lint.client.api.LintBaseline
Root tag in baseline files (which can be the XML output report files from lint, or a subset of these
TAG_LINT - Static variable in class com.android.tools.lint.client.api.DefaultConfiguration
The root tag in a configuration file
target - Variable in class com.android.tools.lint.detector.api.Project
 
targets - Variable in class com.android.tools.lint.client.api.LintClient
 
testLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
testSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
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
Deprecated.
 
toString() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
Deprecated.
 
toString() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
toString() - Method in class com.android.tools.lint.detector.api.Category
 
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_BOOLEAN_WRAPPER - 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_BYTE_WRAPPER - 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_CHARACTER_WRAPPER - 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_DOUBLE_WRAPPER - 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_FLOAT_WRAPPER - 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_INTEGER_WRAPPER - 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_LONG_WRAPPER - 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_SHORT_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TYPE_STRING - Static variable in class com.android.tools.lint.client.api.JavaParser
 
TypeDescriptor() - Constructor for class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
Deprecated.
 
TypeEvaluator - Class in com.android.tools.lint.detector.api
Evaluates the types of nodes.
TypeEvaluator(JavaContext) - Constructor for class com.android.tools.lint.detector.api.TypeEvaluator
Creates a new constant evaluator
typeMatches(PsiType, String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Returns true if the given type matches the given fully qualified type name
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(String, Object) - Constructor for class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
Deprecated.
 
value - Variable in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
Deprecated.
 
VALUE_ALL - Static variable in class com.android.tools.lint.client.api.DefaultConfiguration
 
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, JavaElementVisitor, PsiNewExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Method invoked for any constructor calls found that matches any names returned by Detector.JavaPsiScanner.getApplicableConstructorTypes().
visitConstructor(JavaContext, AstVisitor, ConstructorInvocation, JavaParser.ResolvedMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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
Deprecated.
visitConstructor(JavaContext, JavaElementVisitor, PsiNewExpression, PsiMethod) - 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, JavaElementVisitor, PsiMethodCallExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Method invoked for any method calls found that matches any names returned by Detector.JavaPsiScanner.getApplicableMethodNames().
visitMethod(JavaContext, AstVisitor, MethodInvocation) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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
Deprecated.
visitMethod(JavaContext, JavaElementVisitor, PsiMethodCallExpression, PsiMethod) - Method in class com.android.tools.lint.detector.api.Detector
 
visitReference(JavaContext, JavaElementVisitor, PsiJavaCodeReferenceElement, PsiElement) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Method invoked for any references found that matches any names returned by Detector.JavaPsiScanner.getApplicableReferenceNames().
visitReference(JavaContext, JavaElementVisitor, PsiJavaCodeReferenceElement, PsiElement) - Method in class com.android.tools.lint.detector.api.Detector
 
visitResourceReference(JavaContext, JavaElementVisitor, PsiElement, ResourceType, String, boolean) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Called for any resource references (such as R.layout.main found in Java code, provided this detector returned true from Detector.JavaPsiScanner.appliesToResourceRefs().
visitResourceReference(JavaContext, AstVisitor, Node, String, String, boolean) - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Deprecated.
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
Deprecated.
visitResourceReference(JavaContext, JavaElementVisitor, PsiElement, ResourceType, String, boolean) - Method in class com.android.tools.lint.detector.api.Detector
 

W

withSecondary(Location, String) - Method in class com.android.tools.lint.detector.api.Location
Sets a secondary location with the given message and returns the current location updated with the given secondary location.
withSecondary(Location, String, boolean) - Method in class com.android.tools.lint.detector.api.Location
Sets a secondary location with the given message and returns the current location updated with the given secondary location.

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 W X 
Skip navigation links