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

A

accept(Node, BlameFile.XmlVisitor) - Static method in class com.android.tools.lint.client.api.BlameFile.XmlVisitor
 
add(LintFix) - Method in class com.android.tools.lint.detector.api.LintFix.GroupBuilder
Adds the given fix to this group
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.
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.
afterVisitBinaryExpression(UBinaryExpression) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
afterVisitElement(UElement) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
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() - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Replaces this entire range
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.
allowFieldInitializers() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator
 
allowUnknowns() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator
Whether we allow computing values where some terms are unknown.
android() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the namespace to the Android namespace (shortcut for LintFix.SetAttributeBuilder.namespace(String) passing in SdkConstants.ANDROID_URI
ANIM_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
ANIMATOR_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
ANY_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
Deprecated.
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.
applicableSuperClasses() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
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
Deprecated.
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).
appliesToResourceRefs() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Returns whether this detector cares about Android resource references (such as R.layout.main or R.string.app_name).
areIdentifiersEqual(UExpression, UExpression) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
areSignaturesEqual(PsiMethod, PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
areSignaturesEqual(PsiMethod, PsiMethod) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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
ARRAY_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
 
ATTR_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
attribute - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttribute
The local attribute name
attribute(String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the attribute name.

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.
BlameFile - Class in com.android.tools.lint.client.api
 
BlameFile.XmlVisitor - Class in com.android.tools.lint.client.api
 
BOOL_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
build() - Method in class com.android.tools.lint.detector.api.LintFix.FixMapBuilder
Constructs a LintFix with this map data
build() - Method in class com.android.tools.lint.detector.api.LintFix.GroupBuilder
Construct a LintFix for this group of fixes
build() - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Constructs a LintFix for this string replacement
build() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Constructs a LintFix for this attribute operation
buildSdk - Variable in class com.android.tools.lint.detector.api.Project
 
buildTargetHash - Variable in class com.android.tools.lint.detector.api.Project
 

C

CANCELLED - Static variable in class com.android.tools.lint.client.api.IssueRegistry
Issue reported when lint is canceled
caret(int) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Moves the caret to the given offset (relative to the position of the value text; can be negative (means not set
caretBegin() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Moves the caret to the beginning of the value after applying the new attribute
caretEnd() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Moves the caret to the end of the value after applying the new attribute
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
Deprecated.
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
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.
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
 
client - Variable in class com.android.tools.lint.detector.api.Project
 
close() - Method in class com.android.tools.lint.client.api.LintBaseline
Finishes writing the baseline
coalesce(T...) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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.
COLOR_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
 
com.android.tools.lint.helpers - package com.android.tools.lint.helpers
 
compareTo(Issue) - Method in class com.android.tools.lint.detector.api.Issue
Sorts the detectors alphabetically by id.
composite() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Creates a composite fix: multiple lint fixes which will all be applied as a single unit.
composite(LintFix...) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Creates a composite fix: multiple lint fixes which will all be applied as a single unit.
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
ConstantEvaluator.LastAssignmentFinder - Class in com.android.tools.lint.detector.api
 
containsUpperCase(CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
Returns true if the given sequence contains any upper case characters
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.
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, 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() - Static method in class com.android.tools.lint.detector.api.LintFix
Creates a new Quickfix Builder
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
 
createLocation(PsiElement) - Method in class com.android.tools.lint.client.api.UastParser
 
createLocation(UElement) - Method in class com.android.tools.lint.client.api.UastParser
 
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.
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
Deprecated.
Create a parse tree visitor to process the parse tree.
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
 
createUastHandler(JavaContext) - Method in class com.android.tools.lint.detector.api.Detector
 
createUastHandler(JavaContext) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Create a parse tree visitor to process the parse tree.

D

data(Object...) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Passes one or more pieces of data; this will be transferred as a map behind the scenes.
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
 
DefaultJavaEvaluator - Class in com.android.tools.lint.helpers
 
DefaultJavaEvaluator(Project, Project) - Constructor for class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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, 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
Deprecated.
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.UastScanner - Interface in com.android.tools.lint.detector.api
Interface to be implemented by lint detectors that want to analyze Java source files (or other similar source files, such as Kotlin files.)
Detector.XmlScanner - Interface in com.android.tools.lint.detector.api
Specialized interface for detectors that scan XML files
DIMEN_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
 
displayName - Variable in class com.android.tools.lint.detector.api.LintFix.Builder
 
displayName - Variable in class com.android.tools.lint.detector.api.LintFix
 
displayName - Variable in class com.android.tools.lint.detector.api.LintFix.FixMapBuilder
 
displayName - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
 
displayName - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
 
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(JavaContext, UFile) - 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(JavaContext, UFile) - Method in class com.android.tools.lint.client.api.UastParser
Dispose any data structures held for the given context.
dispose() - Method in class com.android.tools.lint.client.api.UastParser
Dispose any remaining data structures held for all contexts.
dispose() - Method in class com.android.tools.lint.client.api.UElementVisitor
 
dispose(XmlContext, Document) - Method in class com.android.tools.lint.client.api.XmlParser
Dispose any data structures held for the given context.
dot - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttribute
The caret location to show, OR Integer.MIN_VALUE if not set.
DRAWABLE_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 

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(CharSequence, CharSequence, boolean) - Static method in class com.android.tools.lint.detector.api.CharSequences
Returns true if the given character sequence ends with the given suffix
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.Issue
 
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(UElement) - 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(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(JavaContext, UElement) - 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(UElement) - Static method in class com.android.tools.lint.detector.api.TypeEvaluator
 
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.
evaluateString(JavaContext, UElement, 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
 
extendsClass(PsiClass, String, boolean) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 

F

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
 
findAnnotation(PsiModifierListOwner, String...) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
findAnnotationInHierarchy(PsiModifierListOwner, String...) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
findAnnotationInHierarchy(PsiModifierListOwner, String...) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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(String) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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
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
findJarPath(UElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Try to determine the path to the .jar file containing the element, if applicable
findJarPath(PsiElement) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
findJarPath(UElement) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
findLastAssignment(PsiElement, PsiVariable) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
Computes the last assignment to a given variable counting backwards from the given context element
findLastAssignment(PsiVariable, UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
findLastValue(PsiVariable, UElement, UastContext, ConstantEvaluator) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
findOwnerLibrary(String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
findSourceAttribute(LintClient, Attr) - Method in class com.android.tools.lint.client.api.BlameFile
 
findSourceElement(LintClient, Element) - Method in class com.android.tools.lint.client.api.BlameFile
 
findSourceNode(LintClient, Node) - Method in class com.android.tools.lint.client.api.BlameFile
 
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.
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
 
fix() - Static method in class com.android.tools.lint.detector.api.Detector
Creates a lint fix builder
fixes - Variable in class com.android.tools.lint.detector.api.LintFix.LintFixGroup
A list of fixes
FONT_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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.
FRACTION_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 

G

generatedSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
get(LintClient, File) - Static method in class com.android.tools.lint.client.api.JarFileIssueRegistry
 
get(UElement) - Static method in class com.android.tools.lint.client.api.ResourceReference
 
get(Class<T>) - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
Returns the value for the given class key
get(String) - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
Returns the value for the given String key
getAllAnnotations(PsiModifierListOwner, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getAllAnnotations(PsiModifierListOwner, boolean) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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
Deprecated.
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.
getApplicableConstructorTypes() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
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
Deprecated.
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.
getApplicableMethodNames() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
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
Deprecated.
Return the types of AST nodes that the visitor returned from Detector.createJavaVisitor(JavaContext) should visit.
getApplicablePsiTypes() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
 
getApplicableReferenceNames() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableReferenceNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Deprecated.
Return the list of reference names types this detector is interested in, or null.
getApplicableReferenceNames() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Return the list of reference names types this detector is interested in, or null.
getApplicableUastTypes() - Method in class com.android.tools.lint.detector.api.Detector
 
getApplicableUastTypes() - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Return the types of AST nodes that the visitor returned from Detector.createJavaVisitor(JavaContext) should visit.
getArgumentCount() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getArgumentType(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
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
 
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 compile SDK version used to build the project, or null 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
getBuildTargetHash() - Method in class com.android.tools.lint.detector.api.Project
Returns the target API used to build the project, or null if not known.
getBuildTools() - Method in class com.android.tools.lint.detector.api.Project
Returns the specific version of the build tools being used, if known
getCallLocation(JavaContext, UCallExpression, boolean, boolean) - Method in class com.android.tools.lint.client.api.UastParser
 
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
getClassName(PsiClassType) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getClassName(PsiClass) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
getClassType(PsiClass) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
getClient() - Method in class com.android.tools.lint.detector.api.Project
Returns the associated client
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.
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.
 
getCurrentValue() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
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).
getData(LintFix, Class<T>) - Static method in class com.android.tools.lint.detector.api.LintFix
Convenience wrapper which checks whether the given fix is a map, and if so returns the value stored by its key
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).
getDependencies() - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getDependencies() - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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 class com.android.tools.lint.detector.api.LintFix
Return display name
getDisplayName() - Method in class com.android.tools.lint.detector.api.LintFix.LintFixGroup
 
getDisplayName() - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceString
Return display name
getDisplayName() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttribute
Return display name
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
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.
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.client.api.UastParser
Returns an evaluator which can perform various resolution tasks, evaluate inheritance lookup etc.
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(PsiFile) - Method in class com.android.tools.lint.client.api.UastParser
 
getFileContents(PsiFile) - Method in class com.android.tools.lint.client.api.JavaParser
 
getFileContents(PsiFile) - Method in class com.android.tools.lint.client.api.UastParser
 
getFileNameWithParent(LintClient, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Computes a canonical "display path" for a resource (which typically is the parent name plus a file separator, plus the file name)
getFixedCount() - Method in class com.android.tools.lint.client.api.LintBaseline
Returns the number of issues that appear to have been fixed (e.g.
getFolderConfiguration() - Method in class com.android.tools.lint.detector.api.ResourceContext
Returns the FolderConfiguration that this resource context belongs to
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
getGeneratedSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
 
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.
getId() - Method in class com.android.tools.lint.detector.api.Issue
Returns the unique id of this issue.
getIdentifier(UExpression) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
 
getInputStream(CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
 
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.
getInternalDescription(PsiMethod, boolean, boolean) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
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(PsiClass) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
getInternalName(PsiClassType) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
getInternalName(PsiClass) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
Computes the internal class name of the given class.
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)
getJavaClassFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of output folders for class files
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.
getJavaSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the list of source folders for Java source files
getLanguageLevel(UElement, LanguageLevel) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the Java language level for the given element, or the default level if an applicable the language level is not found (for example if the element is not a Java element
getLanguageLevel(PsiElement, LanguageLevel) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the Java language level for the given element, or the default level if an applicable the language level is not found (for example if the element is not a Java element
getLastAssignment() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
getLayoutName(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the layout resource name for the given layout file
getLibrary(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Return the Gradle group id for the given element, if applicable.
getLibrary(UElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Return the Gradle group id for the given element, if applicable.
getLibrary(UMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
Disambiguate between UElement and PsiElement since a UMethod is both
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(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.UastParser
Returns a Location for the given element
getLocation(JavaContext, UElement) - Method in class com.android.tools.lint.client.api.UastParser
 
getLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node
getLocation(File, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Attempt to create a location for a given XML node.
getLocation(XmlContext, Node, int, int) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node.
getManifestFiles() - Method in class com.android.tools.lint.detector.api.Project
Gets the paths to the manifest files in this project, if any exists.
getMergedManifest() - Method in class com.android.tools.lint.detector.api.Project
Returns the merged manifest of this project.
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.client.api.ResourceReference
 
getName() - Method in class com.android.tools.lint.detector.api.Project
Returns the name of the project
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(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.UastParser
Returns a Location for the given node.
getNameLocation(JavaContext, UElement) - Method in class com.android.tools.lint.client.api.UastParser
 
getNameLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
Returns a Location for the given DOM node
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
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
getPackage(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getPackage(UElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
getPackage(UMethod) - 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.client.api.ResourceReference
 
getPackage() - Method in class com.android.tools.lint.detector.api.Project
Returns the application package specified by the manifest
getPackage(PsiElement) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
getPackage(UElement) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
getPackageName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
Returns the package name of this class
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
 
getParentPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
Deprecated.
Returns the parent package of this package, if any.
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
 
getPrimitiveSignature(String) - Static method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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
getQualifiedName(PsiElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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(JavaContext, PsiElement, int, PsiElement, int) - Method in class com.android.tools.lint.client.api.UastParser
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, UElement, int, UElement, int) - Method in class com.android.tools.lint.client.api.UastParser
 
getRangeLocation(JavaContext, PsiElement, int, int) - Method in class com.android.tools.lint.client.api.UastParser
Like UastParser.getRangeLocation(JavaContext, PsiElement, int, PsiElement, int) but both offsets are relative to the starting offset of the given node.
getRangeLocation(JavaContext, UElement, int, int) - Method in class com.android.tools.lint.client.api.UastParser
 
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.
getReferenceName(UReferenceExpression) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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.
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(JavaEvaluator, UElement) - 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(UElement) - 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
getResourceConstant(UElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
Returns a resource URL based on the field reference in the code
getResourceFolder() - Method in class com.android.tools.lint.detector.api.ResourceContext
Returns the resource folder that this resource context corresponds to, if applicable
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.
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(JavaEvaluator, UElement) - 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(UElement) - 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.
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
getReturnType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
Deprecated.
 
getScope() - Method in class com.android.tools.lint.detector.api.Implementation
Returns the scope required to analyze the code to detect this issue.
getSdkInfo() - Method in class com.android.tools.lint.detector.api.Project
Gets the SDK info for the current project.
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
getSourceProviders(AndroidProject, Variant) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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.
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.
 
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
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.detector.api.Project
Returns the list of source folders for Java 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
getTestSourceProviders(AndroidProject, Variant) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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() - Method in class com.android.tools.lint.client.api.ResourceReference
 
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
getTypeFromAnnotationSignature(String) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
 
getTypesFromAnnotations(PsiAnnotation[]) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
 
getTypesFromAnnotations(List<UAnnotation>) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
 
getUastContext() - Method in class com.android.tools.lint.client.api.UastParser
Returns a UastContext which can provide UAST representations for source files
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
getValues() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
Deprecated.
 
globToRegexp(String) - Static method in class com.android.tools.lint.client.api.DefaultConfiguration
 
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
 
group() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Creates a group of fixes
group(LintFix...) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Creates a fix list from a set of lint fixes.
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.
guessGradleLocation(LintClient, File, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Attempts to find a string in the build.gradle file for a given project directory.

H

hashCode() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
Deprecated.
 
hashCode() - Method in class com.android.tools.lint.detector.api.Issue
 
hashCode() - Method in class com.android.tools.lint.detector.api.Project
 
hasLombokLegacyDetectors() - 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
 
hasPsiLegacyDetectors() - Method in class com.android.tools.lint.client.api.JarFileIssueRegistry
True if one or more java detectors were found that use the old PSI-based API

I

ID_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
 
implementsInterface(PsiClass, String, boolean) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
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
 
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.
inheritsFrom(PsiClass, String, boolean) - Method in class com.android.tools.lint.helpers.DefaultJavaEvaluator
 
initialize() - Method in class com.android.tools.lint.detector.api.Project
 
INTEGER_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
INTERPOLATOR_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
isArrayLiteral(UElement) - 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.
 
isDataBindingExpression(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given resource value is a data binding expression
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.
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.
 
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.)
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
isInherited(UAnnotation, PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
isInherited(UAnnotation, UAnnotated) - 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
isJavaKeyword(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given string is a reserved Java keyword
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.
isManifestPlaceHolderExpression(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given resource value is a manifest place holder expression
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
isModelOlderThan(Project, int, int, int, boolean) - 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
 
isPublic(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
 
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.
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
 
isSubclassOf(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
Deprecated.
Determines whether this class extends the given name.
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
isTrueLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
isUpToDate() - Method in class com.android.tools.lint.client.api.IssueRegistry
Whether this issue registry is up to date.
isUpToDate() - Method in class com.android.tools.lint.client.api.JarFileIssueRegistry
 
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
iterator() - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
 

J

JarFileIssueRegistry - Class in com.android.tools.lint.client.api
An IssueRegistry for a custom lint rule jar file.
javaClassFolders - Variable in class com.android.tools.lint.detector.api.Project
 
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.
join(LintFix...) - Method in class com.android.tools.lint.detector.api.LintFix.GroupBuilder
Adds the given fixes to this group

K

keys() - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
Returns the keys

L

LastAssignmentFinder(PsiVariable, UElement, UastContext, ConstantEvaluator, int) - Constructor for class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
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
 
LAYOUT_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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_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
 
LintFix - Class in com.android.tools.lint.detector.api
A description of a quickfix for a lint warning, which provides structured data for use by the IDE to create an actual fix implementation.
LintFix(String) - Constructor for class com.android.tools.lint.detector.api.LintFix
 
LintFix.Builder - Class in com.android.tools.lint.detector.api
Builder for creating various types of fixes
LintFix.DataMap - Class in com.android.tools.lint.detector.api
General map storage for quickfix data; clients can look up via map keys or types of values
LintFix.FixMapBuilder - Class in com.android.tools.lint.detector.api
 
LintFix.GroupBuilder - Class in com.android.tools.lint.detector.api
Builder for constructing a group of fixes
LintFix.GroupType - Enum in com.android.tools.lint.detector.api
Captures the various types of a LintFix.LintFixGroup
LintFix.LintFixGroup - Class in com.android.tools.lint.detector.api
A list of quickfixes
LintFix.ReplaceString - Class in com.android.tools.lint.detector.api
Convenience class for the common scenario of suggesting a fix which involves replacing a static string or regular expression with a replacement string
LintFix.ReplaceStringBuilder - Class in com.android.tools.lint.detector.api
A builder for replacing strings
LintFix.SetAttribute - Class in com.android.tools.lint.detector.api
Convenience class for the common scenario of suggesting a fix which involves setting an XML attribute.
LintFix.SetAttributeBuilder - Class in com.android.tools.lint.detector.api
 
LintFixGroup(String, LintFix.GroupType, List<LintFix>) - Constructor for class com.android.tools.lint.detector.api.LintFix.LintFixGroup
 
LintUtils - Class in com.android.tools.lint.detector.api
Useful utility methods related to lint.

M

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
 
map() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Provides a map with details for the quickfix implementation
map(Object...) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Provides a map with details for the quickfix implementation, pre-initialized with the given objects
mark - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttribute
The selection anchor, OR Integer.MIN_VALUE if not set
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.
 
MENU_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
mergeManifests - Variable in class com.android.tools.lint.detector.api.Project
 
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.

N

name - Variable in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value
Deprecated.
 
name(String) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Sets display name.
name(String) - Method in class com.android.tools.lint.detector.api.LintFix.GroupBuilder
Sets display name.
name(String) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Sets display name.
name(String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets display name.
name - Variable in class com.android.tools.lint.detector.api.Project
 
namespace - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttribute
The namespace
namespace(String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the namespace to the given namespace
nextNonWhitespace(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
node - Variable in class com.android.tools.lint.client.api.ResourceReference
 
NONE - Static variable in class com.android.tools.lint.client.api.BlameFile
 
NONE - Static variable in class com.android.tools.lint.client.api.UElementHandler
 
nonProvidedJavaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 

O

oldPattern - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
The regex to replace.
oldString - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
The string literal to replace.

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.
parse(File) - Static method in class com.android.tools.lint.client.api.BlameFile
 
parse(Actions) - Static method in class com.android.tools.lint.client.api.BlameFile
 
parse(List<String>) - Static method in class com.android.tools.lint.client.api.BlameFile
 
parse(JavaContext) - Method in class com.android.tools.lint.client.api.UastParser
Parse the file pointed to by the given context.
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(File) - Method in class com.android.tools.lint.client.api.XmlParser
Parse the given XML content and returns as a Document
parseXml(CharSequence, File) - Method in class com.android.tools.lint.client.api.XmlParser
Parse the given XML string and return document, or null if any error occurs (does not throw parsing exceptions).
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
pattern(String) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Replaces the given pattern match (or the first group within it, if any)
pkg - Variable in class com.android.tools.lint.detector.api.Project
 
PLURALS_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
prepare(List<JavaContext>) - Method in class com.android.tools.lint.client.api.JavaPsiVisitor
 
prepare(List<? extends JavaContext>) - Method in class com.android.tools.lint.client.api.UastParser
Prepare to parse the given contexts.
prepare(List<JavaContext>) - Method in class com.android.tools.lint.client.api.UElementVisitor
 
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
 
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.
put(T) - Method in class com.android.tools.lint.detector.api.LintFix.FixMapBuilder
Puts the given value into the map using its class as the key
put(String, Object) - Method in class com.android.tools.lint.detector.api.LintFix.FixMapBuilder
Puts the given value into the map using the given key
PX_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 

R

RAW_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
readManifest(Document) - Method in class com.android.tools.lint.detector.api.Project
Initialized the manifest state from the given manifest model
readUrlData(LintClient, String, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Reads the data from the given URL, with an optional timeout (in milliseconds)
readUrlDataAsString(LintClient, String, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
Reads the data from the given URL, with an optional timeout (in milliseconds), and returns it as a UTF-8 encoded String
referenceDir - Variable in class com.android.tools.lint.detector.api.Project
 
reformat - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
Whether the modified text range should be reformatted
reformat(boolean) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Whether the replaced range should be reformatted
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
 
remove(String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Removes the given attribute
replace() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Replace a string or regular expression
replacement - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
The replacement string.
reportIssues - Variable in class com.android.tools.lint.detector.api.Project
 
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(ExternalReferenceExpression, UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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.
 
resolveManifestName(Element) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the fully qualified class name for a manifest entry element that specifies a name attribute.
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, String) - 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
 
ResourceReference - Class in com.android.tools.lint.client.api
A reference to an Android resource in the AST; the reference may not be qualified.
ResourceReference(UExpression, String, ResourceType, String) - Constructor for class com.android.tools.lint.client.api.ResourceReference
 
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
 
run(Context) - Method in class com.android.tools.lint.detector.api.Detector
Runs the detector.
run(Context) - Method in class com.android.tools.lint.detector.api.ResourceXmlDetector
 

S

sdkInfo - Variable in class com.android.tools.lint.detector.api.Project
The SDK info, if any
select(int, int) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Selects the value in the offset range (relative to value start
selectAll() - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Selects the newly inserted value
set() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Set or clear an attribute
set(String, String, String) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Sets a specific attribute
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
 
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.
setImplementation(Implementation) - Method in class com.android.tools.lint.detector.api.Issue
Sets the implementation for the given issue.
setLocation(Location) - Method in exception com.android.tools.lint.client.api.CircularDependencyException
Sets the associated location, if any
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
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.
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
 
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
shortenNames - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
Whether symbols should be shortened after replacement
shortenNames() - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
The IDE should simplify fully qualified names in the element after this fix has been run (off by default)
skipParentheses(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
skipParentheses(UElement) - 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
STRING_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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.
STYLE_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
STYLEABLE_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
supportLib - Variable in class com.android.tools.lint.detector.api.Project
 

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
 
testLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
testSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
text(String) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Replaces the given literal text
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.
toAndroidReferenceViaResolve(UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
todo(String, String, String, String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the value to TODO meant for values that aren't optional.
todo(String, String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the value to TODO meant for values that aren't optional.
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.Implementation
 
toString() - Method in class com.android.tools.lint.detector.api.Issue
 
toString() - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
 
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
TRANSITION_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
type(LintFix.GroupType) - Method in class com.android.tools.lint.detector.api.LintFix.GroupBuilder
 
type - Variable in class com.android.tools.lint.detector.api.LintFix.LintFixGroup
The type of group
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

U

UastLintUtils - Class in com.android.tools.lint.detector.api
 
UastLintUtils() - Constructor for class com.android.tools.lint.detector.api.UastLintUtils
 
UastParser - Class in com.android.tools.lint.client.api
A wrapper for a UAST parser.
UastParser() - Constructor for class com.android.tools.lint.client.api.UastParser
 
UElementHandler - Class in com.android.tools.lint.client.api
The UElementHandler is similar to a UastVisitor, but it is used to only visit a single element.
UElementHandler() - Constructor for class com.android.tools.lint.client.api.UElementHandler
 
UElementVisitor - Class in com.android.tools.lint.client.api
Specialized visitor for running detectors on a Java AST.
unset() - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Clear an attribute
unset(String, String) - Method in class com.android.tools.lint.detector.api.LintFix.Builder
Sets a specific attribute

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 - Variable in class com.android.tools.lint.detector.api.LintFix.SetAttribute
The value (or null to delete the attribute)
value(String) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
Sets the value to the given value.
VALUE_ALL - Static variable in class com.android.tools.lint.client.api.DefaultConfiguration
 
valueOf(String) - Static method in enum com.android.tools.lint.detector.api.LintFix.GroupType
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.detector.api.LintFix.GroupType
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.
visitAnnotation(UAnnotation) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitArrayAccessExpression(UArrayAccessExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitAttribute(Attr) - Method in class com.android.tools.lint.client.api.BlameFile.XmlVisitor
 
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.
visitBinaryExpression(UBinaryExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitBinaryExpressionWithType(UBinaryExpressionWithType) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitBlockExpression(UBlockExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitBreakExpression(UBreakExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
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
 
visitCallableReferenceExpression(UCallableReferenceExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitCallExpression(UCallExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitCatchClause(UCatchClause) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitClass(UClass) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitClass(JavaContext, UClass) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Called for each class that extends one of the super classes specified with Detector.UastScanner.applicableSuperClasses().
visitClass(JavaContext, ULambdaExpression) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Like Detector.UastScanner.visitClass(JavaContext, UClass), but used for lambdas in SAM (single abstract method) types.
visitClass(JavaContext, UClass) - Method in class com.android.tools.lint.detector.api.Detector
 
visitClass(JavaContext, ULambdaExpression) - Method in class com.android.tools.lint.detector.api.Detector
 
visitClassLiteralExpression(UClassLiteralExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitConstructor(JavaContext, JavaElementVisitor, PsiNewExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Deprecated.
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, UCallExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Method invoked for any constructor calls found that matches any names returned by Detector.UastScanner.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
 
visitConstructor(JavaContext, UCallExpression, PsiMethod) - Method in class com.android.tools.lint.detector.api.Detector
 
visitContinueExpression(UContinueExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitDeclarationsExpression(UDeclarationsExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
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.
visitDoWhileExpression(UDoWhileExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitElement(UElement) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitElement(UElement) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
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.
visitEnumConstant(UEnumConstant) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitExpressionList(UExpressionList) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitField(UField) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitFile(UFile) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitForEachExpression(UForEachExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitForExpression(UForExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitIfExpression(UIfExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitImportStatement(UImportStatement) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitInitializer(UClassInitializer) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitLabeledExpression(ULabeledExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitLambdaExpression(ULambdaExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitLiteralExpression(ULiteralExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitLocalVariable(ULocalVariable) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitMethod(UMethod) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitMethod(JavaContext, JavaElementVisitor, PsiMethodCallExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Deprecated.
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, UCallExpression, PsiMethod) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Method invoked for any method calls found that matches any names returned by Detector.UastScanner.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
 
visitMethod(JavaContext, UCallExpression, PsiMethod) - Method in class com.android.tools.lint.detector.api.Detector
 
visitObjectLiteralExpression(UObjectLiteralExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitParameter(UParameter) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitParenthesizedExpression(UParenthesizedExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitPolyadicExpression(UPolyadicExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitPostfixExpression(UPostfixExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitPrefixExpression(UPrefixExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitQualifiedReferenceExpression(UQualifiedReferenceExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitReference(JavaContext, JavaElementVisitor, PsiJavaCodeReferenceElement, PsiElement) - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
Deprecated.
Method invoked for any references found that matches any names returned by Detector.JavaPsiScanner.getApplicableReferenceNames().
visitReference(JavaContext, UReferenceExpression, PsiElement) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Method invoked for any references found that matches any names returned by Detector.UastScanner.getApplicableReferenceNames().
visitReference(JavaContext, JavaElementVisitor, PsiJavaCodeReferenceElement, PsiElement) - Method in class com.android.tools.lint.detector.api.Detector
 
visitReference(JavaContext, UReferenceExpression, 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
Deprecated.
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, UElement, ResourceType, String, boolean) - Method in interface com.android.tools.lint.detector.api.Detector.UastScanner
Called for any resource references (such as R.layout.main found in Java code, provided this detector returned true from Detector.UastScanner.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
 
visitResourceReference(JavaContext, UElement, ResourceType, String, boolean) - Method in class com.android.tools.lint.detector.api.Detector
 
visitReturnExpression(UReturnExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitSimpleNameReferenceExpression(USimpleNameReferenceExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitSuperExpression(USuperExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitSwitchClauseExpression(USwitchClauseExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitSwitchExpression(USwitchExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitTag(Element, String) - Method in class com.android.tools.lint.client.api.BlameFile.XmlVisitor
 
visitThisExpression(UThisExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitThrowExpression(UThrowExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitTryExpression(UTryExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitTypeReferenceExpression(UTypeReferenceExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitUnaryExpression(UUnaryExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitVariable(UVariable) - Method in class com.android.tools.lint.client.api.UElementHandler
 
visitVariable(UVariable) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
visitWhileExpression(UWhileExpression) - Method in class com.android.tools.lint.client.api.UElementHandler
 

W

with(String) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
The text to replace the old text or pattern with

X

XML_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
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
 
XmlVisitor() - Constructor for class com.android.tools.lint.client.api.BlameFile.XmlVisitor
 
A B C D E F G H I J K L M N O P R S T U V W X 
Skip navigation links