- generatedResourceFolders - Variable in class com.android.tools.lint.detector.api.Project
-
- 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
- getAbortOnError() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getAllApplicationIds() - Method in class com.android.tools.lint.detector.api.Project
-
Returns all application ids, if known
- 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.
- getApplicationId() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the application id, if known
- getApplySuggestions() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getArraySize(Object) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
-
- getAssetFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the asset folders.
- getBaselineFile() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- 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
- getCheckAllWarnings() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getCheckDependencies() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getCheckGeneratedSources() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getCheckTestSources() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- 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
- 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
-
- getExplainIssues() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getFamilyName() - Method in class com.android.tools.lint.detector.api.LintFix
-
Returns the "family" name; the shared name to use to apply *all* fixes of the same family
name in a single go.
- getFatalOnly() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getGeneratedResourceFolders() - Method in class com.android.tools.lint.detector.api.Project
-
- 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
-
- getIgnoreTestSources() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getIgnoreWarnings() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- 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
- getLastAssignment() - Method in class com.android.tools.lint.detector.api.ConstantEvaluator.LastAssignmentFinder
-
- 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.
- getMavenCoordinates() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the Maven coordinates of this project, if known.
- getMergedManifest() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the merged manifest of this project.
- 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
- getPackage() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the application package specified by the manifest
- 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.
- getRemoveFixedBaselineIssues() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- 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.
- getResourceNamespace() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the namespace for resources in this module/project
- 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
-
- 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
- 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
-
- getWarningsAsErrors() - 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.
- ID_RES_ANNOTATION - Static variable in class com.android.tools.lint.detector.api.ResourceEvaluator
-
- 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
- independent - Variable in class com.android.tools.lint.detector.api.LintFix
-
Whether this fix is independent of other fixes getting applied.
- independent(boolean) - Method in class com.android.tools.lint.detector.api.LintFix.ReplaceStringBuilder
-
Whether this fix is independent of other fixes getting applied.
- independent(boolean) - Method in class com.android.tools.lint.detector.api.LintFix.SetAttributeBuilder
-
Whether this fix is independent of other fixes getting applied.
- initialize() - Method in class com.android.tools.lint.detector.api.Project
-
- INSERT_BEGINNING - Static variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
-
Special marker signifying that we don't want to actually replace any text in the element,
just insert the "replacement" at the beginning of the range
- INSERT_END - Static variable in class com.android.tools.lint.detector.api.LintFix.ReplaceString
-
Special marker signifying that we don't want to actually replace any text in the element,
just insert the "replacement" at the end of the range
- 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.
- 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
- isExternalLibrary() - Method in class com.android.tools.lint.detector.api.Project
-
Returns true if this project is an external library (typically an AAR library), as opposed to
a local library we have source for
- 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
-
- isLibrary() - Method in class com.android.tools.lint.detector.api.Project
-
Returns true if this project is an Android library project
- 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
-
- isNumber(UElement) - Static method in class com.android.tools.lint.detector.api.UastLintUtils
-
- 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
-