public class DexValue
extends java.lang.Object
This class represents DEX encoded_value
objects.
Modifier and Type | Field and Description |
---|---|
static int |
VALUE_ANNOTATION |
static int |
VALUE_ARRAY |
static int |
VALUE_BOOLEAN |
static int |
VALUE_BYTE |
static int |
VALUE_CHAR |
static int |
VALUE_DOUBLE |
static int |
VALUE_ENUM |
static int |
VALUE_FIELD |
static int |
VALUE_FLOAT |
static int |
VALUE_INT |
static int |
VALUE_LONG |
static int |
VALUE_METHOD |
static int |
VALUE_NULL |
static int |
VALUE_SHORT |
static int |
VALUE_STRING |
static int |
VALUE_TYPE |
Modifier and Type | Method and Description |
---|---|
DexAnnotation |
getAnnotation()
Get the intrinsic value of this item.
|
java.util.List<DexValue> |
getArray()
Get the intrinsic value of this item.
|
boolean |
getBoolean()
Get the intrinsic value of this item.
|
byte |
getByte()
Get the intrinsic value of this item.
|
char |
getChar()
Get the intrinsic value of this item.
|
double |
getDouble()
Get the intrinsic value of this item.
|
int |
getEnumIndex()
Get the intrinsic value of this item.
|
int |
getFieldIndex()
Get the intrinsic value of this item.
|
float |
getFloat()
Get the intrinsic value of this item.
|
int |
getInt()
Get the intrinsic value of this item.
|
long |
getLong()
Get the intrinsic value of this item.
|
int |
getMethodIndex()
Get the intrinsic value of this item.
|
short |
getShort()
Get the intrinsic value of this item.
|
int |
getStringIndex()
Get the intrinsic value of this item.
|
int |
getType()
Get the value type.
|
int |
getTypeIndex()
Get the intrinsic value of this item.
|
boolean |
isNull()
Determine whether the value is null.
|
public static final int VALUE_BYTE
public static final int VALUE_SHORT
public static final int VALUE_CHAR
public static final int VALUE_INT
public static final int VALUE_LONG
public static final int VALUE_FLOAT
public static final int VALUE_DOUBLE
public static final int VALUE_STRING
public static final int VALUE_TYPE
public static final int VALUE_FIELD
public static final int VALUE_METHOD
public static final int VALUE_ENUM
public static final int VALUE_ARRAY
public static final int VALUE_ANNOTATION
public static final int VALUE_NULL
public static final int VALUE_BOOLEAN
public int getType()
Get the value type. Note: this is not a DEX type index.
Please refer to the VALUE_xxx
constants.
VALUE_xxx
constants.public boolean isNull()
Determine whether the value is null.
public byte getByte()
Get the intrinsic value of this item. The value must be a byte, else the method will throw an exception.
public short getShort()
Get the intrinsic value of this item. The value must be a short, else the method will throw an exception.
public char getChar()
Get the intrinsic value of this item. The value must be a character, else the method will throw an exception.
public int getInt()
Get the intrinsic value of this item. The value must be a integer, else the method will throw an exception.
public long getLong()
Get the intrinsic value of this item. The value must be a long, else the method will throw an exception.
public float getFloat()
Get the intrinsic value of this item. The value must be a float, else the method will throw an exception.
public double getDouble()
Get the intrinsic value of this item. The value must be a double, else the method will throw an exception.
public int getStringIndex()
Get the intrinsic value of this item. The value must be a string index, else the method will throw an exception.
public int getTypeIndex()
Get the intrinsic value of this item. The value must be a type index, else the method will throw an exception.
public int getFieldIndex()
Get the intrinsic value of this item. The value must be a field index, else the method will throw an exception.
public int getMethodIndex()
Get the intrinsic value of this item. The value must be a method index, else the method will throw an exception.
public 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.
public java.util.List<DexValue> getArray()
Get the intrinsic value of this item. The value must be an array of values, else the method will throw an exception.
public DexAnnotation getAnnotation()
Get the intrinsic value of this item. The value must be an annotation, else the method will throw an exception.
public boolean getBoolean()
Get the intrinsic value of this item. The value must be a boolean, else the method will throw an exception.