|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.detector.api.Detector com.android.tools.lint.checks.CheckPermissionDetector
public class CheckPermissionDetector
Ensures that calls to check permission use the result (otherwise they probably meant to call the enforce permission methods instead)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector |
---|
com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.XmlScanner |
Field Summary | |
---|---|
static com.android.tools.lint.detector.api.Issue |
ISSUE
Main issue checked by this detector |
Constructor Summary | |
---|---|
CheckPermissionDetector()
Constructs a new CheckPermissionDetector check |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getApplicableMethodNames()
|
void |
visitMethod(com.android.tools.lint.detector.api.JavaContext context,
lombok.ast.AstVisitor visitor,
lombok.ast.MethodInvocation node)
|
Methods inherited from class com.android.tools.lint.detector.api.Detector |
---|
afterCheckFile, afterCheckLibraryProject, afterCheckProject, appliesTo, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkCall, checkClass, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableNodeTypes, getSpeed, run, visitAttribute, visitBuildScript, visitDocument, visitElement, visitElementAfter, visitResourceReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.android.tools.lint.detector.api.Detector.JavaScanner |
---|
appliesToResourceRefs, createJavaVisitor, getApplicableNodeTypes, visitResourceReference |
Field Detail |
---|
public static final com.android.tools.lint.detector.api.Issue ISSUE
Constructor Detail |
---|
public CheckPermissionDetector()
CheckPermissionDetector
check
Method Detail |
---|
public void visitMethod(@NonNull com.android.tools.lint.detector.api.JavaContext context, @Nullable lombok.ast.AstVisitor visitor, @NonNull lombok.ast.MethodInvocation node)
visitMethod
in interface com.android.tools.lint.detector.api.Detector.JavaScanner
visitMethod
in class com.android.tools.lint.detector.api.Detector
public java.util.List<java.lang.String> getApplicableMethodNames()
getApplicableMethodNames
in interface com.android.tools.lint.detector.api.Detector.JavaScanner
getApplicableMethodNames
in class com.android.tools.lint.detector.api.Detector
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |