Package org.jf.dexlib2
Enum Class HiddenApiRestriction
- All Implemented Interfaces:
Serializable,Comparable<HiddenApiRestriction>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HiddenApiRestriction[]private static final intprivate static final HiddenApiRestriction[]private static final Map<String, HiddenApiRestriction> private final booleanprivate final Stringprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHiddenApiRestriction(int value, String name, boolean isDomainSpecificApiFlag) -
Method Summary
Modifier and TypeMethodDescriptionstatic intcombineFlags(Iterable<HiddenApiRestriction> flags) static StringformatHiddenRestrictions(int value) static HiddenApiRestrictionstatic Set<HiddenApiRestriction> getAllFlags(int value) intgetValue()booleanbooleanisSet(int value) toString()static HiddenApiRestrictionReturns the enum constant of this class with the specified name.static HiddenApiRestriction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITELIST
-
GREYLIST
-
BLACKLIST
-
GREYLIST_MAX_O
-
GREYLIST_MAX_P
-
GREYLIST_MAX_Q
-
CORE_PLATFORM_API
-
TEST_API
-
-
Field Details
-
domainSpecificApiFlags
-
HIDDENAPI_FLAG_MASK
private static final int HIDDENAPI_FLAG_MASK- See Also:
-
value
private final int value -
name
-
isDomainSpecificApiFlag
private final boolean isDomainSpecificApiFlag
-
Constructor Details
-
HiddenApiRestriction
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<HiddenApiRestriction>
-
getValue
public int getValue() -
isSet
public boolean isSet(int value) -
isDomainSpecificApiFlag
public boolean isDomainSpecificApiFlag() -
getAllFlags
-
formatHiddenRestrictions
-
combineFlags
-
forName
-