com.android.tools.lint.checks
Enum PermissionFinder.Operation
java.lang.Object
java.lang.Enum<PermissionFinder.Operation>
com.android.tools.lint.checks.PermissionFinder.Operation
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PermissionFinder.Operation>
- Enclosing class:
- PermissionFinder
public static enum PermissionFinder.Operation
- extends java.lang.Enum<PermissionFinder.Operation>
Operation that has a permission requirement -- such as a method call,
a content resolver read or write operation, an intent, etc.
Method Summary |
java.lang.String |
prefix()
Prefix to use when describing a name with a permission requirement |
static PermissionFinder.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PermissionFinder.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CALL
public static final PermissionFinder.Operation CALL
ACTION
public static final PermissionFinder.Operation ACTION
READ
public static final PermissionFinder.Operation READ
WRITE
public static final PermissionFinder.Operation WRITE
values
public static PermissionFinder.Operation[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PermissionFinder.Operation c : PermissionFinder.Operation.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PermissionFinder.Operation valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
prefix
public java.lang.String prefix()
- Prefix to use when describing a name with a permission requirement