- get(LintClient, File) - Static method in class com.android.tools.lint.client.api.JarFileIssueRegistry
-
- getAllAnnotations(PsiModifierListOwner, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getAllLibraries() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the transitive closure of the library projects for this project
- getAnalysisScopes() - Method in class com.android.tools.lint.detector.api.Implementation
-
Returns the sets of scopes required to analyze this issue, or null if all
scopes named by
Implementation.getScope()
are necessary.
- getAnnotation(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
Searches for the annotation of the given type on this node
- getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
Returns any annotations defined on this node
- getAnnotations() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
-
Deprecated.
- getApplicableAsmNodeTypes() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
-
Returns the list of node types (corresponding to the constants in the
AbstractInsnNode
class) that this scanner applies to.
- getApplicableAsmNodeTypes() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableAttributes() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableAttributes() - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
-
Returns the list of attributes that this detector wants to analyze.
- getApplicableCallNames() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
-
Return the list of method call names (in VM format, e.g.
- getApplicableCallNames() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableCallOwners() - Method in interface com.android.tools.lint.detector.api.Detector.ClassScanner
-
- getApplicableCallOwners() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableConstructorTypes() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableConstructorTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
-
Return the list of constructor types this detector is interested in, or
null.
- getApplicableConstructorTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
-
Deprecated.
Return the list of constructor types this detector is interested in, or
null.
- getApplicableDensities() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the set of applicable densities for this project.
- getApplicableElements() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableElements() - Method in interface com.android.tools.lint.detector.api.Detector.XmlScanner
-
Returns the list of elements that this detector wants to analyze.
- getApplicableFiles() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableFiles() - Method in interface com.android.tools.lint.detector.api.Detector.OtherFileScanner
-
Returns the set of files this scanner wants to consider.
- getApplicableMethodNames() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableMethodNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
-
Return the list of method names this detector is interested in, or
null.
- getApplicableMethodNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
-
Deprecated.
Return the list of method names this detector is interested in, or
null.
- getApplicableNodeTypes() - Method in class com.android.tools.lint.detector.api.Detector
-
Deprecated.
- getApplicableNodeTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaScanner
-
Deprecated.
- getApplicablePsiTypes() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicablePsiTypes() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
-
- getApplicableReferenceNames() - Method in class com.android.tools.lint.detector.api.Detector
-
- getApplicableReferenceNames() - Method in interface com.android.tools.lint.detector.api.Detector.JavaPsiScanner
-
Return the list of reference names types this detector is interested in, or null.
- getArgumentCount() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- getArgumentNode(MethodInvocation, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
Deprecated.
- getArgumentType(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- getAssetFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the asset folders.
- getAssetFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the asset folders.
- getAutoBoxedType(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- getBaseline() - Method in class com.android.tools.lint.client.api.LintDriver
-
- getBaselineFile() - Method in class com.android.tools.lint.client.api.Configuration
-
Returns the baseline file to use, if any.
- getBaselineFile() - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getBaseName(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the basename of the given filename, unless it's a dot-file such as ".svn".
- getBriefDescription(TextFormat) - Method in class com.android.tools.lint.detector.api.Issue
-
Briefly (in a couple of words) describes these errors
- getBuildSdk() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the target API used to build the project, or -1 if not known
- getBuildTarget() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the target used to build the project, or null if not known
- getBuildTools(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the specific version of the build tools being used for the given project, if known
- getBuildTools() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the specific version of the build tools being used, if known
- getBytecode() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the raw bytecode data for this class file
- getCacheDir(boolean) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns a suitable location for storing cache files.
- getCallName(PsiCallExpression) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- getCatchTypes(JavaContext, Catch) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getCategories() - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns the available categories
- getCategory() - Method in class com.android.tools.lint.detector.api.Issue
-
The primary category of the issue
- getCharArray(CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- getChildCount(Node) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the number of children of the given node
- getChildren(Node) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the children elements of the given node
- getClassFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
-
- getClassNode() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the bytecode object model
- getClassPath(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Considers the given project as an Eclipse project and returns class path
information for the project - the source folder(s), the output folder and
any libraries.
- getClassType(PsiClass) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getClassType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getClient() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the lint client requesting the lint check.
- getClient() - Method in class com.android.tools.lint.client.api.LintRequest
-
Returns the lint client requesting the lint check
- getClient() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the lint client requesting the lint check
- getClient() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the associated client
- getClientData() - Method in class com.android.tools.lint.detector.api.Location.DefaultLocationHandle
-
- getClientData() - Method in class com.android.tools.lint.detector.api.Location
-
Returns the client data associated with this location - an optional field
which can be used by the creator of the
Location
to store
temporary state associated with the location.
- getClientData() - Method in interface com.android.tools.lint.detector.api.Location.Handle
-
Returns the client data associated with this location - an optional field
which can be used by the creator of the
Location
to store
temporary state associated with the location.
- getClientData() - Method in class com.android.tools.lint.detector.api.Location.ResourceItemHandle
-
- getClientName() - Static method in class com.android.tools.lint.client.api.LintClient
-
Returns the name of the embedding client.
- getClientRevision() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the version number of this lint client, if known
- getColumn() - Method in class com.android.tools.lint.detector.api.DefaultPosition
-
- getColumn() - Method in class com.android.tools.lint.detector.api.Position
-
Returns the column number (where the first character on the line is 0),
or -1 if unknown
- getCommonParent(List<File>) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Computes the shared parent among a set of files (which may be null).
- getCommonParent(File, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Computes the closest common parent path between two files.
- getCompilationUnit() - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getCompileTarget(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the compile target to use for the given project
- getConfiguration(Project, LintDriver) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns a configuration for use by the given project.
- getConfiguration() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the configuration for this project.
- getConfiguration(LintDriver) - Method in class com.android.tools.lint.detector.api.Project
-
Gets the configuration associated with this project
- getConstructors() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- getContainingClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- getContainingClassName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- getContents() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the contents of the file.
- getCrashCount() - Static method in class com.android.tools.lint.client.api.LintDriver
-
For testing only: returns the number of exceptions thrown during Java AST analysis
- getCurrentVariant() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the current selected variant, if any (and if the current project is a Gradle
project).
- getDefaultSeverity(Issue) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getDefaultSeverity() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns the default severity of the issues found by this detector (some
tools may allow the user to specify custom severities for detectors).
- getDescription() - Method in enum com.android.tools.lint.detector.api.Severity
-
Returns a description of this severity suitable for display to the user
- getDetectorClass() - Method in class com.android.tools.lint.detector.api.Implementation
-
Returns the class of the detector to use to find this issue
- getDir() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the project root directory
- getDirectLibraries() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of library projects referenced by this project
- getDisplayName() - Method in enum com.android.tools.lint.detector.api.Speed
-
Returns the user-visible description of the speed of the given
detector
- getDisplayPath(File) - Method in class com.android.tools.lint.detector.api.Project
-
Returns the relative path of a given file relative to the user specified
directory (which is often the project directory but sometimes a higher up
directory when a directory tree is being scanned
- getDriver() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the driver running through the lint checks
- getEncodedString(LintClient, File, boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the encoded String for the given file.
- getEncodedString(byte[], boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the String corresponding to the given data.
- getEnd() - Method in class com.android.tools.lint.detector.api.Location
-
The end position of the range
- getEvaluator() - Method in class com.android.tools.lint.client.api.JavaParser
-
Returns an evaluator which can perform various resolution tasks,
evaluate inheritance lookup etc.
- getEvaluator() - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getExplanation(TextFormat) - Method in class com.android.tools.lint.detector.api.Issue
-
Describes the error found by this rule, e.g.
- getField(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the named field defined in this class, or optionally inherited from a superclass
- getFieldName(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the corresponding R field name for the given XML resource name
- getFields(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the fields defined in this class, and optionally any fields declared in any superclasses as well
- getFile(PsiFile) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getFile() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns the file which records the data in this baseline
- getFile() - Method in class com.android.tools.lint.detector.api.Location
-
Returns the file containing the warning.
- getFileContents(PsiFile) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getFiles() - Method in class com.android.tools.lint.client.api.LintRequest
-
Returns the set of files to check with lint.
- getFixedCount() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns the number of issues that appear to have been fixed (e.g.
- getFolderVersion() - Method in class com.android.tools.lint.detector.api.ResourceContext
-
Returns the folder version.
- getFormattedParameters(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Splits up the given message coming from a given string format (where the string
format follows the very specific convention of having only strings formatted exactly
with the format %n$s where n is between 1 and 9 inclusive, and each formatting parameter
appears exactly once, and in increasing order.
- getFoundErrorCount() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns the number of errors that have been matched from the baseline
- getFoundWarningCount() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns the number of warnings that have been matched from the baseline
- getFqcn(String) - Static method in class com.android.tools.lint.detector.api.ClassContext
-
Converts from a VM owner name (such as foo/bar/Foo$Baz) to a
fully qualified class name (such as foo.bar.Foo.Baz).
- getFullName() - Method in class com.android.tools.lint.detector.api.Category
-
Returns a full name for this category.
- getGradleBuildScripts() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the Gradle build script files configured for this project, if any
- getGradleLibraryModel() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the project model for this project if it corresponds to
a Gradle library.
- getGradleModelVersion() - Method in class com.android.tools.lint.detector.api.Project
-
If this is a Gradle project with a valid Gradle model, return the version
of the model/plugin.
- getGradleProjectModel() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the project model for this project if it corresponds to
a Gradle project.
- getHighestKnownApiLevel() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the highest known API level.
- getId() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns the unique id of this issue.
- getImplementation() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns the implementation for the given issue
- getInheritedStyles(Project, LintClient, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- getInterfaces() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- getInternalDescription(PsiMethod, boolean, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
Computes the internal JVM description of the given method.
- getInternalMethodName(PsiMethod) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the internal method name
- getInternalName(PsiClass) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getInternalName(PsiClassType) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getInternalName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Computes the internal class name of the given fully qualified class name.
- getInternalName(String) - Static method in class com.android.tools.lint.detector.api.ClassContext
-
Computes the internal class name of the given fully qualified class name.
- getIssue(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns the issue for the given id, or null if it's not a valid id
- getIssueCapacity(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Get an approximate issue count for a given scope.
- getIssues() - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns the list of issues that can be found by all known detectors.
- getIssues() - Method in class com.android.tools.lint.client.api.JarFileIssueRegistry
-
- getIssuesForScope(EnumSet<Scope>) - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns all available issues of a given scope (regardless of whether
they are actually enabled for a given configuration etc)
- getJarFile() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the jar file, if any.
- getJavaClassFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the list of output folders for class files
- getJavaClassFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of output folders for class files
- getJavaFile() - Method in class com.android.tools.lint.detector.api.JavaContext
-
Returns the PsiJavaFile
.
- getJavaLibraries(Project, boolean) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the list of Java libraries
- getJavaLibraries(boolean) - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of Java libraries (typically .jar files) that this
project depends on.
- getJavaParser(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
- getJavaSourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the list of source folders for Java source files
- getJavaSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of source folders for Java source files
- getKnownProjects() - Method in class com.android.tools.lint.client.api.LintClient
-
- getLayoutName(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the layout resource name for the given layout file
- getLibraries(boolean) - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
-
- getLine() - Method in class com.android.tools.lint.detector.api.DefaultPosition
-
- getLine() - Method in class com.android.tools.lint.detector.api.Position
-
Returns the line number (0-based where the first line is line 0)
- getLocale(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the locale for the given parent folder.
- getLocale(XmlContext) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the locale for the given context.
- getLocaleAndRegion(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Look up the locale and region from the given parent folder name and
return it as a combined string, such as "en", "en-rUS", b+eng-US, etc, or null if
no language is specified.
- getLocation() - Method in exception com.android.tools.lint.client.api.CircularDependencyException
-
Returns the associated location, if any
- getLocation(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getLocation(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.JavaParser
-
Returns a
Location
for the given element
- getLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns a
Location
for the given DOM node
- getLocation(XmlContext, Node, int, int) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns a
Location
for the given DOM node.
- getLocation(ClassNode) - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns a location for the given ClassNode
, where class node is
either the top level class, or an inner class, in the current context.
- getLocation(MethodNode, ClassNode) - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns a location for the given MethodNode
.
- getLocation(AbstractInsnNode) - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns a location for the given AbstractInsnNode
.
- getLocation(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
-
Returns a location for the given node
- getLocation(PsiElement) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getLocation(Node) - Method in class com.android.tools.lint.detector.api.XmlContext
-
Returns the location for the given node, which may be an element or an attribute.
- getLocation(Node, int, int) - Method in class com.android.tools.lint.detector.api.XmlContext
-
Creates a new location within an XML text node
- getLocationForLine(int, String, String, Location.SearchHints) - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns a location for the given source line number in this class file's
source file, if available.
- getMainProject(Project) - Method in class com.android.tools.lint.client.api.LintRequest
-
Returns the project to be used as the main project during analysis.
- getMainProject() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the main project if this project is a library project, or self
if this is not a library project.
- getManifestFiles() - Method in class com.android.tools.lint.detector.api.Project
-
Gets the paths to the manifest files in this project, if any exists.
- getMessage() - Method in class com.android.tools.lint.detector.api.Location
-
Returns the custom message for this location, if any.
- getMethodName(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getMethodName(PsiElement) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getMethods(boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the methods defined in this class, and optionally any methods inherited from any superclasses as well
- getMethods(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the methods of a given name defined in this class, and optionally any methods inherited from any superclasses as well
- getMinSdk() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the minimum API level requested by the manifest, or -1 if not
specified.
- getMinSdkVersion() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the minimum API level for the project
- getModifiers() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
- getMoreInfo() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns a link (a URL string) to more information, or null
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the fully qualified name of this class
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
-
Deprecated.
- getName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Returns the fully qualified name of the type, such as "int" or "android.app.Activity"
- getName() - Method in class com.android.tools.lint.detector.api.Category
-
Returns the name of this category
- getName() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the name of the project
- getName() - Method in enum com.android.tools.lint.detector.api.Severity
-
Returns the name of this severity
- getNameLocation(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getNameLocation(JavaContext, PsiElement) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getNameLocation(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns a
Location
for the given DOM node
- getNameLocation(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getNameLocation(PsiElement) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getNameLocation(Node) - Method in class com.android.tools.lint.detector.api.XmlContext
-
Returns the location for name-portion of the given element or attribute.
- getNextInstruction(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the next instruction after to the given node, ignoring label and
line number nodes.
- getNextOpcode(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the next opcode after to the given node, ignoring label and line
number nodes
- getNextSiblingOfType(Node, Class<T>) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getNode() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
- getNodeEndOffset(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns the end offset of the given node, or -1 if not known
- getNodeStartOffset(XmlContext, Node) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns the start offset of the given node, or -1 if not known
- getOffset() - Method in class com.android.tools.lint.detector.api.DefaultPosition
-
- getOffset() - Method in class com.android.tools.lint.detector.api.Position
-
The character offset
- getOuterClassNode(ClassNode) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the outer class node of the given class node
- getPackage(PsiElement) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the package containing this class
- getPackage() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the application package specified by the manifest
- getPackageName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the package name of this class
- getParameter(Node, int) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
Deprecated.
- getParameterAnnotation(String, int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
Searches for the annotation of the given type on the method
- getParameterAnnotations(int) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
Returns any annotations defined on the given parameter of this method
- getParameterCount(PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getParameters(Node) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
Deprecated.
- getParent() - Method in class com.android.tools.lint.detector.api.Category
-
Returns the parent category, or null if this is a top level category
- getParentOfType(Node, Class<T>) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getParentOfType(Node, Class<T>, boolean) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getParentOfType(Node, Class<T>, boolean, Class<? extends Node>...) - Static method in class com.android.tools.lint.detector.api.JavaContext
-
- getParentPackage() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedPackage
-
Deprecated.
Returns the parent package of this package, if any.
- getParentViewClass(String) - Method in class com.android.tools.lint.client.api.SdkInfo
-
Returns the fully qualified name of the parent view, or null if the view
is the root android.view.View class.
- getParentViewName(String) - Method in class com.android.tools.lint.client.api.SdkInfo
-
Returns the class name of the parent view, or null if the view is the
root android.view.View class.
- getParser() - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getParser() - Method in class com.android.tools.lint.detector.api.XmlContext
-
- getPhase() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the current phase number.
- getPhase() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the current phase number.
- getPrevInstruction(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the previous instruction prior to the given node, ignoring label
and line number nodes.
- getPrevOpcode(AbstractInsnNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns the previous opcode prior to the given node, ignoring label and
line number nodes
- getPrimitiveSignature(String) - Static method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getPrimitiveType(String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- getPriority() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns a priority, in the range 1-10, with 10 being the most severe and
1 the least
- getProguardFiles() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the proguard files configured for this project, if any
- getProject() - Method in exception com.android.tools.lint.client.api.CircularDependencyException
-
Returns the associated project, if any
- getProject(File, File) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns a project for the given directory.
- getProject() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the project containing the file being checked
- getProjectName(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the name of the given project
- getProjectResources(Project, boolean) - Method in class com.android.tools.lint.client.api.LintClient
-
- getProjects() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the projects being analyzed
- getProjects() - Method in class com.android.tools.lint.client.api.LintRequest
-
Gets the projects for the lint requests.
- getProperty(Object) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the property previously stored with the given key, or null
- getProperty(String) - Method in class com.android.tools.lint.detector.api.Context
-
Returns the value of the given named property, or null.
- getRangeLocation(JavaContext, Node, int, Node, int) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getRangeLocation(JavaContext, PsiElement, int, PsiElement, int) - Method in class com.android.tools.lint.client.api.JavaParser
-
Returns a
Location
for the given node range (from the starting offset of the first
node to the ending offset of the second node).
- getRangeLocation(JavaContext, PsiElement, int, int) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getRangeLocation(Node, int, Node, int) - Method in class com.android.tools.lint.detector.api.JavaContext
-
Returns a location for the given node range (from the starting offset of the first node to
the ending offset of the second node).
- getRangeLocation(PsiElement, int, PsiElement, int) - Method in class com.android.tools.lint.detector.api.JavaContext
-
Returns a location for the given node range (from the starting offset of the first node to
the ending offset of the second node).
- getRangeLocation(PsiElement, int, int) - Method in class com.android.tools.lint.detector.api.JavaContext
-
Returns a location for the given node range (from the starting offset of the first node to
the ending offset of the second node).
- getReader(CharSequence, boolean) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- getReferenceDir() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the original user supplied directory where the lint search
started.
- getRegistry() - Method in class com.android.tools.lint.client.api.LintDriver
-
- getRelativePath(File) - Method in class com.android.tools.lint.detector.api.Project
-
Returns the relative path of a given file within the current project.
- getReportIssues() - Method in class com.android.tools.lint.detector.api.Project
-
Returns whether lint should report issues in this project.
- getRepositoryLogger() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns a repository logger used by this client.
- getRequest() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the current request, which points to the original files to be checked,
the original scope, the original
LintClient
, as well as the release mode.
- getResource(JavaEvaluator, PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
-
Evaluates the given node and returns the resource reference (type and name) it
points to, if any
- getResource(PsiElement) - Method in class com.android.tools.lint.detector.api.ResourceEvaluator
-
Evaluates the given node and returns the resource reference (type and name) it
points to, if any
- getResourceConstant(PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
-
Returns a resource URL based on the field reference in the code
- getResourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the resource folders.
- getResourceFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the resource folders.
- getResourceFolderType() - Method in class com.android.tools.lint.detector.api.ResourceContext
-
Returns the resource folder type of this XML file, if any.
- getResourceFolderVersion(File) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the folder version of the given file.
- getResourceRepository(Project, boolean, boolean) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the project resources, if available
- getResourceTypes(JavaEvaluator, PsiElement) - Static method in class com.android.tools.lint.detector.api.ResourceEvaluator
-
Evaluates the given node and returns the resource types implied by the given element,
if any.
- getResourceTypes(PsiElement) - Method in class com.android.tools.lint.detector.api.ResourceEvaluator
-
Evaluates the given node and returns the resource types applicable to the
node, if any.
- getResourceVisibility() - Method in class com.android.tools.lint.detector.api.Project
-
Returns a shared ResourceVisibilityLookup
- getResourceVisibilityProvider() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns a shared ResourceVisibilityLookup.Provider
- getReturnType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- getScope() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the scope for the lint job
- getScope() - Method in class com.android.tools.lint.client.api.LintRequest
-
Sets the scope to use; lint checks which require a wider scope set
will be ignored
- getScope() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the scope for the lint job
- getScope() - Method in class com.android.tools.lint.detector.api.Implementation
-
Returns the scope required to analyze the code to detect this issue.
- getSdk() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the SDK installation (used to look up platforms etc)
- getSdkHome() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the File pointing to the user's SDK install area.
- getSdkInfo(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the
SdkInfo
to use for the given project.
- getSdkInfo() - Method in class com.android.tools.lint.detector.api.Context
-
Gets the SDK info for the current project.
- getSdkInfo() - Method in class com.android.tools.lint.detector.api.Project
-
Gets the SDK info for the current project.
- getSecondary() - Method in class com.android.tools.lint.detector.api.Location
-
Returns a secondary location associated with this location (if
applicable), or null.
- getSeverity(Issue) - Method in class com.android.tools.lint.client.api.Configuration
-
Returns the severity for a given issue.
- getSeverity(Issue) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
-
Deprecated.
- getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
Returns the signature of the resolved node
- getSignature() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Returns the full signature of the type, which is normally the same as
JavaParser.TypeDescriptor.getName()
but for arrays can include []'s, for generic methods can include generics parameters
etc
- getSimpleName() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Returns the simple name of this class
- getSimpleName() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Returns the simple name of this class
- getSourceContents() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the contents of the source file for this class file, if found.
- getSourceContents(boolean) - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the contents of the source file for this class file, if found.
- getSourceFile() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns the source file for this class file, if possible.
- getSourceFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
-
- getSpeed() - Method in class com.android.tools.lint.detector.api.Detector
-
Deprecated.
- getSpeed(Issue) - Method in class com.android.tools.lint.detector.api.Detector
-
Deprecated.
- getStart() - Method in class com.android.tools.lint.detector.api.Location
-
The start position of the range
- getStyleAttributes(Project, LintClient, String, String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Looks up the resource values for the given attribute given a style.
- getSubset() - Method in class com.android.tools.lint.detector.api.Project
-
The list of files to be checked in this project.
- getSuperClass() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- getSuperClass(Project, String) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the super class for the given class name, which should be in VM
format (e.g.
- getSuperClass(String) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns the super class for the given class name,
which should be in VM format (e.g.
- getSuperClassMap() - Method in class com.android.tools.lint.detector.api.Project
-
Returns a super class map for this project.
- getSuperMethod(PsiMethod) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- getSuperMethod() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
Returns the super implementation of the given method, if any
- getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.Context
-
Returns the comment marker used in Studio to suppress statements for language, if any
- getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getSuppressCommentPrefix() - Method in class com.android.tools.lint.detector.api.XmlContext
-
- getTargets() - Method in class com.android.tools.lint.client.api.LintClient
-
Returns all the IAndroidTarget
versions installed in the user's SDK install
area.
- getTargetSdk() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the target API level specified by the manifest, or -1 if not
specified.
- getTargetSdkVersion() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the target API level for the project
- getTestLibraries() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
-
- getTestLibraries(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the list of libraries needed to compile the test source files
- getTestLibraries() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of source folders for Java test source files
- getTestSourceFolders() - Method in class com.android.tools.lint.client.api.LintClient.ClassPathInfo
-
- getTestSourceFolders(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns the list of source folders for test source files
- getTestSourceFolders() - Method in class com.android.tools.lint.detector.api.Project
-
Returns the list of source folders for Java test source files
- getTotalCount() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns the total number of issues contained in this baseline
- getType(JavaContext, Node) - Method in class com.android.tools.lint.client.api.JavaParser
-
- getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- getType() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedVariable
-
Deprecated.
- getType(Node) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
-
Deprecated.
- getTypeClass() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
If the type is not primitive, returns the class of the type if known
- getValue(String) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getValue() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- getValueLocation(XmlContext, Attr) - Method in class com.android.tools.lint.client.api.XmlParser
-
Returns a
Location
for the given DOM node
- getValueLocation(Attr) - Method in class com.android.tools.lint.detector.api.XmlContext
-
Returns the location for value-portion of the given attribute
- getValues() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
-
Deprecated.
- getXmlParser() - Method in class com.android.tools.lint.client.api.LintClient
-
- globToRegexp(String) - Static method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- GRADLE_SCOPE - Static variable in enum com.android.tools.lint.detector.api.Scope
-
Scope-set used for detectors which are affected by a single Gradle build file
- gradleFiles - Variable in class com.android.tools.lint.detector.api.Project
-
- gradleProject - Variable in class com.android.tools.lint.detector.api.Project
-
- gradleVersion - Variable in class com.android.tools.lint.detector.api.Project
-
- guessGradleLocation(Project) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Create a
Location
for an error in the top level build.gradle file.
- I18N - Static variable in class com.android.tools.lint.detector.api.Category
-
Issues related to internationalization
- ICONS - Static variable in class com.android.tools.lint.detector.api.Category
-
Issues related to icons
- idReferencesMatch(String, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given two id references match.
- ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.Configuration
-
Marks the given warning as "ignored".
- ignore(Issue, File) - Method in class com.android.tools.lint.client.api.Configuration
-
Marks the given issue and file combination as being ignored.
- ignore(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- ignore(Issue, File) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- Implementation - Class in com.android.tools.lint.detector.api
-
An
Implementation of an
Issue
maps to the
Detector
class responsible for analyzing the issue, as well as the
Scope
required
by the detector to perform its analysis.
- Implementation(Class<? extends Detector>, EnumSet<Scope>) - Constructor for class com.android.tools.lint.detector.api.Implementation
-
Creates a new implementation for analyzing one or more issues
- Implementation(Class<? extends Detector>, EnumSet<Scope>, EnumSet<Scope>...) - Constructor for class com.android.tools.lint.detector.api.Implementation
-
Creates a new implementation for analyzing one or more issues
- implementsInterface(PsiClass, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- indexOf(CharSequence, char) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- indexOf(CharSequence, char, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- indexOf(CharSequence, CharSequence) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- indexOf(CharSequence, CharSequence, int) - Static method in class com.android.tools.lint.detector.api.CharSequences
-
- infer(Collection<Project>) - Static method in enum com.android.tools.lint.detector.api.Scope
-
Infers a suitable scope to use from the given projects to be analyzed
- inheritsFrom(PsiClass, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
Checks whether the class extends a super class or implements a given interface.
- initialize() - Method in class com.android.tools.lint.detector.api.Project
-
- intersect(EnumSet<Scope>, EnumSet<Scope>) - Static method in enum com.android.tools.lint.detector.api.Scope
-
Returns the intersection of two scope sets
- isAbbreviating() - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether lint should abbreviate output when appropriate.
- isAbstract(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isAdequate(EnumSet<Scope>) - Method in class com.android.tools.lint.detector.api.Implementation
-
Returns true if the given scope is adequate for analyzing this issue.
- isAndroidProject() - Method in class com.android.tools.lint.detector.api.Project
-
Returns true if this project is an Android project.
- isAnonymousClass(ClassNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given class node represents an anonymous inner class
- isAospBuildEnvironment() - Static method in class com.android.tools.lint.detector.api.Project
-
Is lint running in an AOSP build environment
- isAospFrameworksProject(File) - Static method in class com.android.tools.lint.detector.api.Project
-
Is this the actual frameworks project.
- isAospFrameworksRelatedProject(File) - Static method in class com.android.tools.lint.detector.api.Project
-
Is this the frameworks or related AOSP project? Needs some hardcoded support since
it doesn't have a manifest file, etc.
- isArray() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
-
Deprecated.
- isArray() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Returns true if the given TypeDescriptor represents an array
- isArrayLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.ConstantEvaluator
-
Returns true if the node is pointing to a an array literal
- isBitmapFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given file represents a bitmap drawable file
- isCategoryName(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns true if the given category is a valid category
- isConstructor() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- isConstructor() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
-
- isContextMethod(MethodInvocation) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- isCustomIssue(Issue) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns true if the given issue is an issue that was loaded as a custom rule
(e.g.
- isEditableTo(String, String, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the first string can be edited (Via insertions, deletions or
substitutions) into the second string in at most the given number of editing
operations.
- isEnabled(Issue) - Method in class com.android.tools.lint.client.api.Configuration
-
Returns false if the given issue has been disabled.
- isEnabled(Issue) - Method in class com.android.tools.lint.detector.api.Context
-
Returns false if the given issue has been disabled.
- isEnabledByDefault() - Method in class com.android.tools.lint.detector.api.Issue
-
Returns whether this issue should be enabled by default, unless the user
has explicitly disabled it.
- isEnglishResource(XmlContext, boolean) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Check whether the given resource file is in an English locale
- isEnum() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- isError() - Method in enum com.android.tools.lint.detector.api.Severity
-
Returns true if this severity is at least an error
- isFalseLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- isFileBasedResourceType(ResourceType) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Determine if the given type corresponds to a resource that has a unique
file
- isFilteredMessage(String, TextFormat) - Static method in class com.android.tools.lint.client.api.LintBaseline
-
- isFinal(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isFixedMessage(String, TextFormat) - Static method in class com.android.tools.lint.client.api.LintBaseline
-
Given an error message produced by this lint detector for the given issue type,
determines whether this corresponds to the warning (produced by
{link
LintBaseline.reportBaselineIssues(LintDriver, Project)
above) that one or
more issues have been fixed (present in baseline but not in project.)
- isFromClassLibrary() - Method in class com.android.tools.lint.detector.api.ClassContext
-
Returns whether this class is part of a library (not this project).
- isGradle() - Static method in class com.android.tools.lint.client.api.LintClient
-
Returns true if the embedding client currently running lint is Gradle
- isGradleProject(Project) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns true if this project is a Gradle-based Android project
- isGradleProject() - Method in class com.android.tools.lint.detector.api.Project
-
Returns true if this project is a Gradle-based Android project
- isHeightFillParent(Element) - Static method in class com.android.tools.lint.detector.api.LayoutDetector
-
- isIgnored(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.Configuration
-
Checks whether this issue should be ignored because the user has already
suppressed the error? Note that this refers to individual issues being
suppressed/ignored, not a whole detector being disabled via something
like
Configuration.isEnabled(Issue)
.
- isIgnored(Context, Issue, Location, String) - Method in class com.android.tools.lint.client.api.DefaultConfiguration
-
- isImplementing(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Determines whether this is implementing the given interface.
- isImported(Node, String) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- isInherited(PsiAnnotation, PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
Returns true if the given annotation is inherited (instead of being defined directly
on the given modifier list holder
- isInheritingFrom(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Determines whether this class extends or implements the class of the given name.
- isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedField
-
Deprecated.
- isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedMethod
-
Deprecated.
- isInPackage(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedNode
-
Deprecated.
Returns true if this element is in the given package (or optionally, in one of its sub
packages)
- isInterface() - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
- isIssueId(String) - Method in class com.android.tools.lint.client.api.IssueRegistry
-
Returns true if the given id represents a valid issue id
- isJavaSymbol() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
-
- isLayout(String) - Method in class com.android.tools.lint.client.api.SdkInfo
-
Returns true if the given widget name is a layout
- isLibrary() - Method in class com.android.tools.lint.detector.api.Project
-
Returns true if this project is an Android library project
- isManifestFolder(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given directory is a lint manifest file directory.
- isMemberInClass(PsiMember, String) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isMemberInSubClassOf(PsiMember, String, boolean) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isMergingManifests() - Method in class com.android.tools.lint.detector.api.Project
-
Returns whether manifest merging is in effect
- isModelOlderThan(Project, int, int, int) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given Gradle model is older than the given version number
- isNullLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given element is the null literal
- isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
-
Deprecated.
- isPrimitive() - Method in class com.android.tools.lint.client.api.JavaParser.TypeDescriptor
-
Deprecated.
Returns true if the given TypeDescriptor represents a primitive
- isPrivate(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isProjectDirectory(File) - Method in class com.android.tools.lint.client.api.LintClient
-
Returns true if the given directory is a lint project directory.
- isPublic(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isReleaseMode() - Method in class com.android.tools.lint.client.api.LintRequest
-
Returns true
if lint is invoked as part of a release mode build,
false
if it is part of a debug mode build, and null
if
the release mode is not known
- isRemoveFixed() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Whether the baseline when writing the file will skip fixed issues, or include all.
- isRootElement(Element) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given element is the root element of its document
- isSameResourceFile(File, File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given two paths point to the same logical resource file within
a source set.
- isSelfExplanatory() - Method in class com.android.tools.lint.detector.api.Location
-
Whether this message is self-explanatory.
- isStatic(PsiModifierListOwner) - Method in class com.android.tools.lint.client.api.JavaEvaluator
-
- isStaticInnerClass(ClassNode) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given class node represents a static inner class.
- isString(PsiType) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- isStudio() - Static method in class com.android.tools.lint.client.api.LintClient
-
Returns true if the embedding client currently running lint is Android Studio
(or IntelliJ IDEA)
- isSubclassOf(String, boolean) - Method in class com.android.tools.lint.client.api.JavaParser.ResolvedClass
-
Deprecated.
Determines whether this class extends the given name.
- isSubclassOf(Project, String, String) - Method in class com.android.tools.lint.client.api.LintClient
-
Checks whether the given name is a subclass of the given super class.
- isSubclassOf(ClassNode, String) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns true if the given class is a subclass of the given super class.
- isSubViewOf(String, String) - Method in class com.android.tools.lint.client.api.SdkInfo
-
Returns true if the given child view is the same class or a sub class of
the given parent view class
- Issue - Class in com.android.tools.lint.detector.api
-
An issue is a potential bug in an Android application.
- IssueRegistry - Class in com.android.tools.lint.client.api
-
Registry which provides a list of checks to be performed on an Android project
- IssueRegistry() - Constructor for class com.android.tools.lint.client.api.IssueRegistry
-
- isSuppressed(Issue, ClassNode, MethodNode, AbstractInsnNode) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether the given issue is suppressed in the given method.
- isSuppressed(Issue, FieldNode) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether the given issue is suppressed for the given field.
- isSuppressed(Issue, ClassNode) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether the given issue is suppressed in the given class.
- isSuppressed(JavaContext, Issue, Node) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether the given issue is suppressed in the given parse tree node.
- isSuppressed(JavaContext, Issue, PsiElement) - Method in class com.android.tools.lint.client.api.LintDriver
-
- isSuppressed(Issue, PsiModifierList) - Static method in class com.android.tools.lint.client.api.LintDriver
-
Returns true if the given AST modifier has a suppress annotation for the
given issue (which can be null to check for the "all" annotation)
- isSuppressed(Issue, PsiAnnotationMemberValue) - Static method in class com.android.tools.lint.client.api.LintDriver
-
Returns true if the annotation member value, assumed to be specified on a a SuppressWarnings
or SuppressLint annotation, specifies the given id (or "all").
- isSuppressed(XmlContext, Issue, Node) - Method in class com.android.tools.lint.client.api.LintDriver
-
Returns whether the given issue is suppressed in the given XML DOM node.
- isSuppressedWithComment(int, Issue) - Method in class com.android.tools.lint.detector.api.Context
-
Returns true if the given issue is suppressed at the given character offset
in the file's contents
- isSuppressedWithComment(Node, Issue) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- isSuppressedWithComment(PsiElement, Issue) - Method in class com.android.tools.lint.detector.api.JavaContext
-
- isSuppressedWithComment(Node, Issue) - Method in class com.android.tools.lint.detector.api.XmlContext
-
- isTestSource() - Method in class com.android.tools.lint.detector.api.JavaContext
-
Whether this compilation unit is in a test folder
- isTrueLiteral(PsiElement) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
- isVisible() - Method in class com.android.tools.lint.detector.api.Location
-
Whether this location should be visible on its own.
- isWholeWord() - Method in class com.android.tools.lint.detector.api.Location.SearchHints
-
- isWidthFillParent(Element) - Static method in class com.android.tools.lint.detector.api.LayoutDetector
-
- isWriteOnClose() - Method in class com.android.tools.lint.client.api.LintBaseline
-
Returns whether this baseline is writing its result upon close
- isXmlFile(File) - Static method in class com.android.tools.lint.detector.api.LintUtils
-
Returns true if the given file represents an XML file