com.android.dx.dex.file
Enum ItemType

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

public enum ItemType
extends Enum<ItemType>
implements ToHuman

Enumeration of all the top-level item types.


Enum Constant Summary
TYPE_ANNOTATION_ITEM
           
TYPE_ANNOTATION_SET_ITEM
           
TYPE_ANNOTATION_SET_REF_ITEM
           
TYPE_ANNOTATION_SET_REF_LIST
           
TYPE_ANNOTATIONS_DIRECTORY_ITEM
           
TYPE_CLASS_DATA_ITEM
           
TYPE_CLASS_DEF_ITEM
           
TYPE_CODE_ITEM
           
TYPE_DEBUG_INFO_ITEM
           
TYPE_ENCODED_ARRAY_ITEM
           
TYPE_EXCEPTION_HANDLER_ITEM
           
TYPE_FIELD_ID_ITEM
           
TYPE_HEADER_ITEM
           
TYPE_MAP_ITEM
           
TYPE_MAP_LIST
           
TYPE_METHOD_ID_ITEM
           
TYPE_PROTO_ID_ITEM
           
TYPE_STRING_DATA_ITEM
           
TYPE_STRING_ID_ITEM
           
TYPE_TYPE_ID_ITEM
           
TYPE_TYPE_ITEM
           
TYPE_TYPE_LIST
           
 
Method Summary
 int getMapValue()
          Gets the map value.
 String getTypeName()
          Gets the type name.
 String toHuman()
          Return the "human" string form of this instance.
static ItemType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ItemType[] 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
 

Enum Constant Detail

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_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 Detail

values

public static ItemType[] 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 (ItemType c : ItemType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ItemType valueOf(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:
IllegalArgumentException - if this enum type 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


Copyright © 2013. All Rights Reserved.