com.android.dx.io
Enum IndexType

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

public enum IndexType
extends Enum<IndexType>

The various types that an index in a Dalvik instruction might refer to.


Enum Constant Summary
FIELD_OFFSET
          direct field offset (for static linked field accesses)
FIELD_REF
          field reference index
INLINE_METHOD
          inline method index (for inline linked method invocations)
METHOD_REF
          method reference index
NONE
          no index used
STRING_REF
          string reference index
TYPE_REF
          type reference index
UNKNOWN
          "Unknown." Used for undefined opcodes.
VARIES
          "It depends." Used for throw-verification-error.
VTABLE_OFFSET
          direct vtable offset (for static linked method invocations)
 
Method Summary
static IndexType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IndexType[] 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

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


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 Detail

values

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

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

valueOf

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


Copyright © 2015. All rights reserved.