Enum Class HiddenApiRestriction

java.lang.Object
java.lang.Enum<HiddenApiRestriction>
org.jf.dexlib2.HiddenApiRestriction
All Implemented Interfaces:
Serializable, Comparable<HiddenApiRestriction>, Constable

public enum HiddenApiRestriction extends Enum<HiddenApiRestriction>
  • Enum Constant Details

  • Field Details

    • hiddenApiFlags

      private static final HiddenApiRestriction[] hiddenApiFlags
    • domainSpecificApiFlags

      private static final HiddenApiRestriction[] domainSpecificApiFlags
    • hiddenApiRestrictionsByName

      private static final Map<String,HiddenApiRestriction> hiddenApiRestrictionsByName
    • HIDDENAPI_FLAG_MASK

      private static final int HIDDENAPI_FLAG_MASK
      See Also:
    • value

      private final int value
    • name

      private final String name
    • isDomainSpecificApiFlag

      private final boolean isDomainSpecificApiFlag
  • Constructor Details

    • HiddenApiRestriction

      private HiddenApiRestriction(int value, String name, boolean isDomainSpecificApiFlag)
  • Method Details

    • values

      public static HiddenApiRestriction[] 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

      public static HiddenApiRestriction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HiddenApiRestriction>
    • getValue

      public int getValue()
    • isSet

      public boolean isSet(int value)
    • isDomainSpecificApiFlag

      public boolean isDomainSpecificApiFlag()
    • getAllFlags

      public static Set<HiddenApiRestriction> getAllFlags(int value)
    • formatHiddenRestrictions

      public static String formatHiddenRestrictions(int value)
    • combineFlags

      public static int combineFlags(Iterable<HiddenApiRestriction> flags)
    • forName

      public static HiddenApiRestriction forName(String name)