com.android.tools.lint.checks
Class PermissionFinder

java.lang.Object
  extended by com.android.tools.lint.checks.PermissionFinder

public class PermissionFinder
extends java.lang.Object

Utility for locating permissions required by an intent or content resolver


Nested Class Summary
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
 
Method Summary
static PermissionFinder.Result findRequiredPermissions(PermissionFinder.Operation operation, com.android.tools.lint.detector.api.JavaContext context, lombok.ast.Node parameter)
          Searches for a permission requirement for the given parameter in the given call
 PermissionFinder.Result search(lombok.ast.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findRequiredPermissions

@Nullable
public static PermissionFinder.Result findRequiredPermissions(@NonNull
                                                                       PermissionFinder.Operation operation,
                                                                       @NonNull
                                                                       com.android.tools.lint.detector.api.JavaContext context,
                                                                       @NonNull
                                                                       lombok.ast.Node parameter)
Searches for a permission requirement for the given parameter in the given call

Parameters:
operation - the operation to look up
context - the context to use for lookup
parameter - the parameter which contains the value which implies the permission
Returns:
the result with the permission requirement, or null if nothing is found

search

@Nullable
public PermissionFinder.Result search(@NonNull
                                               lombok.ast.Node node)