Package org.jf.dexlib2
Enum HiddenApiRestriction
- java.lang.Object
-
- java.lang.Enum<HiddenApiRestriction>
-
- org.jf.dexlib2.HiddenApiRestriction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HiddenApiRestriction>
public enum HiddenApiRestriction extends java.lang.Enum<HiddenApiRestriction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACKLIST
CORE_PLATFORM_API
GREYLIST
GREYLIST_MAX_O
GREYLIST_MAX_P
GREYLIST_MAX_Q
TEST_API
WHITELIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
combineFlags(java.lang.Iterable<HiddenApiRestriction> flags)
static java.lang.String
formatHiddenRestrictions(int value)
static HiddenApiRestriction
forName(java.lang.String name)
static java.util.Set<HiddenApiRestriction>
getAllFlags(int value)
int
getValue()
boolean
isDomainSpecificApiFlag()
boolean
isSet(int value)
java.lang.String
toString()
static HiddenApiRestriction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HiddenApiRestriction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WHITELIST
public static final HiddenApiRestriction WHITELIST
-
GREYLIST
public static final HiddenApiRestriction GREYLIST
-
BLACKLIST
public static final HiddenApiRestriction BLACKLIST
-
GREYLIST_MAX_O
public static final HiddenApiRestriction GREYLIST_MAX_O
-
GREYLIST_MAX_P
public static final HiddenApiRestriction GREYLIST_MAX_P
-
GREYLIST_MAX_Q
public static final HiddenApiRestriction GREYLIST_MAX_Q
-
CORE_PLATFORM_API
public static final HiddenApiRestriction CORE_PLATFORM_API
-
TEST_API
public static final HiddenApiRestriction TEST_API
-
-
Method Detail
-
values
public static HiddenApiRestriction[] 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 (HiddenApiRestriction c : HiddenApiRestriction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiddenApiRestriction 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HiddenApiRestriction>
-
getValue
public int getValue()
-
isSet
public boolean isSet(int value)
-
isDomainSpecificApiFlag
public boolean isDomainSpecificApiFlag()
-
getAllFlags
public static java.util.Set<HiddenApiRestriction> getAllFlags(int value)
-
formatHiddenRestrictions
public static java.lang.String formatHiddenRestrictions(int value)
-
combineFlags
public static int combineFlags(java.lang.Iterable<HiddenApiRestriction> flags)
-
forName
public static HiddenApiRestriction forName(java.lang.String name)
-
-