Enum Class ItemType

java.lang.Object
java.lang.Enum<ItemType>
com.android.dx.dex.file.ItemType
All Implemented Interfaces:
ToHuman, Serializable, Comparable<ItemType>, Constable

public enum ItemType extends Enum<ItemType> implements ToHuman
Enumeration of all the top-level item types.
  • Enum Constant Details

    • TYPE_HEADER_ITEM

      public static final ItemType TYPE_HEADER_ITEM
    • TYPE_STRING_ID_ITEM

      public static final ItemType TYPE_STRING_ID_ITEM
    • TYPE_TYPE_ID_ITEM

      public static final ItemType TYPE_TYPE_ID_ITEM
    • TYPE_PROTO_ID_ITEM

      public static final ItemType TYPE_PROTO_ID_ITEM
    • TYPE_FIELD_ID_ITEM

      public static final ItemType TYPE_FIELD_ID_ITEM
    • TYPE_METHOD_ID_ITEM

      public static final ItemType TYPE_METHOD_ID_ITEM
    • TYPE_CLASS_DEF_ITEM

      public static final ItemType TYPE_CLASS_DEF_ITEM
    • TYPE_CALL_SITE_ID_ITEM

      public static final ItemType TYPE_CALL_SITE_ID_ITEM
    • TYPE_METHOD_HANDLE_ITEM

      public static final ItemType TYPE_METHOD_HANDLE_ITEM
    • TYPE_MAP_LIST

      public static final ItemType TYPE_MAP_LIST
    • TYPE_TYPE_LIST

      public static final ItemType TYPE_TYPE_LIST
    • TYPE_ANNOTATION_SET_REF_LIST

      public static final ItemType TYPE_ANNOTATION_SET_REF_LIST
    • TYPE_ANNOTATION_SET_ITEM

      public static final ItemType TYPE_ANNOTATION_SET_ITEM
    • TYPE_CLASS_DATA_ITEM

      public static final ItemType TYPE_CLASS_DATA_ITEM
    • TYPE_CODE_ITEM

      public static final ItemType TYPE_CODE_ITEM
    • TYPE_STRING_DATA_ITEM

      public static final ItemType TYPE_STRING_DATA_ITEM
    • TYPE_DEBUG_INFO_ITEM

      public static final ItemType TYPE_DEBUG_INFO_ITEM
    • TYPE_ANNOTATION_ITEM

      public static final ItemType TYPE_ANNOTATION_ITEM
    • TYPE_ENCODED_ARRAY_ITEM

      public static final ItemType TYPE_ENCODED_ARRAY_ITEM
    • TYPE_ANNOTATIONS_DIRECTORY_ITEM

      public static final ItemType TYPE_ANNOTATIONS_DIRECTORY_ITEM
    • TYPE_MAP_ITEM

      public static final ItemType TYPE_MAP_ITEM
    • TYPE_TYPE_ITEM

      public static final ItemType TYPE_TYPE_ITEM
    • TYPE_EXCEPTION_HANDLER_ITEM

      public static final ItemType TYPE_EXCEPTION_HANDLER_ITEM
    • TYPE_ANNOTATION_SET_REF_ITEM

      public static final ItemType TYPE_ANNOTATION_SET_REF_ITEM
  • Method Details

    • values

      public static ItemType[] 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 ItemType 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
    • getMapValue

      public int getMapValue()
      Gets the map value.
      Returns:
      the map value
    • getTypeName

      public String getTypeName()
      Gets the type name.
      Returns:
      non-null; the type name
    • toHuman

      public String toHuman()
      Return the "human" string form of this instance. This is generally less "debuggy" than toString().
      Specified by:
      toHuman in interface ToHuman
      Returns:
      non-null; the human string form