Enum Class IndexType

java.lang.Object
java.lang.Enum<IndexType>
com.android.dx.io.IndexType
All Implemented Interfaces:
Serializable, Comparable<IndexType>, Constable

public enum IndexType extends Enum<IndexType>
The various types that an index in a Dalvik instruction might refer to.
  • Enum Constant Details

    • UNKNOWN

      public static final IndexType UNKNOWN
      "Unknown." Used for undefined opcodes.
    • NONE

      public static final IndexType NONE
      no index used
    • VARIES

      public static final IndexType VARIES
      "It depends." Used for throw-verification-error.
    • TYPE_REF

      public static final IndexType TYPE_REF
      type reference index
    • STRING_REF

      public static final IndexType STRING_REF
      string reference index
    • METHOD_REF

      public static final IndexType METHOD_REF
      method reference index
    • FIELD_REF

      public static final IndexType FIELD_REF
      field reference index
    • METHOD_AND_PROTO_REF

      public static final IndexType METHOD_AND_PROTO_REF
      method index and a proto index
    • CALL_SITE_REF

      public static final IndexType CALL_SITE_REF
      call site reference index
    • INLINE_METHOD

      public static final IndexType INLINE_METHOD
      inline method index (for inline linked method invocations)
    • VTABLE_OFFSET

      public static final IndexType VTABLE_OFFSET
      direct vtable offset (for static linked method invocations)
    • FIELD_OFFSET

      public static final IndexType FIELD_OFFSET
      direct field offset (for static linked field accesses)
    • METHOD_HANDLE_REF

      public static final IndexType METHOD_HANDLE_REF
      method handle reference index (for loading constant method handles)
    • PROTO_REF

      public static final IndexType PROTO_REF
      proto reference index (for loading constant proto ref)
  • Method Details

    • values

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