public class MissingClassDetector
extends com.android.tools.lint.detector.api.LayoutDetector
implements com.android.tools.lint.detector.api.Detector.ClassScanner
com.android.tools.lint.detector.api.Detector.BinaryResourceScanner, com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.JavaPsiScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.ResourceFolderScanner, com.android.tools.lint.detector.api.Detector.XmlScanner| Modifier and Type | Field and Description |
|---|---|
static com.android.tools.lint.detector.api.Issue |
INNERCLASS
Is the right character used for inner class separators?
|
static com.android.tools.lint.detector.api.Issue |
INSTANTIATABLE
Are activity, service, receiver etc subclasses instantiatable?
|
static com.android.tools.lint.detector.api.Issue |
MISSING
Manifest-referenced classes missing from the project or libraries
|
| Constructor and Description |
|---|
MissingClassDetector()
Constructs a new
MissingClassDetector |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCheckProject(com.android.tools.lint.detector.api.Context context) |
boolean |
appliesTo(com.android.resources.ResourceFolderType folderType) |
void |
checkClass(com.android.tools.lint.detector.api.ClassContext context,
org.objectweb.asm.tree.ClassNode classNode) |
java.util.Collection<java.lang.String> |
getApplicableElements() |
static java.lang.String |
getNewValue(com.android.tools.lint.detector.api.Issue issue,
java.lang.String errorMessage,
com.android.tools.lint.detector.api.TextFormat format)
Given an error message produced by this lint detector for the given issue type,
returns the new value to be put into the source code.
|
static java.lang.String |
getOldValue(com.android.tools.lint.detector.api.Issue issue,
java.lang.String errorMessage,
com.android.tools.lint.detector.api.TextFormat format)
Given an error message produced by this lint detector for the given issue type,
returns the old value to be replaced in the source code.
|
com.android.tools.lint.detector.api.Speed |
getSpeed() |
void |
visitElement(com.android.tools.lint.detector.api.XmlContext context,
org.w3c.dom.Element element) |
hasPadding, isHeightFillParent, isWidthFillParentafterCheckFile, afterCheckLibraryProject, applicableSuperClasses, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, createPsiVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getApplicablePsiTypes, getApplicableReferenceNames, getSpeed, visitAttribute, visitBuildScript, visitConstructor, visitConstructor, visitDocument, visitElementAfter, visitMethod, visitMethod, visitReference, visitResourceReference, visitResourceReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final com.android.tools.lint.detector.api.Issue MISSING
public static final com.android.tools.lint.detector.api.Issue INSTANTIATABLE
public static final com.android.tools.lint.detector.api.Issue INNERCLASS
public MissingClassDetector()
MissingClassDetector@NonNull public com.android.tools.lint.detector.api.Speed getSpeed()
getSpeed in class com.android.tools.lint.detector.api.Detectorpublic java.util.Collection<java.lang.String> getApplicableElements()
getApplicableElements in interface com.android.tools.lint.detector.api.Detector.XmlScannergetApplicableElements in class com.android.tools.lint.detector.api.Detectorpublic boolean appliesTo(@NonNull
com.android.resources.ResourceFolderType folderType)
appliesTo in class com.android.tools.lint.detector.api.LayoutDetectorpublic void visitElement(@NonNull
com.android.tools.lint.detector.api.XmlContext context,
@NonNull
org.w3c.dom.Element element)
visitElement in interface com.android.tools.lint.detector.api.Detector.XmlScannervisitElement in class com.android.tools.lint.detector.api.Detectorpublic void afterCheckProject(@NonNull
com.android.tools.lint.detector.api.Context context)
afterCheckProject in class com.android.tools.lint.detector.api.Detectorpublic void checkClass(@NonNull
com.android.tools.lint.detector.api.ClassContext context,
@NonNull
org.objectweb.asm.tree.ClassNode classNode)
checkClass in interface com.android.tools.lint.detector.api.Detector.ClassScannercheckClass in class com.android.tools.lint.detector.api.Detector@Nullable
public static java.lang.String getOldValue(@NonNull
com.android.tools.lint.detector.api.Issue issue,
@NonNull
java.lang.String errorMessage,
@NonNull
com.android.tools.lint.detector.api.TextFormat format)
Intended for IDE quickfix implementations.
issue - the corresponding issueerrorMessage - the error message associated with the errorformat - the format of the error message@Nullable
public static java.lang.String getNewValue(@NonNull
com.android.tools.lint.detector.api.Issue issue,
@NonNull
java.lang.String errorMessage,
@NonNull
com.android.tools.lint.detector.api.TextFormat format)
Intended for IDE quickfix implementations.
issue - the corresponding issueerrorMessage - the error message associated with the errorformat - the format of the error message