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