public class PermissionFinder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PermissionFinder.Operation
Operation that has a permission requirement -- such as a method call,
a content resolver read or write operation, an intent, etc.
|
static class |
PermissionFinder.Result
A permission requirement given a name and operation
|
| Modifier and Type | Method and Description |
|---|---|
static PermissionFinder.Result |
findRequiredPermissions(com.android.tools.lint.detector.api.JavaContext context,
PermissionFinder.Operation operation,
org.jetbrains.uast.UElement parameter)
Searches for a permission requirement for the given parameter in the given call
|
PermissionFinder.Result |
search(org.jetbrains.uast.UElement node) |
@Nullable public static PermissionFinder.Result findRequiredPermissions(@NonNull com.android.tools.lint.detector.api.JavaContext context, @NonNull PermissionFinder.Operation operation, @NonNull org.jetbrains.uast.UElement parameter)
context - context which can look up annotations etcoperation - the operation to look upparameter - the parameter which contains the value which implies the permission@Nullable public PermissionFinder.Result search(@NonNull org.jetbrains.uast.UElement node)