public class FragmentDetector
extends com.android.tools.lint.detector.api.Detector
implements com.android.tools.lint.detector.api.SourceCodeScanner
Class.newInstance()}: the class is public, static, and has
a public null constructor.
This helps track down issues like http://stackoverflow.com/questions/8058809/fragment-activity-crashes-on-screen-rotate (and countless duplicates)
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.OtherFileScanner, com.android.tools.lint.detector.api.Detector.ResourceFolderScanner, com.android.tools.lint.detector.api.Detector.UastScanner, com.android.tools.lint.detector.api.Detector.XmlScanner| Modifier and Type | Field and Description |
|---|---|
static com.android.tools.lint.detector.api.Issue |
ISSUE
Are fragment subclasses instantiatable?
|
| Constructor and Description |
|---|
FragmentDetector()
Constructs a new
FragmentDetector |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
applicableSuperClasses() |
void |
visitClass(com.android.tools.lint.detector.api.JavaContext context,
org.jetbrains.uast.UClass node) |
afterCheckFile, afterCheckLibraryProject, afterCheckProject, analyzeCallGraph, applicableAnnotations, appliesTo, appliesTo, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkFolder, checkInstruction, createPsiVisitor, createUastHandler, fix, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, getSpeed, isApplicableAnnotationUsage, isCallGraphRequired, run, visitAnnotationUsage, visitAttribute, visitBuildScript, visitClass, visitConstructor, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitReference, visitReference, visitResourceReference, visitResourceReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanalyzeCallGraph, applicableAnnotations, appliesToResourceRefs, createUastHandler, getApplicableConstructorTypes, getApplicableMethodNames, getApplicableReferenceNames, getApplicableUastTypes, isApplicableAnnotationUsage, isCallGraphRequired, visitAnnotationUsage, visitClass, visitConstructor, visitMethod, visitReference, visitResourceReferencepublic static final com.android.tools.lint.detector.api.Issue ISSUE
public FragmentDetector()
FragmentDetector@Nullable public java.util.List<java.lang.String> applicableSuperClasses()
applicableSuperClasses in interface com.android.tools.lint.detector.api.SourceCodeScannerapplicableSuperClasses in class com.android.tools.lint.detector.api.Detectorpublic void visitClass(@NonNull
com.android.tools.lint.detector.api.JavaContext context,
@NonNull
org.jetbrains.uast.UClass node)
visitClass in interface com.android.tools.lint.detector.api.SourceCodeScannervisitClass in class com.android.tools.lint.detector.api.Detector