public interface

IDexValue

com.pnfsoftware.jeb.core.units.code.android.dex.IDexValue

Class Overview

An encoded_value Dex item.

Reference. Value objects are used to encode several types of dex data and metadata, such as static field initializer values or annotation values.

Summary

Constants
int VALUE_ANNOTATION
int VALUE_ARRAY
int VALUE_BOOLEAN
int VALUE_BYTE
int VALUE_CHAR
int VALUE_DOUBLE
int VALUE_ENUM
int VALUE_FIELD
int VALUE_FLOAT
int VALUE_INT
int VALUE_LONG
int VALUE_METHOD
int VALUE_METHOD_HANDLE Added in Android O (= Android 8.0, API 26)
int VALUE_METHOD_TYPE Added in Android O (= Android 8.0, API 26)
int VALUE_NULL
int VALUE_SHORT
int VALUE_STRING
int VALUE_TYPE
Public Methods
abstract IDexAnnotation getAnnotation()
Get the intrinsic value of this item.
abstract List<IDexValue> getArray()
Get the intrinsic value of this item.
abstract boolean getBoolean()
Get the intrinsic value of this item.
abstract byte getByte()
Get the intrinsic value of this item.
abstract char getChar()
Get the intrinsic value of this item.
abstract double getDouble()
Get the intrinsic value of this item.
abstract int getEnumIndex()
Get the intrinsic value of this item.
abstract int getFieldIndex()
Get the intrinsic value of this item.
abstract float getFloat()
Get the intrinsic value of this item.
abstract int getInt()
Get the intrinsic value of this item.
abstract long getLong()
Get the intrinsic value of this item.
abstract int getMethodHandleIndex()
Get the intrinsic value of this item: an index into the method handle pool.
abstract int getMethodIndex()

Get the intrinsic value of this item.

abstract int getMethodTypeIndex()
Get the intrinsic value of this item: an index into the prototype pool.
abstract short getShort()
Get the intrinsic value of this item.
abstract int getStringIndex()
Get the intrinsic value of this item.
abstract int getType()
Get the value type.
abstract int getTypeIndex()
Get the intrinsic value of this item.
abstract boolean isNull()
Determine whether the value is null.

Constants

public static final int VALUE_ANNOTATION

Constant Value: 29 (0x0000001d)

public static final int VALUE_ARRAY

Constant Value: 28 (0x0000001c)

public static final int VALUE_BOOLEAN

Constant Value: 31 (0x0000001f)

public static final int VALUE_BYTE

Constant Value: 0 (0x00000000)

public static final int VALUE_CHAR

Constant Value: 3 (0x00000003)

public static final int VALUE_DOUBLE

Constant Value: 17 (0x00000011)

public static final int VALUE_ENUM

Constant Value: 27 (0x0000001b)

public static final int VALUE_FIELD

Constant Value: 25 (0x00000019)

public static final int VALUE_FLOAT

Constant Value: 16 (0x00000010)

public static final int VALUE_INT

Constant Value: 4 (0x00000004)

public static final int VALUE_LONG

Constant Value: 6 (0x00000006)

public static final int VALUE_METHOD

Constant Value: 26 (0x0000001a)

public static final int VALUE_METHOD_HANDLE

Added in Android O (= Android 8.0, API 26)

Constant Value: 22 (0x00000016)

public static final int VALUE_METHOD_TYPE

Added in Android O (= Android 8.0, API 26)

Constant Value: 21 (0x00000015)

public static final int VALUE_NULL

Constant Value: 30 (0x0000001e)

public static final int VALUE_SHORT

Constant Value: 2 (0x00000002)

public static final int VALUE_STRING

Constant Value: 23 (0x00000017)

public static final int VALUE_TYPE

Constant Value: 24 (0x00000018)

Public Methods

public abstract IDexAnnotation getAnnotation ()

Get the intrinsic value of this item. The value must be an annotation, else the method will throw an exception.

Returns
  • the annotation value

public abstract List<IDexValue> getArray ()

Get the intrinsic value of this item. The value must be an array of values, else the method will throw an exception.

Returns
  • the array of values

public abstract boolean getBoolean ()

Get the intrinsic value of this item. The value must be a boolean, else the method will throw an exception.

Returns
  • the boolean value

public abstract byte getByte ()

Get the intrinsic value of this item. The value must be a byte, else the method will throw an exception.

Returns
  • the byte value

public abstract char getChar ()

Get the intrinsic value of this item. The value must be a character, else the method will throw an exception.

Returns
  • the character value

public abstract double getDouble ()

Get the intrinsic value of this item. The value must be a double, else the method will throw an exception.

Returns
  • the double value

public abstract int getEnumIndex ()

Get the intrinsic value of this item. The value must be an field index representing the value of an enumerated type constant, else the method will throw an exception.

Returns
  • the index value

public abstract int getFieldIndex ()

Get the intrinsic value of this item. The value must be a field index, else the method will throw an exception.

Returns
  • the field index value

public abstract float getFloat ()

Get the intrinsic value of this item. The value must be a float, else the method will throw an exception.

Returns
  • the float value

public abstract int getInt ()

Get the intrinsic value of this item. The value must be a integer, else the method will throw an exception.

Returns
  • the integer value

public abstract long getLong ()

Get the intrinsic value of this item. The value must be a long, else the method will throw an exception.

Returns
  • the long value

public abstract int getMethodHandleIndex ()

Get the intrinsic value of this item: an index into the method handle pool. The value must be a double, else the method will throw an exception.

public abstract int getMethodIndex ()

Get the intrinsic value of this item. The value must be a method index, else the method will throw an exception.

Returns
  • the method index value

public abstract int getMethodTypeIndex ()

Get the intrinsic value of this item: an index into the prototype pool. The value must be a double, else the method will throw an exception.

public abstract short getShort ()

Get the intrinsic value of this item. The value must be a short, else the method will throw an exception.

Returns
  • the short value

public abstract int getStringIndex ()

Get the intrinsic value of this item. The value must be a string index, else the method will throw an exception.

Returns
  • the string index value

public abstract int getType ()

Get the value type.

Note: this is not a Dex type index. Refer to the VALUE_xxx constants in this class.

Returns
  • the value type, refer to the VALUE_xxx constants.

public abstract int getTypeIndex ()

Get the intrinsic value of this item. The value must be a type index, else the method will throw an exception.

Returns
  • the type index value

public abstract boolean isNull ()

Determine whether the value is null.

Returns
  • true if the value represents null