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

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.
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() - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Replaces this entire range
ALL - Static variable in interface com.android.tools.lint.detector.api.XmlScannerConstants
Special marker collection returned by XmlScanner.getApplicableElements() or XmlScanner.getApplicableAttributes() to indicate that the check should be invoked on all elements or all attributes
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
 
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.
areIdentifiersEqual(UExpression, UExpression) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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

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

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
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
 
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
 
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 - Variable in class com.android.tools.lint.detector.api.Project
 
ConstantEvaluator - Class in com.android.tools.lint.detector.api
Evaluates constant expressions
ConstantEvaluator() - 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
 
containsAnnotation(List<UAnnotation>, UAnnotation) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
containsAnnotation(List<UAnnotation>, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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() - 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.

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
 
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"
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
 
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(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.detector.api.Project
 
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, 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(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, 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, 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.
expandBackReferences(Matcher) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceString
If this LintFix.ReplaceString specified a regular expression in LintFix.ReplaceString.oldPattern, and the replacement string LintFix.ReplaceString.replacement specifies one or more "back references" (with (?<name>) with the syntax \k<name> then this method will substitute in the matching group.
expandBackReferences(String, Matcher) - Static method in class com.android.tools.lint.detector.api.LintFix.ReplaceString
Given a matched regular expression and a back reference expression, this method produces the expression with back references substituted in.

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.
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
 
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.DefaultConfiguration
 
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.
formatList(List<String>, int, boolean) - 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(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
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.
getAnnotationBooleanValue(UAnnotation, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationBooleanValue(UAnnotation, String, boolean) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationDoubleValue(UAnnotation, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationDoubleValue(UAnnotation, String, double) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationLongValue(UAnnotation, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationLongValue(UAnnotation, String, long) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationStringValue(UAnnotation, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationStringValues(UAnnotation, String) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getAnnotationValue(UAnnotation) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getApplicableDensities() - Method in class com.android.tools.lint.detector.api.Project
Returns the set of applicable densities for this project.
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.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".
getBoolean(JavaContext, UAnnotation, String, boolean) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
getCallName(PsiCallExpression) - Static method in class com.android.tools.lint.detector.api.LintUtils
Deprecated.
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
 
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
getContainingFile(JavaContext, PsiElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
Returns the containing file for the given element
getContainingFile(PsiElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
Returns the containing file for the given element
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
 
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
getDoubleAttribute(JavaContext, UAnnotation, String, double) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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.
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)
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.
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.
getIdentifier(UExpression) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
getInheritedStyles(Project, LintClient, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
getInternalMethodName(PsiMethod) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns the internal method name
getInternalName(PsiClass) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
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
getLongAttribute(JavaContext, UAnnotation, String, long) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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.
getMethodName(UCallExpression) - Static method in class com.android.tools.lint.detector.api.LintUtils
Looks up the method name of a given call.
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
getName() - Method in class com.android.tools.lint.detector.api.Project
Returns the name of the project
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
getPackage() - Method in class com.android.tools.lint.detector.api.Project
Returns the application package specified by the manifest
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
getPrimitiveType(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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
getPropertyFiles() - Method in class com.android.tools.lint.detector.api.Project
Returns the .properties files to be analyzed in the project
getPsiFile(UFile) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
Returns the containing file for the given element
getQualifiedName(PsiElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
getResourceFolders() - Method in class com.android.tools.lint.detector.api.Project
Returns the resource folders.
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
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.DefaultConfiguration
 
getSourceProviders(AndroidProject, Variant) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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.
getSuperClassMap() - Method in class com.android.tools.lint.detector.api.Project
Returns a super class map for this project.
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
 
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
 
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.detector.api.Project
 

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.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
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
 
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.
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
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.
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
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
isGradleProject() - Method in class com.android.tools.lint.detector.api.Project
Returns true if this project is a Gradle-based Android project
isIgnored(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
 
isJavaKeyword(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given string is a reserved Java keyword
isKotlin(Language) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given language is Kotlin
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
isMergingManifests() - Method in class com.android.tools.lint.detector.api.Project
Returns whether manifest merging is in effect
isMinusOne(UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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
isNumber(UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
isRootElement(Element) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given element is the root element of its document
isSameResourceFile(File, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given two paths point to the same logical resource file within a source set.
isStaticInnerClass(ClassNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given class node represents a static inner class.
isString(PsiType) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
isTrueLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
isXmlFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
Returns true if the given file represents an XML file
isZero(UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
iterator() - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
 

J

javaClassFolders - Variable in class com.android.tools.lint.detector.api.Project
 
javaLibraries - Variable in class com.android.tools.lint.detector.api.Project
 
JavaParser - Class in com.android.tools.lint.client.api
Deprecated.
JavaParser() - Constructor for class com.android.tools.lint.client.api.JavaParser
Deprecated.
 
javaSourceFolders - Variable in class com.android.tools.lint.detector.api.Project
 
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
 
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
 
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
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
 

N

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
NAVIGATION_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
 
nextNonWhitespace(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
 
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

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
 
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

range - Variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
A location range to use for searching for the text or pattern.
range(Location) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
Sets a location range to use for searching for the text or pattern.
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
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
 
resolve(ExternalReferenceExpression, UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
 
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.
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
 
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.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.DefaultConfiguration
 
setBuildTargetHash(String) - Method in class com.android.tools.lint.detector.api.Project
Sets the build target hash to be used for this project.
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
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.DefaultConfiguration
 
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.DefaultConfiguration
 
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_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
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.
toString() - Method in class com.android.tools.lint.detector.api.Implementation
 
toString() - Method in class com.android.tools.lint.detector.api.LintFix.DataMap
 
toString() - Method in class com.android.tools.lint.detector.api.Project
 
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
Deprecated.
TYPE_BOOLEAN_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_BYTE - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_BYTE_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_CHAR - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_CHARACTER_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_DOUBLE - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_DOUBLE_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_FLOAT - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_FLOAT_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_INT - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_INTEGER_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_LONG - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_LONG_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_NULL - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_OBJECT - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_SHORT - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_SHORT_WRAPPER - Static variable in class com.android.tools.lint.client.api.JavaParser
Deprecated.
TYPE_STRING - Static variable in class com.android.tools.lint.client.api.JavaParser
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

U

UastLintUtils - Class in com.android.tools.lint.detector.api
 
UastLintUtils() - Constructor for class com.android.tools.lint.detector.api.UastLintUtils
 
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 - 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.
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.
visitElement(UElement) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 
visitVariable(UVariable) - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
 

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
 
XmlScannerConstants - Interface in com.android.tools.lint.detector.api
 
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